Beispiel #1
0
 /**
  * Set alias value
  * @author Krzysztof Bednarczyk
  * @param Language $alias
  * @return  $this
  */
 public function setAlias($alias)
 {
     if ($alias && $alias->getId() === $this->getId()) {
         throw new \InvalidArgumentException("Recurrency alert!");
     }
     $this->alias = $alias;
     return $this;
 }