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