public function getType($identifier)
    {
        return isset($this->types[$identifier])? $this->types[$identifier]: null;
    }
public function getType($identifier)
    {
        return isset($this->types[$identifier])? $this->types[$identifier]: null;
    }
public function getType ( $ identifier ) { return isset ( $ this -> types [ $ identifier ] ) ? $ this -> types [ $ identifier ] : null ; }
Returns a type used by the service based on its name.

@param string $identifier The identifier for the type.

@return Type|null The type or null if the type does not exist.
Returns a type used by the service based on its name .