示例#1
0
 public function validate()
 {
     parent::validate();
     foreach ($this as $key => $elem) {
         if (!is_numeric($key)) {
             continue;
         }
         if (!parent::isIntegerValid($elem)) {
             throw new InvalidDataException("{$elem} is not valid body value");
         }
     }
 }