예제 #1
0
파일: Literal.php 프로젝트: phn-io/dal
 /**
  * {@inheritdoc}
  */
 public function accept(CompilerInterface $compiler, Connection $connection = null)
 {
     if ($connection !== null) {
         $compiler->appendSql($connection->escapeLiteral($this->literal));
     } else {
         $compiler->appendSql($this->literal);
     }
 }