Replaced @internal docs.

This commit is contained in:
flash 2024-10-02 19:41:33 +00:00
parent a84f36f731
commit 67ea562983
8 changed files with 9 additions and 12 deletions

View file

@ -18,5 +18,3 @@
- Get guides working on phpdoc. - Get guides working on phpdoc.
- Create phpdoc template. - Create phpdoc template.
- Review all constructors and see which one should be marked @internal.

View file

@ -1 +1 @@
0.2410.21928 0.2410.21941

View file

@ -303,7 +303,9 @@ abstract class Colour implements Stringable {
return self::$none; return self::$none;
} }
/** @internal */ /**
* Initialises the Colour class.
*/
public static function init(): void { public static function init(): void {
self::$none = new ColourNull; self::$none = new ColourNull;
} }

View file

@ -18,7 +18,10 @@ class MariaDbBackend implements DbBackend {
} }
/** /**
* @internal * Formats a MySQL integer version as a string.
*
* @param int $version MySQL version number.
* @return string
*/ */
public static function intToVersion(int $version): string { public static function intToVersion(int $version): string {
$sub = $version % 100; $sub = $version % 100;

View file

@ -10,8 +10,6 @@ use RuntimeException;
/** /**
* Implementation of MariaDbResult for libmysql. * Implementation of MariaDbResult for libmysql.
*
* @internal
*/ */
class MariaDbResultLib extends MariaDbResult { class MariaDbResultLib extends MariaDbResult {
/** @var mixed[] */ /** @var mixed[] */

View file

@ -11,8 +11,6 @@ use RuntimeException;
/** /**
* Implementation of MariaDbResult for mysqlnd. * Implementation of MariaDbResult for mysqlnd.
*
* @internal
*/ */
class MariaDbResultNative extends MariaDbResult { class MariaDbResultNative extends MariaDbResult {
public function __construct(mysqli_stmt|mysqli_result $result) { public function __construct(mysqli_stmt|mysqli_result $result) {

View file

@ -35,8 +35,6 @@ class MariaDbStatement implements DbStatement {
/** /**
* Determines which MariaDbResult implementation should be used. * Determines which MariaDbResult implementation should be used.
*
* @internal
*/ */
public static function construct(): void { public static function construct(): void {
if(self::$constructed !== false) if(self::$constructed !== false)

View file

@ -82,7 +82,7 @@ class HttpRouter implements Router {
if($handler instanceof HttpErrorHandler) if($handler instanceof HttpErrorHandler)
$this->errorHandler = $handler; $this->errorHandler = $handler;
elseif($handler === 'html') elseif($handler === 'html')
$this->setHTMLErrorHandler(); $this->setHtmlErrorHandler();
else // plain else // plain
$this->setPlainErrorHandler(); $this->setPlainErrorHandler();
} }