1 | <?php |
||
22 | class SignalObject |
||
23 | { |
||
24 | /** |
||
25 | * @var MiddlewareProcessor |
||
26 | */ |
||
27 | protected $processor; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $signal; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $type; |
||
38 | |||
39 | /** |
||
40 | @var Arguments |
||
41 | */ |
||
42 | protected $arguments; |
||
43 | |||
44 | /** |
||
45 | * @param MiddlewareProcessor $processor |
||
46 | * @param string $signal |
||
47 | * @param string $type |
||
48 | */ |
||
49 | public function __construct(MiddlewareProcessor $processor, $signal, $type) |
||
56 | |||
57 | /** |
||
58 | * @param Arguments $arguments |
||
59 | * @return $this |
||
60 | */ |
||
61 | public function withArguments(Arguments $arguments) |
||
67 | |||
68 | /** |
||
69 | * Will dispatch the configured signal to all middlewares bound to the |
||
70 | * signal name. |
||
71 | */ |
||
72 | public function dispatch() |
||
84 | } |
||
85 |