コード例 #1
0
ファイル: Where.php プロジェクト: masnathan/sql-query-builder
 /**
  * @return Table
  */
 public function getTable()
 {
     return $this->query->getTable();
 }
コード例 #2
0
 /**
  * @param QueryInterface $query
  * @param bool           $resetPlaceholders
  *
  * @return string
  *
  * @throws \RuntimeException
  */
 public function write(QueryInterface $query, $resetPlaceholders = true)
 {
     if ($resetPlaceholders) {
         $this->placeholderWriter->reset();
     }
     $queryPart = $query->partName();
     if (false === empty($this->queryWriterArray[$queryPart])) {
         $this->createQueryObject($queryPart);
         return $this->queryWriterInstances[$queryPart]->write($query);
     }
     throw new \RuntimeException('Query builder part not defined.');
 }