| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class LogEntry |
||
| 11 | { |
||
| 12 | const SEVERITY_INFO = 'info'; |
||
| 13 | const SEVERITY_NOTICE = 'notice'; |
||
| 14 | const SEVERITY_WARNING = 'warning'; |
||
| 15 | const SEVERITY_CRITICAL = 'critical'; |
||
| 16 | |||
| 17 | private $date; |
||
| 18 | private $severity; |
||
| 19 | private $message; |
||
| 20 | |||
| 21 | public function __construct($date, $severity, $message) |
||
| 22 | { |
||
| 23 | $this->date = $date; |
||
| 24 | $this->severity = $severity; |
||
| 25 | $this->message = $message; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getDate() |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getSeverity() |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getMessage() |
||
| 41 | } |
||
| 42 | |||
| 43 | public function __toString() |
||
| 48 |