コード例 #1
0
 /**
  * @since 2.2
  *
  * @param EngineOptions|null $engineOptions
  */
 public function __construct(EngineOptions $engineOptions = null)
 {
     $this->engineOptions = $engineOptions;
     if ($this->engineOptions === null) {
         $this->engineOptions = new EngineOptions();
     }
     $this->dispatchingInterpreter = new DispatchingInterpreter();
     $this->dispatchingInterpreter->addDefaultInterpreter(new ThingDescriptionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new SomePropertyInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new ConjunctionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new DisjunctionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new NamespaceDescriptionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new ClassDescriptionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new ValueDescriptionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new ConceptDescriptionInterpreter($this));
 }
コード例 #2
0
 /**
  * @since 2.2
  */
 public function __construct()
 {
     $this->dispatchingInterpreter = new DispatchingInterpreter();
     $this->dispatchingInterpreter->addDefaultInterpreter(new ThingDescriptionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new SomePropertyInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new ConjunctionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new DisjunctionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new NamespaceDescriptionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new ClassDescriptionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new ValueDescriptionInterpreter($this));
     $this->dispatchingInterpreter->addInterpreter(new ConceptDescriptionInterpreter($this));
 }