Esempio n. 1
0
 /**
  * @param $unit
  * @return \AbstractComponent
  */
 private function getErrorMessage($unit)
 {
     $errorMsg = new \Paragraph();
     $properties = $errorMsg->getElementProperties();
     $properties->addClass('vf__error');
     $validation = new \Validation();
     $errorMsg->setContent($validation->getNotVaildValueMessage($unit));
     return $errorMsg;
 }