public function get($type)
    {
        if (isset($this->definitions[$type])) {
            return $this->definitions[$type];
        }

        throw new UnregisteredDefinitionException(
            $type,
            UnregisteredDefinitionException::TARGET_MIME_TYPE
        );
    }
public function get($type)
    {
        if (isset($this->definitions[$type])) {
            return $this->definitions[$type];
        }

        throw new UnregisteredDefinitionException(
            $type,
            UnregisteredDefinitionException::TARGET_MIME_TYPE
        );
    }
public function get ( $ type ) { if ( isset ( $ this -> definitions [ $ type ] ) ) { return $ this -> definitions [ $ type ] ; } throw new UnregisteredDefinitionException ( $ type , UnregisteredDefinitionException :: TARGET_MIME_TYPE ) ; }
Returns the definition for a specific MIME type, if any.

@param string $type

@throws UnregisteredDefinitionException

@return ItemDefinitionInterface
Returns the definition for a specific MIME type if any .