public function __construct(array $options = [])
{
parent::__construct($options);
$options = $this->getOptions();
if (!isset($options['haystack'])) {
throw new \Gajus\Vlad\Exception\InvalidArgumentException('"haystack" option is missing.');
} else {
if (!is_array($options['haystack'])) {
throw new \Gajus\Vlad\Exception\InvalidArgumentException('"haystack" option must be an array.');
}
}
if (!is_bool($options['strict']) || !is_bool($options['c14n'])) {
throw new \Gajus\Vlad\Exception\InvalidArgumentException('Boolean property assigned non-boolean value.');
}
}