src/Location.php
public static function create(array $data): Location
    {
        $location = new Location();
        parent::fill($data, $location);
        return $location;
    }
public static function create(array $data): Location
    {
        $location = new Location();
        parent::fill($data, $location);
        return $location;
    }
public static function create ( array $ data ) : Location { $ location = new Location ( ) ; parent :: fill ( $ data , $ location ) ; return $ location ; }
Creates a location object with the given data
@param array $data an associative array to fill up the members of the
location class
@return Location a location object with the data given as it's members
Creates a location object with the given data