/** * Construct * @param array $default * @param array $options [optional] * @throws \InvalidArgumentException */ public function __construct(array $default, $options = array()) { if (!is_array($default)) { // Typehint in constructor does not fetch this throw new \InvalidArgumentException('Parameter\\Set needs an array as default value.'); } parent::__construct($default, $options); }
/** * Construct * @param string $default * @param array $options [optional] */ public function __construct($default, $options = array()) { $this->Default = $default; $options = array_merge(array('options' => array()), $options); parent::__construct($default, $options); }