1 | <?php |
||
7 | class Match implements \ArrayAccess |
||
8 | { |
||
9 | /** |
||
10 | * @var Route |
||
11 | */ |
||
12 | protected $route; |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $rules; |
||
18 | |||
19 | /** |
||
20 | * Match constructor. |
||
21 | * |
||
22 | * @param Route $route |
||
23 | * @param array $applyRules |
||
24 | */ |
||
25 | public function __construct(Route $route, array $applyRules) |
||
30 | |||
31 | /** |
||
32 | * @return Route |
||
33 | */ |
||
34 | public function getRoute() |
||
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | public function getRules() |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function offsetExists($offset) |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function offsetGet($offset) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function offsetSet($offset, $value) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function offsetUnset($offset) |
||
78 | } |
||
79 |