TestFailEvent.php 724 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 23/02/2017
  6. * Time: 21:37
  7. */
  8. namespace app\common\events;
  9. use Illuminate\Queue\SerializesModels;
  10. class TestFailEvent extends Event
  11. {
  12. use SerializesModels;
  13. public $messages;
  14. /**
  15. * Create a new event instance.
  16. *
  17. * @return void
  18. */
  19. public function __construct($messages=[])
  20. {
  21. $this->messages=$messages;
  22. echo 'TestFailEventFail fire';
  23. echo "<br/>";
  24. print_r($messages);
  25. echo "<br/>";
  26. }
  27. /**
  28. * Get the channels the event should be broadcast on.
  29. *
  30. * @return array
  31. */
  32. public function broadcastOn()
  33. {
  34. return [];
  35. }
  36. }