19 declare(strict_types=1);
25 private const _AS =
'as';
30 public function __construct(
private string $table_name,
private string $field_name, ?
string $alias = null)
32 $this->converted_table_name = $table_name;
33 $this->original_table_name = $table_name;
35 if (null !== $alias) {
36 $this->converted_table_name = $table_name .
' ' . self::_AS .
' ' . $alias;
37 $this->table_name = $alias;
38 $this->original_table_name = $table_name;
49 return $this->table_name . self::COMBINE_TABLE_AND_FIELD . $this->field_name;
54 return $this->field_name;
const COMBINE_TABLE_AND_FIELD
__construct(private string $table_name, private string $field_name, ?string $alias=null)
string $original_table_name
string $converted_table_name