| Total Complexity | 9 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class LogBuilder extends Builder |
||
| 11 | { |
||
| 12 | public function whereLevel(string $level): self |
||
| 13 | { |
||
| 14 | return $this->where('level', Str::upper($level)); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function whereInfo(): self |
||
| 18 | { |
||
| 19 | return $this->whereLevel('INFO'); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function whereDebug(): self |
||
| 23 | { |
||
| 24 | return $this->whereLevel('DEBUG'); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function whereNotice(): self |
||
| 28 | { |
||
| 29 | return $this->whereLevel('NOTICE'); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function whereWarning(): self |
||
| 33 | { |
||
| 34 | return $this->whereLevel('WARNING'); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function whereError(): self |
||
| 38 | { |
||
| 39 | return $this->whereLevel('ERROR'); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function whereCritical(): self |
||
| 43 | { |
||
| 44 | return $this->whereLevel('CRITICAL'); |
||
| 45 | } |
||
| 46 | |||
| 47 | public function whereAlert(): self |
||
| 50 | } |
||
| 51 | |||
| 52 | public function whereEmergency(): self |
||
| 53 | { |
||
| 55 | } |
||
| 56 | } |
||
| 57 |