public function validate(array $value = null) { if ($value === null) { return $this->config('validate'); } $this->config('validate', $value); }