public function __construct(DictionaryInterface $dictionary) { $this->dictionary = $dictionary; $this->visitorProvider = new VisitorProvider(); }