| Conditions | 3 |
| Paths | 3 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 619 | public function matchesNationalNumber($nationalNumber, PhoneNumberDesc $numberDesc, $allowPrefixMatch) |
|
| 22 | { |
||
| 23 | 619 | $nationalNumberPatternMatcher = new Matcher($numberDesc->getNationalNumberPattern(), $nationalNumber); |
|
| 24 | |||
| 25 | 619 | return ($nationalNumberPatternMatcher->matches() |
|
| 26 | 619 | || ($allowPrefixMatch && $nationalNumberPatternMatcher->lookingAt())); |
|
| 27 | } |
||
| 28 | |||
| 44 |