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);
		}
	}
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);
		}
	}
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 ) ; } }
Adds a new type handler
@param string $type
@param \eMapper\Type\TypeHandler $typeHandler
@param string | array $alias
Adds a new type handler