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

ToManyAsArrayEntity   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getPayload() 0 4 1
A getChildren() 0 4 1
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