code: protected function setPhase($type, $data, $keep = false)
      {
          $data['keep'] = $keep;
          $object = new \StdClass();
          $object->{$type} = $data;
          $this->query[] = $object;
      }
docs: setPhase
  
  @param $type
  @param $data
  @param bool $keep