| Total Complexity | 8 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait LogEntriesAwareTrait |
||
| 11 | { |
||
| 12 | /** @var Collection|LogEntryInterface[] */ |
||
| 13 | protected $logEntries; |
||
| 14 | |||
| 15 | public function __construct() |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getLogEntries(): Collection |
||
| 23 | } |
||
| 24 | |||
| 25 | public function hasLogEntries(): bool |
||
| 26 | { |
||
| 27 | return !$this->logEntries->isEmpty(); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function addLogEntry(LogEntryInterface $logEntry): void |
||
| 38 | } |
||
| 39 | |||
| 40 | public function removeLogEntry(LogEntryInterface $logEntry): void |
||
| 48 | } |
||
| 49 | |||
| 50 | public function hasLogEntry(LogEntryInterface $logEntry): bool |
||
| 55 |