public function validate($value) { $this->result = new ErrorResult(); if ($this->acceptsEmptyValues === false || $this->isEmpty($value) === false) { $this->isValid($value); } return $this->result; }