public function acceptValue(APILimitationValue $limitationValue)
    {
        if (!$limitationValue instanceof APIBlockingLimitation) {
            throw new InvalidArgumentType('$limitationValue', 'BlockingLimitation', $limitationValue);
        } elseif (!is_array($limitationValue->limitationValues)) {
            throw new InvalidArgumentType('$limitationValue->limitationValues', 'array', $limitationValue->limitationValues);
        }
    }
public function acceptValue(APILimitationValue $limitationValue)
    {
        if (!$limitationValue instanceof APIBlockingLimitation) {
            throw new InvalidArgumentType('$limitationValue', 'BlockingLimitation', $limitationValue);
        } elseif (!is_array($limitationValue->limitationValues)) {
            throw new InvalidArgumentType('$limitationValue->limitationValues', 'array', $limitationValue->limitationValues);
        }
    }
public function acceptValue ( APILimitationValue $ limitationValue ) { if ( ! $ limitationValue instanceof APIBlockingLimitation ) { throw new InvalidArgumentType ( '$limitationValue' , 'BlockingLimitation' , $ limitationValue ) ; } elseif ( ! is_array ( $ limitationValue -> limitationValues ) ) { throw new InvalidArgumentType ( '$limitationValue->limitationValues' , 'array' , $ limitationValue -> limitationValues ) ; } }
Accepts a Blocking Limitation value and checks for structural validity.

Makes sure LimitationValue object and ->limitationValues is of correct type.

@throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException If the value does not match the expected type/structure

@param \eZ\Publish\API\Repository\Values\User\Limitation $limitationValue
Accepts a Blocking Limitation value and checks for structural validity .