예제 #1
0
파일: Item.php 프로젝트: ARCANESOFT/Core
 /**
  * Set the current name.
  *
  * @param  string  $currentName
  *
  * @return self
  */
 public function setCurrent($currentName)
 {
     $this->children->setCurrent($currentName);
     $this->active = $this->name === $currentName || $this->children->hasActiveItem();
     return $this;
 }