/** * @return int|float */ public function getLongitude() { if (Configuration::getOrder() === Configuration::ORDER_LON_FIRST) { return $this->getX(); } return $this->getY(); }