| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class UserOperationLogContext |
||
| 6 | { |
||
| 7 | protected $operationId; |
||
| 8 | protected $userId; |
||
| 9 | protected $entries = []; |
||
| 10 | |||
| 11 | public function getUserId(): string |
||
| 14 | } |
||
| 15 | |||
| 16 | public function setUserId(string $userId): void |
||
| 17 | { |
||
| 18 | $this->userId = $userId; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getOperationId(): string |
||
| 22 | { |
||
| 23 | return $this->operationId; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setOperationId(string $operationId): void |
||
| 27 | { |
||
| 28 | $this->operationId = $operationId; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function addEntry(UserOperationLogContextEntry $entry): void |
||
| 32 | { |
||
| 33 | $this->entries[] = $entry; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getEntries(): array |
||
| 39 | } |
||
| 40 | } |
||
| 41 |