Passed
Push — master ( d3a94c...76e109 )
by Valentin
05:50
created

Entity   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 49
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A public() 0 4 1
A __resolver() 0 3 1
A protected() 0 3 1
A private() 0 3 1
A publicStatic() 0 3 1
A publicFinal() 0 3 1
A __toString() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Cycle\ORM\Promise\Tests\Fixtures;
5
6
abstract class Entity
7
{
8
    use EntityTrait;
9
    const MY_CONST = 'value';
10
11
    public $public;
12
    public static $publicStatic;
13
    protected $protected;
14
    protected $__resolver;
15
    private $private = null;
16
17
    public function __construct()
18
    {
19
        //have some body
20
    }
21
22
    public function public(): ?string
23
    {
24
        return 'pub';
25
    }
26
27
    public function __resolver()
28
    {
29
    }
30
31
    /**
32
     * @return array
33
     */
34
    protected function protected(): array
35
    {
36
    }
37
38
    private function private()
1 ignored issue
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
39
    {
40
    }
41
42
    public static function publicStatic()
43
    {
44
    }
45
46
    public final function publicFinal()
47
    {
48
    }
49
50
    public function __toString()
51
    {
52
        return '';
53
    }
54
}