| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class ForeignRecordDemand |
||
| 18 | { |
||
| 19 | protected string $storagePage = ''; |
||
| 20 | protected bool $restrictForeignRecordsToStoragePage = false; |
||
| 21 | |||
| 22 | public function getStoragePage(): string |
||
| 23 | { |
||
| 24 | return $this->storagePage; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function setStoragePage(string $storagePage): void |
||
| 28 | { |
||
| 29 | $this->storagePage = $storagePage; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getRestrictForeignRecordsToStoragePage(): bool |
||
| 33 | { |
||
| 34 | return $this->restrictForeignRecordsToStoragePage; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function setRestrictForeignRecordsToStoragePage(bool $restrictForeignRecordsToStoragePage): void |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Creates a new ForeignRecordDemand object from the given settings. |
||
| 44 | * |
||
| 45 | * @param array $settings |
||
| 46 | * @return ForeignRecordDemand |
||
| 47 | */ |
||
| 48 | public static function createFromSettings(array $settings = []): self |
||
| 57 | } |
||
| 58 | } |
||
| 59 |