src/DataType/Registry.php
public function getHandlerForType(string $type) : HandlerInterface
    {
        if ($this->hasHandlerForType($type)) {
            return $this->handlers[$type];
        }

        throw DataTypeException::handlerNotFound($type);
    }
public function getHandlerForType(string $type) : HandlerInterface
    {
        if ($this->hasHandlerForType($type)) {
            return $this->handlers[$type];
        }

        throw DataTypeException::handlerNotFound($type);
    }
public function getHandlerForType ( string $ type ) : HandlerInterface { if ( $ this -> hasHandlerForType ( $ type ) ) { return $ this -> handlers [ $ type ] ; } throw DataTypeException :: handlerNotFound ( $ type ) ; }
Retrieve the handler assigned to a given type identifier.

@param string $type

@throws DataTypeException if no handler is found.

@return HandlerInterface
Retrieve the handler assigned to a given type identifier .