| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ScriptWasCreatedEvent extends Event |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The listeners that will be fired when the event is dispatched. |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | public $listeners = [ |
||
| 17 | PublishInitialScriptRelease::class |
||
| 18 | ]; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Script |
||
| 22 | */ |
||
| 23 | public $script; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new event instance. |
||
| 27 | * |
||
| 28 | */ |
||
| 29 | public function __construct(Script $script) |
||
| 30 | { |
||
| 31 | $this->script = $script; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the channels the event should be broadcast on. |
||
| 36 | * |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function broadcastOn() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |