19declare(strict_types=1);
26 private readonly
string $component_name_space,
34 string $specifier =
''
36 if ($table->value ===
'' && $specifier ===
'') {
37 throw \InvalidArgumentException(
38 'Identifier cannot be empty if Type->value is empty.'
42 $base_name =
"{$this->component_name_space}";
43 if ($table->value !==
'') {
44 $base_name .=
"_{$table->value}";
49 if ($this->table_sub_name_space !==
null) {
50 $additions = $this->table_sub_name_space->get();
53 if ($specifier !==
'') {
54 $additions .=
"_{$specifier}";
57 if ($additions ===
'') {
61 return "{$base_name}_{$additions}";
getTableNameFor(TableTypes $table, string $specifier='')
__construct(private readonly string $component_name_space, private readonly ?TableSubNameSpace $table_sub_name_space)
if(!file_exists('../ilias.ini.php'))