Test Failed
Branch feature/v1_stable_fixes (e805e7)
by Diego
04:22
created

Queries::search()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Blackmine\Repository;
4
5
use Blackmine\Exception\MethodNotImplementedException;
6
use Blackmine\Model\AbstractModel;
7
use Blackmine\Model\Query;
8
use Doctrine\Common\Collections\ArrayCollection;
9
10
class Queries extends AbstractRepository
11
{
12
    public const API_ROOT = "queries";
13
14
    public function getModelClass(): string
15
    {
16
        return Query::class;
17
    }
18
19
    /**
20
     * @throws MethodNotImplementedException
21
     */
22
    public function create(AbstractModel $model): ?AbstractModel
23
    {
24
        throw new MethodNotImplementedException(
25
            "Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT
26
        );
27
    }
28
29
    /**
30
     * @throws MethodNotImplementedException
31
     */
32
    public function get(mixed $id): ?AbstractModel
33
    {
34
        throw new MethodNotImplementedException(
35
            "Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT
36
        );
37
    }
38
39
    /**
40
     * @throws MethodNotImplementedException
41
     */
42
    public function update(AbstractModel $model): ?AbstractModel
43
    {
44
        throw new MethodNotImplementedException(
45
            "Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT
46
        );
47
    }
48
49
    /**
50
     * @throws MethodNotImplementedException
51
     */
52
    public function delete(AbstractModel $model): void
53
    {
54
        throw new MethodNotImplementedException(
55
            "Method " . __FUNCTION__ . " not implemented for apì: " . self::API_ROOT
56
        );
57
    }
58
}
59