Implemented optimistic lock draft

This commit is contained in:
Kevin Frantz
2018-10-25 20:42:52 +02:00
parent 8de52474a5
commit e066e8b362
7 changed files with 96 additions and 9 deletions

View File

@@ -1,5 +1,4 @@
<?php
namespace App\Structur\Facade\Security\Source;
use App\Entity\Source\NameSourceInterface;
@@ -9,11 +8,14 @@ use App\DBAL\Types\RightType;
use App\DBAL\Types\LayerType;
/**
*
* @author kevinfrantz
*/
class UserSourceFacade extends AbstractSourceFacade implements UserSourceInterface
{
/**
*
* @var UserSourceInterface
*/
protected $source;
@@ -26,7 +28,7 @@ class UserSourceFacade extends AbstractSourceFacade implements UserSourceInterfa
public function getNameSource(): NameSourceInterface
{
if ($this->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
*/
}
}