RelatedDummy   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 61
rs 10
c 1
b 1
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getAge() 0 4 1
A setSymfony() 0 4 1
A getSymfony() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the LoopBackApiBundle package.
5
 *
6
 * (c) Théo FIDRY <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Fidry\LoopBackApiBundle\Tests\Functional\Bundle\TestBundle\Entity;
13
14
use Doctrine\ORM\Mapping as ORM;
15
use Dunglas\ApiBundle\Annotation\Iri;
16
use Symfony\Component\Serializer\Annotation\Groups;
17
18
/**
19
 * Related dummy.
20
 *
21
 * @author Théo FIDRY <[email protected]>
22
 *
23
 * @ORM\Entity
24
 * @Iri("https://schema.org/Product")
25
 */
26
class RelatedDummy
27
{
28
    /**
29
     * @ORM\Column(type="integer")
30
     * @ORM\Id
31
     * @ORM\GeneratedValue(strategy="AUTO")
32
     */
33
    private $id;
34
35
    /**
36
     * @var int The age.
37
     *
38
     * @ORM\Column(type="integer", nullable=true)
39
     */
40
    private $age;
41
42
    /**
43
     * @ORM\Column
44
     * @Groups({"barcelona", "chicago"})
45
     */
46
    protected $symfony = 'symfony';
47
48
    /**
49
     * @var AnotherDummy
50
     *
51
     * @ORM\ManyToOne(targetEntity="AnotherDummy")
52
     */
53
    public $anotherDummy;
54
55
    /**
56
     * @return mixed
57
     */
58
    public function getId()
59
    {
60
        return $this->id;
61
    }
62
63
    /**
64
     * @return int
65
     */
66
    public function getAge()
67
    {
68
        return $this->age;
69
    }
70
71
    /**
72
     * @param $symfony
73
     */
74
    public function setSymfony($symfony)
75
    {
76
        $this->symfony = $symfony;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getSymfony()
83
    {
84
        return $this->symfony;
85
    }
86
}
87