Beispiel #1
0
 /**
  * Validates value of offset.
  *
  * @param string $offset
  *
  * @return void
  *
  * @throws Exception\InvalidArgumentException
  */
 private function validate($offset)
 {
     if ($this->validator) {
         $error = $this->validator->validate($offset, $this->values[$offset]);
         if ($error) {
             throw new Exception\InvalidArgumentException($error);
         }
     }
 }