original_string: public function addType($type, TypeHandler $typeHandler, $alias = null) {
  		$this->typeManager->setTypeHandler($type, $typeHandler);
  	
  		if (!is_null($alias)) {
  			if (is_array($alias)) {
  				foreach ($alias as $al)
  					$this->typeManager->addAlias($type, $al);
  			}
  			else
  				$this->typeManager->addAlias($type, $alias);
  		}
  	}
code: public function addType($type, TypeHandler $typeHandler, $alias = null) {
  		$this->typeManager->setTypeHandler($type, $typeHandler);
  	
  		if (!is_null($alias)) {
  			if (is_array($alias)) {
  				foreach ($alias as $al)
  					$this->typeManager->addAlias($type, $al);
  			}
  			else
  				$this->typeManager->addAlias($type, $alias);
  		}
  	}
code_tokens: public function addType ( $ type , TypeHandler $ typeHandler , $ alias = null ) { $ this -> typeManager -> setTypeHandler ( $ type , $ typeHandler ) ; if ( ! is_null ( $ alias ) ) { if ( is_array ( $ alias ) ) { foreach ( $ alias as $ al ) $ this -> typeManager -> addAlias ( $ type , $ al ) ; } else $ this -> typeManager -> addAlias ( $ type , $ alias ) ; } }
docstring: Adds a new type handler
  @param string $type
  @param \eMapper\Type\TypeHandler $typeHandler
  @param string | array $alias
docstring_tokens: Adds a new type handler