| Total Complexity | 5 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class LogsCollector extends BaseCollector |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * {@inheritDoc} |
||
| 23 | */ |
||
| 24 | protected bool $hasTimeline = false; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritDoc} |
||
| 28 | */ |
||
| 29 | protected bool $hasTabContent = true; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritDoc} |
||
| 33 | */ |
||
| 34 | protected string $title = 'Logs'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Nos données collectées |
||
| 38 | */ |
||
| 39 | protected array $data = []; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | public function display(): array |
||
| 45 | { |
||
| 46 | return [ |
||
| 47 | 'logs' => $this->collectLogs(), |
||
| 48 | ]; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritDoc} |
||
| 53 | */ |
||
| 54 | public function isEmpty(): bool |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritDoc} |
||
| 63 | * |
||
| 64 | * Icon from https://icons8.com - 1em package |
||
| 65 | */ |
||
| 66 | public function icon(): string |
||
| 67 | { |
||
| 68 | return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACYSURBVEhLYxgFJIHU1FSjtLS0i0D8AYj7gEKMEBkqAaAFF4D4ERCvAFrwH4gDoFIMKSkpFkB+OTEYqgUTACXfA/GqjIwMQyD9H2hRHlQKJFcBEiMGQ7VgAqCBvUgK32dmZspCpagGGNPT0/1BLqeF4bQHQJePpiIwhmrBBEADR1MRfgB0+WgqAmOoFkwANHA0FY0CUgEDAwCQ0PUpNB3kqwAAAABJRU5ErkJggg=='; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * S'assure que les données ont été collectées. |
||
| 73 | */ |
||
| 74 | protected function collectLogs() |
||
| 81 | } |
||
| 82 | } |
||
| 83 |