public function getLimitationType($identifier)
    {
        if (!isset($this->settings['limitationTypes'][$identifier])) {
            throw new LimitationNotFoundException($identifier);
        }

        return $this->settings['limitationTypes'][$identifier];
    }
public function getLimitationType($identifier)
    {
        if (!isset($this->settings['limitationTypes'][$identifier])) {
            throw new LimitationNotFoundException($identifier);
        }

        return $this->settings['limitationTypes'][$identifier];
    }
public function getLimitationType ( $ identifier ) { if ( ! isset ( $ this -> settings [ 'limitationTypes' ] [ $ identifier ] ) ) { throw new LimitationNotFoundException ( $ identifier ) ; } return $ this -> settings [ 'limitationTypes' ] [ $ identifier ] ; }
Returns the LimitationType registered with the given identifier.

Returns the correct implementation of API Limitation value object
based on provided identifier

@param string $identifier

@throws \eZ\Publish\Core\Base\Exceptions\NotFound\LimitationNotFoundException

@return \eZ\Publish\SPI\Limitation\Type
Returns the LimitationType registered with the given identifier .