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

ChildEntity::childProtectedProp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
}