/** * {@inheritDoc} * * @api */ public function accept(ItemVisitorInterface $visitor) { $this->checkState(); $visitor->visit($this); }
/** * Accepts an ItemVisitor, calls visit on it * * @param \PHPCR\ItemVisitorInterface $visitor The ItemVisitor to be accepted. * @throws \PHPCR\RepositoryException if an error occurs. * @api */ public function accept(\PHPCR\ItemVisitorInterface $visitor) { $visitor->visit($this); }