예제 #1
0
파일: Pattern.php 프로젝트: daspete/labcoat
 public function add(ItemInterface $item)
 {
     if ($item instanceof PseudoPatternInterface) {
         $this->items[$item->getVariantName()] = $item;
     } else {
         throw new \InvalidArgumentException();
     }
 }
예제 #2
0
 protected function makeItemPath(ItemInterface $item)
 {
     return $this->escapePath($item->getPath());
 }