| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4.0466 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 9 | public function __construct( array $files, string $defaultContent = null ) { |
|
| 26 | 9 | foreach ( $files as $url => $fileContents ) { |
|
| 27 | 4 | if ( !is_string( $url ) || !is_string( $fileContents ) ) { |
|
| 28 | throw new InvalidArgumentException( 'Both file url and file contents need to be of type string' ); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | 9 | $this->files = $files; |
|
| 33 | 9 | $this->defaultContent = $defaultContent; |
|
| 34 | 9 | } |
|
| 35 | |||
| 53 |