/** * Adds a textual representation of every object of the given class. * * @param String $class * @param String $itsTextualRepresentation */ public function addTextualRepresentationOf($class, $itsTextualRepresentation) { $this->textualRepresentationOfClasses->associateValueWithClasses($itsTextualRepresentation, [$class]); }
public function registerRenderer($classOfSupportedObjects, ScalarRenderer $actualRenderer) { $this->renderersByClasses->associateValueWithClasses($actualRenderer, [$classOfSupportedObjects]); }