public function getById($id) { if (is_numeric($id)) { return parent::getById($id); } return $this->getByHostName($id); }
public function getById($id) { if (is_numeric($id)) { return parent::getById($id); } if (preg_match("~fake~", $id)) { return $this->create(array('id' => $id)); } }