diff --git a/application/src/Entity/AbstractEntity.php b/application/src/Entity/AbstractEntity.php index c6541cf..9ce9dc8 100644 --- a/application/src/Entity/AbstractEntity.php +++ b/application/src/Entity/AbstractEntity.php @@ -1,18 +1,20 @@ id = 0; + // $this->id = 0; } } diff --git a/application/src/Entity/Attribut/VersionAttribut.php b/application/src/Entity/Attribut/VersionAttribut.php new file mode 100644 index 0000000..eb7b82b --- /dev/null +++ b/application/src/Entity/Attribut/VersionAttribut.php @@ -0,0 +1,25 @@ +version = $version; + } + + public function getVersion():int{ + return $this->version; + } +} + diff --git a/application/src/Entity/Attribut/VersionAttributInterface.php b/application/src/Entity/Attribut/VersionAttributInterface.php new file mode 100644 index 0000000..764d232 --- /dev/null +++ b/application/src/Entity/Attribut/VersionAttributInterface.php @@ -0,0 +1,24 @@ +isNameSourceGranted(RightType::READ, LayerType::SOURCE)) { - //FILL! :) + // FILL! :) } } @@ -38,10 +40,26 @@ class UserSourceFacade extends AbstractSourceFacade implements UserSourceInterfa return $this->isGranted($right, $layer) && $law->isGranted($userSourceNode, $layer, $right); } + public function getUser(): UserInterface {} public function setUser(UserInterface $user): void {} + public function getVersion(): int + { + /** + * + * @todo Implement + */ + } + + public function setVersion(int $version): void + { + /** + * + * @todo Implement + */ + } }