예제 #1
0
 /**
  * @param string|int $field
  *
  */
 protected function checkState($field)
 {
     if (is_int($field)) {
         $this->preparePositional();
     }
     if (count($this->getFields()) > 0) {
         if (is_string($field) && $this->isPositional()) {
             throw new BuilderException("Cannot add named argument to positional arguments");
         } else {
             parent::checkState($field);
         }
     }
 }