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