-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
40 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Log to stdout/stderr. | ||
* | ||
* @author Vitex <[email protected]> | ||
* @copyright 2009-2023 [email protected] (G) | ||
* @copyright 2009-2024 [email protected] (G) | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
@@ -30,6 +30,8 @@ class ToStd extends ToMemory implements Loggingable | |
{ | ||
/** | ||
* List of allready flushed messages. | ||
* | ||
* @var array<string> | ||
*/ | ||
public array $flushed = []; | ||
|
||
|
@@ -48,7 +50,7 @@ class ToStd extends ToMemory implements Loggingable | |
/** | ||
* Saves obejct instace (singleton...). | ||
*/ | ||
private static $instance; | ||
private static self $instance; | ||
|
||
/** | ||
* Logovací třída. | ||
|
@@ -60,15 +62,7 @@ public function __construct($logName = null) | |
$this->logName = empty($logName) ? \Ease\Shared::appName() : $logName; | ||
} | ||
|
||
/** | ||
* Pri vytvareni objektu pomoci funkce singleton (ma stejne parametry, jako | ||
* konstruktor) se bude v ramci behu programu pouzivat pouze jedna jeho | ||
* instance (ta prvni). | ||
* | ||
* @see http://docs.php.net/en/language.oop5.patterns.html Dokumentace a | ||
* priklad | ||
*/ | ||
public static function singleton() | ||
public static function singleton(): self | ||
{ | ||
if (!isset(self::$instance)) { | ||
self::$instance = new self(\Ease\Shared::appName() ?: 'EaseFramework'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Record Key methods. | ||
* | ||
* @author Vítězslav Dvořák <[email protected]> | ||
* @copyright 2019 [email protected] (G) | ||
* @copyright 2019-2024 [email protected] (G) | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
@@ -48,7 +48,7 @@ abstract public function setDataValue(string $columnName, $value): bool; | |
/** | ||
* Gives you value of KEY Column. | ||
* | ||
* @param array $data data z nichž se vrací hodnota klíče | ||
* @param array<string, string> $data data z nichž se vrací hodnota klíče | ||
* | ||
* @return int key column value | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters