Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Support/Testing/Fakes/ChainedBatchTruthTest.php
Строк: 31
<?php

namespace IlluminateSupportTestingFakes;

use 
Closure;

class 
ChainedBatchTruthTest
{
    
/**
     * The underlying truth test.
     *
     * @var Closure
     */
    
protected $callback;

    
/**
     * Create a new truth test instance.
     *
     * @param  Closure  $callback
     * @return void
     */
    
public function __construct(Closure $callback)
    {
        
$this->callback $callback;
    }

    
/**
     * Invoke the truth test with the given pending batch.
     *
     * @param  IlluminateBusPendingBatch
     * @return bool
     */
    
public function __invoke($pendingBatch)
    {
        return 
call_user_func($this->callback$pendingBatch);
    }
}
Онлайн: 0
Реклама