| 1 | <?php |
||
| 9 | class ErrorEvent extends Event |
||
| 10 | { |
||
| 11 | use SerializesModels; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var Company |
||
| 15 | */ |
||
| 16 | private $company; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var String |
||
| 20 | */ |
||
| 21 | private $error; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * ErrorEvent constructor. |
||
| 25 | * @param Company $company |
||
| 26 | * @param String $error |
||
| 27 | */ |
||
| 28 | public function __construct(Company $company, $error) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return Company |
||
| 36 | */ |
||
| 37 | public function getCompany() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return String |
||
| 44 | */ |
||
| 45 | public function getError() |
||
| 49 | |||
| 50 | |||
| 51 | /** |
||
| 52 | * Get the channels the event should be broadcast on. |
||
| 53 | * |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | public function broadcastOn() |
||
| 60 | } |
||
| 61 |