예제 #1
0
 /**
  * @param string $name
  *
  * @throws \LogicException
  */
 private function addProperty($name = null)
 {
     if ($name === null) {
         $name = $this->currentSelector instanceof NamedSelectorInterface ? $this->currentSelector->name() : 'field' . $this->nonameCount++;
     }
     $this->projector->add(new Property($this->currentSelector, $name));
     $this->currentSelector = null;
 }