Code format, PHPDoc
This commit is contained in:
@ -19,8 +19,14 @@ abstract class Logger
|
|||||||
*/
|
*/
|
||||||
protected $pid = '';
|
protected $pid = '';
|
||||||
|
|
||||||
protected function __construct() {}
|
protected function __construct()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @static
|
||||||
|
* @return Logger
|
||||||
|
*/
|
||||||
public static function getInstance()
|
public static function getInstance()
|
||||||
{
|
{
|
||||||
if (static::$_instance === null) {
|
if (static::$_instance === null) {
|
||||||
@ -30,6 +36,7 @@ abstract class Logger
|
|||||||
}
|
}
|
||||||
return static::$_instance;
|
return static::$_instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Вывод лога
|
* Вывод лога
|
||||||
* @param string $message Сообщение
|
* @param string $message Сообщение
|
||||||
@ -53,5 +60,4 @@ abstract class Logger
|
|||||||
}
|
}
|
||||||
|
|
||||||
abstract protected function concreteLog($message);
|
abstract protected function concreteLog($message);
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user