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