MetaMap::getLocations PHP Method

getLocations() protected method

Get locations
protected getLocations ( ) : array
return array of MetaMapLocation
    protected function getLocations()
    {
        if ($this->m_locations === NULL) {
            $locations = array();
            foreach ($this->m_dbObject->getLocations() as $location) {
                $locations[] = new MetaMapLocation($location);
            }
            $this->m_locations = $locations;
        }
        return $this->m_locations;
    }