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