| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 25 | public function __construct($number)  | 
            ||
| 26 |     { | 
            ||
| 27 |         if (preg_match('/^([0-9]{2})-([0-9]{1,6})-([0-9])$/', $number, $dashMatches)) { | 
            ||
| 28 |             $this->number = sprintf('%s%06s%s', $dashMatches[1], $dashMatches[2], $dashMatches[3]); | 
            ||
| 29 |         } elseif (preg_match('/^[0-9]{9}$/', $number)) { | 
            ||
| 30 | $this->number = $number;  | 
            ||
| 31 |         } else { | 
            ||
| 32 |             throw new InvalidArgumentException('ISR participant number is not properly formatted.'); | 
            ||
| 33 | }  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 59 |