/** * Constructor * * @param Connection $connection * @param string|array $table */ public function __construct(Connection $connection, $table) { parent::__construct($connection->compiler(), $table); $this->connection = $connection; }
/** * Constructor * * @param Connection $connection * @param string|array $table */ public function __construct(Connection $connection, $table, SQLStatement $statement = null) { parent::__construct($table, $statement); $this->connection = $connection; }
public function __construct(Connection $connection, Compiler $compiler, $from, $joins, WhereClause $clause = null) { parent::__construct($compiler, $from, $clause); $this->connection = $connection; $this->joins = $joins; }