Passed
Push — master ( 3491f1...e1ceb1 )
by Chris
40:32
created

AbstractCommentModelRepositoryInterface   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A delete() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Leonidas\Library\System\Model\Abstracts\Comment;
4
5
use Leonidas\Contracts\System\Schema\Comment\CommentEntityManagerInterface;
6
7
abstract class AbstractCommentModelRepositoryInterface
8
{
9
    protected CommentEntityManagerInterface $manager;
10
11
    public function __construct(CommentEntityManagerInterface $manager)
12
    {
13
        $this->manager = $manager;
14
    }
15
16
    public function delete(int $id): void
17
    {
18
        $this->manager->delete($id);
19
    }
20
}
21