Passed
Push — master ( 532c9e...8cf9c5 )
by Guillermo A.
02:11
created

ReadOnlyRepositoryTrait::callUnsupportedMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Guillermoandrae\Repositories;
4
5
use Guillermoandrae\Models\ModelInterface;
6
7
trait ReadOnlyRepositoryTrait
8
{
9
    use UnsupportedMethodRepositoryTrait;
10
11
    final public function create(array $options): ModelInterface
12
    {
13
        unset($options);
14
        return $this->callUnsupportedMethod('create');
15
    }
16
17
    final public function update($id, array $options): ModelInterface
18
    {
19
        unset($id, $options);
20
        return $this->callUnsupportedMethod('update');
21
    }
22
23
    final public function delete($id): bool
24
    {
25
        unset($id);
26
        return $this->callUnsupportedMethod('delete');
27
    }
28
}
29