예제 #1
0
파일: AclRole.php 프로젝트: popphp/pop-acl
 /**
  * Set the parent role
  *
  * @param  AclRole $parent
  * @return AclRole
  */
 public function setParent(AclRole $parent)
 {
     if ($parent->getName() !== $this->getName()) {
         $this->parent = $parent;
         $this->parent->addChild($this);
     }
     return $this;
 }