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