/** * Set name * * @param string $name */ public function setName($name) { if (null === $this->slug) { $this->slug = BlogBundle::slugify($name); } $this->name = $name; }
/** * Set label * * @param string $label */ public function setLabel($label) { if ($this->slug == null) { $this->slug = BlogBundle::slugify($label); } $this->label = $label; }
/** * Set title * * @param string $title */ public function setTitle($title) { if (null == $this->slug) { $this->slug = BlogBundle::slugify($title); } $this->title = $title; }