/** * @param $urlPath * @param $presenter * @param $action * @param null $internal_id * @return Url */ public static function create($urlPath, $presenter, $action, $internal_id = null) { $url = new Url(); $url->setUrlPath($urlPath); $url->setDestination($presenter, $action); $url->setInternalId($internal_id); return $url; }
/** * @param string $urlAddress * @return Url */ private function createUrl($urlAddress) { $url = new Url(); $url->setDestination(Page::PRESENTER, Page::PRESENTER_ACTION); $url->setUrlPath($urlAddress); return $url; }