Skip to content

Commit 45e38cf

Browse files
committed
refactor interface to use GetInheritedProperties
1 parent 548c5ef commit 45e38cf

15 files changed

Lines changed: 75 additions & 15 deletions

doc/02_Upgrade_Notes/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Upgrade notes
22

3+
## 4.0.0
4+
- Added getter/setter of GetInheritedProperties in element contract interfaces
5+
36
## 2.0.0
47
All Resolver classes and interfaces will be marked as `@internal`
58

@@ -8,4 +11,4 @@ All Proxy classes and interfaces will be marked as `@deprecated`
811

912
All public Resolvers and Interfaces will be moved to the `Contract` namespace.
1013

11-
Reslover in `Contract` will contain all `public static` methodes if they are not marked as `internal`
14+
Resolver in `Contract` will contain all `public static` methods if they are not marked as `internal`

src/Contract/Models/Asset/AssetResolverContract.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,14 @@ public function locateDaoClass(string $modelClass): ?string
5151
{
5252
return Asset::locateDaoClass($modelClass);
5353
}
54+
55+
public function getGetInheritedProperties(): bool
56+
{
57+
return Asset::getGetInheritedProperties();
58+
}
59+
60+
public function setGetInheritedProperties(bool $getInheritedProperties): void
61+
{
62+
Asset::setGetInheritedProperties($getInheritedProperties);
63+
}
5464
}

src/Contract/Models/Asset/AssetResolverContractInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ public function create(int $parentId, array $data = [], bool $save = true): Asse
3333
public function getById(int $id, array $params = []): ?Asset;
3434

3535
public function locateDaoClass(string $modelClass): ?string;
36+
37+
public function getGetInheritedProperties(): bool;
38+
39+
public function setGetInheritedProperties(bool $getInheritedProperties): void;
3640
}

src/Contract/Models/DataObject/ConcreteObjectResolverContract.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ public function doHideUnpublished(): bool
4444
return Concrete::doHideUnpublished();
4545
}
4646

47+
public function getGetInheritedProperties(): bool
48+
{
49+
return Concrete::getGetInheritedProperties();
50+
}
51+
52+
public function setGetInheritedProperties(bool $getInheritedProperties): void
53+
{
54+
Concrete::setGetInheritedProperties($getInheritedProperties);
55+
}
56+
4757
public function setGetInheritedValues(bool $getInheritedValues): void
4858
{
4959
Concrete::setGetInheritedValues($getInheritedValues);

src/Contract/Models/DataObject/ConcreteObjectResolverContractInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function setHideUnpublished(bool $hideUnpublished): void;
2929

3030
public function doHideUnpublished(): bool;
3131

32+
public function getGetInheritedProperties(): bool;
33+
34+
public function setGetInheritedProperties(bool $getInheritedProperties): void;
35+
3236
public function setGetInheritedValues(bool $getInheritedValues): void;
3337

3438
public function getGetInheritedValues(): bool;

src/Contract/Models/DataObject/DataObjectFolderResolverContract.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ public function doHideUnpublished(): bool
4545
return Folder::doHideUnpublished();
4646
}
4747

48+
public function getGetInheritedProperties(): bool
49+
{
50+
return Folder::getGetInheritedProperties();
51+
}
52+
53+
public function setGetInheritedProperties(bool $getInheritedProperties): void
54+
{
55+
Folder::setGetInheritedProperties($getInheritedProperties);
56+
}
57+
4858
public function setGetInheritedValues(bool $getInheritedValues): void
4959
{
5060
Folder::setGetInheritedValues($getInheritedValues);

src/Contract/Models/DataObject/DataObjectFolderResolverContractInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public function setHideUnpublished(bool $hideUnpublished): void;
3030

3131
public function doHideUnpublished(): bool;
3232

33+
public function getGetInheritedProperties(): bool;
34+
35+
public function setGetInheritedProperties(bool $getInheritedProperties): void;
36+
3337
public function setGetInheritedValues(bool $getInheritedValues): void;
3438

3539
public function getGetInheritedValues(): bool;

src/Contract/Models/DataObject/DataObjectResolverContract.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ public function doHideUnpublished(): bool
4040
return DataObject::doHideUnpublished();
4141
}
4242

43+
public function getGetInheritedProperties(): bool
44+
{
45+
return DataObject::getGetInheritedProperties();
46+
}
47+
48+
public function setGetInheritedProperties(bool $getInheritedProperties): void
49+
{
50+
DataObject::setGetInheritedProperties($getInheritedProperties);
51+
}
52+
4353
public function setGetInheritedValues(bool $getInheritedValues): void
4454
{
4555
DataObject::setGetInheritedValues($getInheritedValues);

src/Contract/Models/DataObject/DataObjectResolverContractInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public function setHideUnpublished(bool $hideUnpublished): void;
2828

2929
public function doHideUnpublished(): bool;
3030

31+
public function getGetInheritedProperties(): bool;
32+
33+
public function setGetInheritedProperties(bool $getInheritedProperties): void;
34+
3135
public function setGetInheritedValues(bool $getInheritedValues): void;
3236

3337
public function getGetInheritedValues(): bool;

src/Contract/Models/Document/DocumentResolverContract.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,15 @@ public function locateDaoClass(string $modelClass): ?string
6666
{
6767
return Document::locateDaoClass($modelClass);
6868
}
69+
70+
public function getGetInheritedProperties(): bool
71+
{
72+
return Document::getGetInheritedProperties();
73+
}
74+
75+
public function setGetInheritedProperties(bool $getInheritedProperties): void
76+
{
77+
Document::setGetInheritedProperties($getInheritedProperties);
78+
}
79+
6980
}

0 commit comments

Comments
 (0)