Ejemplo n.º 1
0
 /**
  * @return \lukaszmakuch\TextGenerator\TextGenerator
  */
 protected function buildSubjectProjectorToTextConverter()
 {
     $c = new ClassBasedTextGenerator();
     $c->addTextualRepresentationOf(NameLetterByLetter::class, "name-letter-by-letter");
     return $c;
 }
 public function registerExtension(ScalarPresenterExtension $ext)
 {
     $this->aggregatorTextualTypeGenerator->addTextualRepresentationOf($ext->getClassOfSupportedAggregators(), $ext->getPresenterTypeAsText());
     $this->prototypesOfPresentsByClassOfSupportedAggregators[$ext->getClassOfSupportedAggregators()] = $ext->getScalarPresenter();
     return $this;
 }