D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
api
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bus
/
Filename :
PendingChain.php
back
Copy
<?php namespace Illuminate\Foundation\Bus; class PendingChain { /** * The class name of the job being dispatched. * * @var string */ public $class; /** * The jobs to be chained. * * @var array */ public $chain; /** * Create a new PendingChain instance. * * @param string $class * @param array $chain * @return void */ public function __construct($class, $chain) { $this->class = $class; $this->chain = $chain; } /** * Dispatch the job with the given arguments. * * @return \Illuminate\Foundation\Bus\PendingDispatch */ public function dispatch() { return (new PendingDispatch( new $this->class(...func_get_args()) ))->chain($this->chain); } }