| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 10 | public function __construct( $title, $ns = 0 ) { |
|
| 30 | 10 | if( !is_string( $title ) ) { |
|
| 31 | 4 | throw new InvalidArgumentException( '$title must be a string' ); |
|
| 32 | } |
||
| 33 | 6 | if( !is_int( $ns ) ) { |
|
| 34 | 2 | throw new InvalidArgumentException( '$ns must be an int' ); |
|
| 35 | } |
||
| 36 | 4 | $this->title = $title; |
|
| 37 | 4 | $this->ns = $ns; |
|
| 38 | 4 | } |
|
| 39 | |||
| 84 |