Files
FreshRSS/app/Models/Log.php
Luc SANCHEZ 0317683155 Add test and type hinting (#5087)
* - Add test and type hinting
- pass PhpStan Level 9

* fix dump

* fix style

* fix visibility

* fix style

* add test

* add test

* add test

* add test

* add test

* Simplify

* cleaning after test

* remove space

* fix style

* use specific log file for test

* Remarque's from Alkarex

* A few more details

---------

Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-03-27 00:36:21 +02:00

30 lines
590 B
PHP

<?php
class FreshRSS_Log extends Minz_Model {
/** @var string */
private $date;
/** @var string */
private $level;
/** @var string */
private $information;
public function date(): string {
return $this->date;
}
public function level(): string {
return $this->level;
}
public function info(): string {
return $this->information;
}
public function _date(string $date): void {
$this->date = $date;
}
public function _level(string $level): void {
$this->level = $level;
}
public function _info(string $information): void {
$this->information = $information;
}
}