| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait HasMatchTrait |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param $uri |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | public function match($uri) |
||
| 17 | { |
||
| 18 | $this->uri = $uri; |
||
|
|
|||
| 19 | if ($this->domainCheck()) { |
||
| 20 | $return = $this->getParser()->match($uri); |
||
| 21 | if ($return === true) { |
||
| 22 | $this->postMatch(); |
||
| 23 | } |
||
| 24 | |||
| 25 | return $return; |
||
| 26 | } |
||
| 27 | |||
| 28 | return false; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | public function domainCheck() |
||
| 37 | } |
||
| 38 | |||
| 39 | public function postMatch() |
||
| 41 | } |
||
| 42 | } |
||
| 43 |