Completed
Push — master ( d154ad...604248 )
by Valentin
05:10
created

ChildEntity   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A childProp() 0 4 1
A childProtectedProp() 0 4 1
A childExampleObj1() 0 4 1
A childExampleObj2() 0 4 1
A childExampleObj3() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Cycle\ORM\Promise\Tests\Fixtures;
5
6
use Cycle\ORM\Promise\Tests\Declaration\Fixtures\EntityWithConstructor as EWC;
7
8
class ChildEntity extends ParentEntity
9
{
10
    public $public;
11
    protected $ownProperty;
12
13
    public function childProp(): string
14
    {
15
        return 'childPropValue';
16
    }
17
18
    protected function childProtectedProp(): \stdClass
19
    {
20
        return new \stdClass();
21
    }
22
23
    protected function childExampleObj1(): \Cycle\ORM\Promise\Tests\Declaration\Fixtures\Entity
24
    {
25
        return new \Cycle\ORM\Promise\Tests\Declaration\Fixtures\Entity();
26
    }
27
28
    protected function childExampleObj2(): EWC
29
    {
30
        return new EWC();
31
    }
32
33
    protected function childExampleObj3(): EWC
34
    {
35
        return new \Cycle\ORM\Promise\Tests\Declaration\Fixtures\EntityWithConstructor();
36
    }
37
}