Пример #1
0
 /**
  * @param string  $name   Feature name
  * @param Feature $parent Parent Feature
  *
  * @return Feature
  */
 public function create($name, Feature $parent = null)
 {
     $feature = new Feature();
     $feature->setName($name);
     if ($parent) {
         $feature->setParent($parent);
     }
     return $feature;
 }