Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
36 | 6 | public function __construct( array $coordinates = [] ) { |
|
37 | 6 | foreach ( $coordinates as $coordinate ) { |
|
38 | 5 | if ( !( $coordinate instanceof LatLongValue ) ) { |
|
39 | 3 | throw new InvalidArgumentException( 'Can only construct Line with LatLongValue objects' ); |
|
40 | } |
||
41 | } |
||
42 | |||
43 | 3 | $this->coordinates = $coordinates; |
|
44 | 3 | } |
|
45 | |||
72 |