Skip to content

Commit

Permalink
Mark some new things as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Aug 25, 2023
1 parent 4a0a538 commit 9fdb6ba
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/generate-pocketmine-yml-property-consts.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ function collectProperties(string $prefix, array $properties, array &$constants)
fwrite($file, "declare(strict_types=1);\n\n");
fwrite($file, "namespace pocketmine;\n\n");

fwrite($file, <<<'DOC'
/**
* @internal
* Constants for all properties available in pocketmine.yml.
* This is generated by build/generate-pocketmine-yml-property-consts.php.
* Do not edit this file manually.
*/

DOC
);
fwrite($file, "final class YmlServerProperties{\n");
foreach(Utils::stringifyKeys($constants) as $constName => $propertyName){
fwrite($file, "\tpublic const $constName = '$propertyName';\n");
Expand Down
4 changes: 4 additions & 0 deletions src/ServerProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

namespace pocketmine;

/**
* @internal
* Constants for all properties available in server.properties.
*/
final class ServerProperties{

public const AUTO_SAVE = "auto-save";
Expand Down
6 changes: 6 additions & 0 deletions src/YmlServerProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@

namespace pocketmine;

/**
* @internal
* Constants for all properties available in pocketmine.yml.
* This is generated by build/generate-pocketmine-yml-property-consts.php.
* Do not edit this file manually.
*/
final class YmlServerProperties{
public const ALIASES = 'aliases';
public const ANONYMOUS_STATISTICS = 'anonymous-statistics';
Expand Down

0 comments on commit 9fdb6ba

Please sign in to comment.