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