Ejemplo n.º 1
0
 /**
  * Creates a value from a given iteration
  *
  * @param  util.address.Iteration $iteration
  * @return var
  */
 public function create($iteration)
 {
     if (null !== $this->path && $this->path !== $iteration->path()) {
         throw new IllegalStateException('Enclosing element mismatch, expecting "' . $this->path . '", have "' . $iteration->path() . '"');
     }
     $iteration->next();
     return $iteration->input();
 }