Esempio n. 1
0
 /**
  * @param $index
  * @return ErrorElements
  */
 public function validateNLigne($index)
 {
     $value = $this->_object->getNLigne();
     if ($value && $value != $index) {
         $this->_errorElement->with('n_ligne')->addViolation('Numérotation illogique (Should be sequential: 1, 2, 3, 4, ...)')->end();
     }
     return $this;
 }