Passed
Push — master ( 327a11...1a5769 )
by Valentin
58s
created

ProxyStub   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 39
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __loaded() 0 3 1
A __role() 0 3 1
A __scope() 0 3 1
A __resolve() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Cycle\ORM\Promise\Example;
5
6
use Cycle\ORM\ORMInterface;
7
use Cycle\ORM\Promise\PromiseInterface;
8
9
class ProxyStub implements PromiseInterface
10
{
11
    /**
12
     * @param ORMInterface $orm
13
     * @param string       $role
14
     * @param array        $scope
15
     */
16
    public function __construct(ORMInterface $orm, string $role, array $scope)
0 ignored issues
show
Unused Code introduced by
The parameter $orm is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $role is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $scope is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function __loaded(): bool
24
    {
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function __role(): string
31
    {
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function __scope(): array
38
    {
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function __resolve()
45
    {
46
    }
47
}