Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
25 | 10 | public function __construct( array $files, string $defaultContent = null ) { |
|
26 | 10 | foreach ( $files as $url => $fileContents ) { |
|
27 | 5 | if ( !is_string( $url ) || !is_string( $fileContents ) ) { |
|
28 | 1 | 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 |