AssociatedEntity::getPlainField()   A
last analyzed

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
3
/*
4
 * This file is part of the Sonata Project package.
5
 *
6
 * (c) Thomas Rabaix <[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 Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity;
13
14
class AssociatedEntity
15
{
16
    /**
17
     * @var int
18
     */
19
    protected $plainField;
20
21
    /**
22
     * @var Embeddable\EmbeddedEntity
23
     */
24
    protected $embeddedEntity;
25
26
    /**
27
     * AssociatedEntity constructor.
28
     *
29
     * @param int                       $plainField
30
     * @param Embeddable\EmbeddedEntity $embeddedEntity
31
     */
32
    public function __construct($plainField = null, Embeddable\EmbeddedEntity $embeddedEntity)
33
    {
34
        $this->plainField = $plainField;
35
        $this->embeddedEntity = $embeddedEntity;
36
    }
37
38
    /**
39
     * @return int
40
     */
41
    public function getPlainField()
42
    {
43
        return $this->plainField;
44
    }
45
}
46