isAllowed()
isAllowed(mixed $type, boolean $strict = false) : boolean
Is value allowd 'through' this filter?
This steps the given value through the filtering process.
For flexibility in checking (if container object is strict or not) we provide a strict option in the function rather than the object at constructor time.
Parameters
mixed | $type | The type to check |
boolean | $strict | Should we throw errors? |
Throws
- \Phabstractic\Data\Types\Resource\Phabstractic\Data\Types\Exception\InvalidArgumentException
CAN throw this exception
Returns
boolean —Allowed or not?