From a3a56525fa0484a00f8f6fdf8960d975c5426676 Mon Sep 17 00:00:00 2001 From: Belisoful Date: Sun, 20 Aug 2023 04:30:33 -0700 Subject: [PATCH] More defaults for TWebServerAction --- framework/ISingleton.php | 2 +- framework/Shell/Actions/TWebServerAction.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/ISingleton.php b/framework/ISingleton.php index ebd9f0af7..9cd053c71 100644 --- a/framework/ISingleton.php +++ b/framework/ISingleton.php @@ -21,7 +21,7 @@ interface ISingleton { /** * @param bool $create Should the singleton be created if it doesn't exist. - * @return ?object The singleton instance of the class + * @return ?object The singleton instance of the class. */ public static function singleton(bool $create = true): ?object; } diff --git a/framework/Shell/Actions/TWebServerAction.php b/framework/Shell/Actions/TWebServerAction.php index 24b330951..4f935dc93 100644 --- a/framework/Shell/Actions/TWebServerAction.php +++ b/framework/Shell/Actions/TWebServerAction.php @@ -73,19 +73,19 @@ class TWebServerAction extends TShellAction 'Provides a Test PHP Web Server to serve the application.', 'Runs a PHP Web Server after Initializing the Application.']; - /** @var bool Listen on all network addresses assigned to the computer, when one is not provided. */ + /** @var bool Listen on all network addresses assigned to the computer, when one is not provided. Default false. */ private bool $_all = false; - /** @var ?string The specific address to listen on. */ + /** @var ?string The specific address to listen on. Default null. */ private ?string $_address = null; /** @var int The port to listen on, default 8080 */ private int $_port = 8080; - /** @var bool Use a direct ip v6 address, when one is not provided. */ + /** @var bool Use a direct ip v6 address, when one is not provided. Default false. */ private bool $_ipv6 = false; - /** @var int the number of workers for the Web Server */ + /** @var int the number of workers for the Web Server, default 1. */ private int $_workers = 1; /**