/** * Constructor * * @param Compiler $compiler * @param array|string $table * @param WhereClause $clause (optional) */ public function __construct(Compiler $compiler, $table, WhereClause $clause = null) { if (!is_array($table)) { $table = array($table); } $this->tables = $table; parent::__construct($compiler, $clause); }
/** * Constructor * * @param Compiler $compiler * @param string|array $tables * @param WhereClause $clause (optional) */ public function __construct(Compiler $compiler, $tables, WhereClause $clause = null) { parent::__construct($compiler, $clause); if (!is_array($tables)) { $tables = array($tables); } $this->tables = $tables; $this->have = new HavingCondition($this->compiler); }
public function __construct(Connection $connection, $tables) { parent::__construct($connection->compiler()); $this->tables = $tables; $this->connection = $connection; }