示例#1
0
 /**
  * @param integer $index
  * @param Schema  $schema
  *
  * @return Result\ValidationResult
  */
 protected function validateArrayIndex($index, Schema $schema)
 {
     list($value, $pointer) = $this->currentContext();
     $this->pushContext(array($value->get($index), $pointer->joinAtoms(strval($index))));
     $result = $schema->accept($this);
     $this->popContext();
     return $result;
 }