コード例 #1
0
 /**
  * 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]);
 }
コード例 #2
0
 public function registerRenderer($classOfSupportedObjects, ScalarRenderer $actualRenderer)
 {
     $this->renderersByClasses->associateValueWithClasses($actualRenderer, [$classOfSupportedObjects]);
 }