title = $title; $this->url = $url; } /** * Sprawdza czy "okruszek chleba" jest linkiem * * @return boolean */ public function isLink() { return null !== $this->url; } /** * Zwraca adres url linku * * @return string */ public function getUrl() { return $this->url; } /** * Zwraca tytuł * * @return string */ public function getTitle() { return $this->title; } /** * Ustawia adres url linku * * @param string $url * @return $this */ public function setUrl($url) { $this->url = $url; return $this; } /** * Ustawia tytuł * * @param string $title * @return $this */ public function setTitle($title) { $this->title = $title; return $this; } }