blob: ec5bdb0c270bb27d21fd28d5121f3fbf3010cdb8 [file] [log] [blame]
<?php
namespace Adldap\Configuration\Validators;
use Adldap\Configuration\ConfigurationException;
/**
* Class ArrayValidator.
*
* Validates that the configuration value is an array.
*/
class ArrayValidator extends Validator
{
/**
* {@inheritdoc}
*/
public function validate()
{
if (!is_array($this->value)) {
throw new ConfigurationException("Option {$this->key} must be an array.");
}
return true;
}
}