public function getById($identifier)
    {
        $query = $this->createLocationModelQuery();
        $location = $query->find($identifier);

        return $location ?: null;
    }
public function getById($identifier)
    {
        $query = $this->createLocationModelQuery();
        $location = $query->find($identifier);

        return $location ?: null;
    }
public function getById ( $ identifier ) { $ query = $ this -> createLocationModelQuery ( ) ; $ location = $ query -> find ( $ identifier ) ; return $ location ? : null ; }
Retrieve a location by their unique identifier.

@param  mixed $identifier

@return \Igniter\Flame\Location\Models\AbstractLocation|null
Retrieve a location by their unique identifier .