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