web-base/core/Driver/SQL/Join.class.php

27 lines
700 B
PHP
Raw Normal View History

2020-04-02 00:02:51 +02:00
<?php
namespace Driver\SQL;
class Join {
2020-04-03 17:39:58 +02:00
private string $type;
private string $table;
private string $columnA;
private string $columnB;
2021-01-07 14:59:36 +01:00
private $tableAlias;
2020-04-02 00:02:51 +02:00
2021-01-07 14:59:36 +01:00
public function __construct($type, $table, $columnA, $columnB, $tableAlias=null) {
2020-04-03 17:39:58 +02:00
$this->type = $type;
2020-04-02 00:02:51 +02:00
$this->table = $table;
$this->columnA = $columnA;
$this->columnB = $columnB;
2021-01-07 14:59:36 +01:00
$this->tableAlias = $tableAlias;
2020-04-02 00:02:51 +02:00
}
public function getType() { return $this->type; }
public function getTable() { return $this->table; }
public function getColumnA() { return $this->columnA; }
public function getColumnB() { return $this->columnB; }
2021-01-07 14:59:36 +01:00
public function getTableAlias() { return $this->tableAlias; }
2020-04-02 00:02:51 +02:00
2020-04-03 17:39:58 +02:00
}