| Total Complexity | 4 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 41.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ScopeRepository extends EntityRepository implements ScopeRepositoryInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param string $identifier |
||
| 15 | * @return null|Scope |
||
| 16 | */ |
||
| 17 | 1 | public function getScopeEntityByIdentifier($identifier) |
|
| 18 | { |
||
| 19 | /** @var Scope $scope */ |
||
| 20 | 1 | $scope = $this->findOneBy(['identifier' => $identifier]); |
|
| 21 | 1 | return $scope; |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param array|ScopeEntityInterface[] $scopes |
||
| 26 | * @param string $grantType |
||
| 27 | * @param ClientEntityInterface $clientEntity |
||
| 28 | * @param null|string|null $userIdentifier |
||
| 29 | * @return Scope[] |
||
| 30 | */ |
||
| 31 | 1 | public function finalizeScopes(array $scopes, $grantType, ClientEntityInterface $clientEntity, $userIdentifier = null) |
|
| 32 | { |
||
| 33 | /** @todo code in further ACL functionality in here specific to our app */ |
||
| 34 | 1 | return $scopes; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param Scope $scope |
||
| 39 | * @return Scope |
||
| 40 | * @throws \Doctrine\ORM\OptimisticLockException |
||
| 41 | */ |
||
| 42 | public function create(Scope $scope) |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param Scope $scope |
||
| 51 | * @return Scope |
||
| 52 | * @throws \Doctrine\ORM\OptimisticLockException |
||
| 53 | */ |
||
| 54 | public function save(Scope $scope) |
||
| 58 | } |
||
| 59 | } |