/** * If the given value is set * * @param boolean $value The value * * @return boolean */ public function isValid($value) { $result = true; if (!$this->fileService->isValid()) { foreach ($this->fileService->getErrors() as $error) { $this->result->addError($error); } $result = false; } return $result; }