Example #1
0
 public function add(ItemInterface $item)
 {
     if ($item instanceof PseudoPatternInterface) {
         $this->items[$item->getVariantName()] = $item;
     } else {
         throw new \InvalidArgumentException();
     }
 }
Example #2
0
 protected function makeItemPath(ItemInterface $item)
 {
     return $this->escapePath($item->getPath());
 }