public function accept(ItemVisitorInterface $visitor) { $this->checkState(); $visitor->visit($this); }