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