コード例 #1
0
 private function check_map(MapShape $shape, $value)
 {
     if (!$this->checkAssociativeArray($value)) {
         return;
     }
     $values = $shape->getValue();
     foreach ($value as $key => $v) {
         $this->path[] = $key;
         $this->dispatch($values, $v);
         array_pop($this->path);
     }
 }
コード例 #2
0
 public function testReturnsEmptyKey()
 {
     $s = new MapShape([], new ShapeMap([]));
     $this->assertInstanceOf('Vws\\Api\\Shape', $s->getKey());
 }