1 | <?php |
||
6 | class Match implements \ArrayAccess |
||
7 | { |
||
8 | /** |
||
9 | * @var Route |
||
10 | */ |
||
11 | protected $route; |
||
12 | |||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $rules; |
||
17 | |||
18 | /** |
||
19 | * Match constructor. |
||
20 | * @param Route $route |
||
21 | * @param array $applyRules |
||
22 | */ |
||
23 | public function __construct(Route $route, array $applyRules) |
||
28 | |||
29 | /** |
||
30 | * @return Route |
||
31 | */ |
||
32 | public function getRoute() |
||
36 | |||
37 | /** |
||
38 | * @return array |
||
39 | */ |
||
40 | public function getRules() |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | public function offsetExists($offset) |
||
52 | |||
53 | /** |
||
54 | * @inheritDoc |
||
55 | */ |
||
56 | public function offsetGet($offset) |
||
60 | |||
61 | /** |
||
62 | * @inheritDoc |
||
63 | */ |
||
64 | public function offsetSet($offset, $value) |
||
68 | |||
69 | /** |
||
70 | * @inheritDoc |
||
71 | */ |
||
72 | public function offsetUnset($offset) |
||
76 | } |
||
77 |