Roles   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getModelClass() 0 3 1
A update() 0 3 1
A create() 0 3 1
A delete() 0 3 1
A search() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Blackmine\Repository\Users;
6
7
use Blackmine\Model\AbstractModel;
8
use Blackmine\Model\User\Role;
9
use Blackmine\Repository\AbstractRepository;
10
use Doctrine\Common\Collections\ArrayCollection;
11
use Error;
12
13
class Roles extends AbstractRepository
14
{
15
    public const API_ROOT = "roles";
16
17
    public function getModelClass(): string
18
    {
19
        return Role::class;
20
    }
21
22
    public function create(AbstractModel $model): ?AbstractModel
23
    {
24
        throw new Error("Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT);
25
    }
26
27
    public function update(AbstractModel $model): ?AbstractModel
28
    {
29
        throw new Error("Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT);
30
    }
31
32
    public function search(array $params = []): ArrayCollection
33
    {
34
        throw new Error("Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT);
35
    }
36
37
    public function delete(AbstractModel $model): void
38
    {
39
        throw new Error("Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT);
40
    }
41
}
42