/** * @param array|null $value */ public function setValue($value) { if ($value === null) { parent::setValue($value); return; } if (is_array($value) === false) { throw new \InvalidArgumentException('Value must be a valid file info array'); } if ($this->isValidFileArray($value) === false) { foreach ($value as $fileArray) { if ($this->isValidFileArray($fileArray) === true) { continue; } throw new \InvalidArgumentException('Value must be a valid file info array'); } } parent::setValue($value); }