Skip to content

Commit

Permalink
Better phpdoc for TWebServerAction
Browse files Browse the repository at this point in the history
  • Loading branch information
belisoful committed Aug 20, 2023
1 parent ec1175d commit 31fb907
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions framework/Shell/Actions/TWebServerAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public function getAll(): bool
}

/**
* This option is only used when no network interface is specified.
* This option is only used when no network interface is specified. When called
* without a $value (null or ''), All is set to true.
* @param mixed $value
* @return bool Respond on all network addresses.
* @return static The current object.
Expand Down Expand Up @@ -193,15 +194,16 @@ public function setPort($port): static
}

/**
* @return bool Use an IPv6 network address, default false.
* @return bool Use the local IPv6 network address, default false.
*/
public function getIpv6(): bool
{
return $this->_ipv6;
}

/**
* @param null|bool|string $ipv6
* When called without a $value (null or ''), Ipv6 is set to true.
* @param null|bool|string $ipv6 Use the ipv6 local network address.
* @return static The current object.
*/
public function setIpv6($ipv6): static
Expand All @@ -223,6 +225,7 @@ public function getWorkers(): int
}

/**
* When called without a value (null or '') then the number of workers is set to 8.
* @param null|int|string $value The number of web server requests workers.
* @return static The current object.
*/
Expand Down

0 comments on commit 31fb907

Please sign in to comment.