1 | <?php |
||
5 | class ActionMiddlewareOptions |
||
6 | { |
||
7 | /** |
||
8 | * The middleware options. |
||
9 | * |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $options; |
||
13 | |||
14 | /** |
||
15 | * Create a new middleware option instance. |
||
16 | * |
||
17 | * @param array $options |
||
18 | */ |
||
19 | public function __construct(array &$options) |
||
23 | |||
24 | /** |
||
25 | * Set the controller methods the middleware should apply to. |
||
26 | * |
||
27 | * @param array|string|dynamic $methods |
||
28 | * |
||
29 | * @return $this |
||
30 | */ |
||
31 | public function only($methods) |
||
37 | |||
38 | /** |
||
39 | * Set the controller methods the middleware should exclude. |
||
40 | * |
||
41 | * @param array|string|dynamic $methods |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function except($methods) |
||
51 | } |
||
52 |