Файл: vendor/laravel/framework/src/Illuminate/Support/Testing/Fakes/ChainedBatchTruthTest.php
Строк: 38
<?php
namespace IlluminateSupportTestingFakes;
use Closure;
class ChainedBatchTruthTest
{
/**
* The underlying truth test.
*
* @var Closure(IlluminateBusPendingBatch): bool
*/
protected $callback;
/**
* Create a new truth test instance.
*
* @param Closure(IlluminateBusPendingBatch): bool $callback
*/
public function __construct(Closure $callback)
{
$this->callback = $callback;
}
/**
* Invoke the truth test with the given pending batch.
*
* @param IlluminateBusPendingBatch $pendingBatch
* @return bool
*/
public function __invoke($pendingBatch)
{
return call_user_func($this->callback, $pendingBatch);
}
}