Test Failed
Pull Request — master (#14)
by Pavel
05:24
created

ToManyAsArrayEntity::getPayload()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Bankiru\Api\Doctrine\Test\Entity;
4
5
use Doctrine\Common\Collections\Collection;
6
7
class ToManyAsArrayEntity
8
{
9
    /** @var int */
10
    private $id;
11
12
    /** @var string */
13
    private $payload;
14
15
    /** @var ToManyAsArrayEntity[]|Collection */
16
    private $children;
17
18
    /**
19
     * @return int
20
     */
21
    public function getId()
22
    {
23
        return $this->id;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getPayload()
30
    {
31
        return $this->payload;
32
    }
33
34
    /**
35
     * @return ToManyAsArrayEntity[]|Collection
36
     */
37
    public function getChildren()
38
    {
39
        return $this->children;
40
    }
41
}
42