Roles::delete()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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