src/Coordinate/Ellipsoid.php
public static function createFromArray(array $newEllipsoid)
    {
        if (!isset($newEllipsoid['name']) || !isset($newEllipsoid['a']) || !isset($newEllipsoid['invF'])
            || 3 !== count($newEllipsoid)) {
            throw new InvalidArgumentException('Ellipsoid arrays should contain `name`, `a` and `invF` keys !');
        }

        return new self($newEllipsoid['name'], $newEllipsoid['a'], $newEllipsoid['invF']);
    }
public static function createFromArray(array $newEllipsoid)
    {
        if (!isset($newEllipsoid['name']) || !isset($newEllipsoid['a']) || !isset($newEllipsoid['invF'])
            || 3 !== count($newEllipsoid)) {
            throw new InvalidArgumentException('Ellipsoid arrays should contain `name`, `a` and `invF` keys !');
        }

        return new self($newEllipsoid['name'], $newEllipsoid['a'], $newEllipsoid['invF']);
    }
public static function createFromArray ( array $ newEllipsoid ) { if ( ! isset ( $ newEllipsoid [ 'name' ] ) || ! isset ( $ newEllipsoid [ 'a' ] ) || ! isset ( $ newEllipsoid [ 'invF' ] ) || 3 !== count ( $ newEllipsoid ) ) { throw new InvalidArgumentException ( 'Ellipsoid arrays should contain `name`, `a` and `invF` keys !' ) ; } return new self ( $ newEllipsoid [ 'name' ] , $ newEllipsoid [ 'a' ] , $ newEllipsoid [ 'invF' ] ) ; }
Create an ellipsoid from an array.

@param array $newEllipsoid The ellipsoid's parameters to create.

@return Ellipsoid
Create an ellipsoid from an array .