| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | abstract class AbstractRecordMovedEvent extends AbstractDataUpdateEvent |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * pid of the record prior moving |
||
| 27 | * |
||
| 28 | * @var int|null |
||
| 29 | */ |
||
| 30 | protected ?int $previousParentId = null; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Sets the record's pid prior moving |
||
| 34 | * |
||
| 35 | * @param int $pid |
||
| 36 | */ |
||
| 37 | 6 | public function setPreviousParentId(int $pid) |
|
| 38 | { |
||
| 39 | 6 | $this->previousParentId = $pid; |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Returns the record's pid prior moving |
||
| 44 | * |
||
| 45 | * @return int|null |
||
| 46 | */ |
||
| 47 | 10 | public function getPreviousParentId(): ?int |
|
| 50 | } |
||
| 51 | } |
||
| 52 |