public function __construct(array $options = [])
{
$unrecognised_options = \array_diff_key($options, static::$default_options);
if ($unrecognised_options) {
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Unrecognised option.');
}
$this->instance_options = $options + array_filter(static::$default_options, function ($e) {
return !is_null($e);
});
}
public function __construct(array $options = []) { parent::__construct($options); $options = $this->getOptions(); if (!is_bool($options['trim'])) { throw new \Gajus\Vlad\Exception\InvalidArgumentException('Boolean property assigned non-boolean value.'); } }