Airship\Engine\Security\Filter\BoolFilter::setType PHP Method

setType() public method

Sets the expected input type (e.g. string, boolean)
public setType ( string $typeIndicator ) : Airship\Engine\Contract\Security\FilterInterface
$typeIndicator string
return Airship\Engine\Contract\Security\FilterInterface
    public function setType(string $typeIndicator) : FilterInterface
    {
        if ($typeIndicator !== 'bool') {
            throw new UnsupportedOperation('Type must always be set to "bool".');
        }
        return parent::setType('bool');
    }