Added private constructors for new internal classes

This commit is contained in:
Dylan K. Taylor
2023-09-06 12:12:11 +01:00
parent 5a010e8213
commit ec1cd5967d
3 changed files with 18 additions and 0 deletions

View File

@ -101,6 +101,15 @@ fwrite($file, <<<'DOC'
DOC
);
fwrite($file, "final class YmlServerProperties{\n");
fwrite($file, <<<'CONSTRUCTOR'
private function __construct(){
//NOOP
}
CONSTRUCTOR
);
foreach(Utils::stringifyKeys($constants) as $constName => $propertyName){
fwrite($file, "\tpublic const $constName = '$propertyName';\n");
}