ContainerEntity::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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 ContainerEntity
15
{
16
    /**
17
     * @var int
18
     */
19
    protected $plainField;
20
21
    /**
22
     * @var AssociatedEntity
23
     */
24
    protected $associatedEntity;
25
26
    /**
27
     * @var Embeddable\EmbeddedEntity
28
     */
29
    protected $embeddedEntity;
30
31
    /**
32
     * @param AssociatedEntity          $associatedEntity
33
     * @param Embeddable\EmbeddedEntity $embeddedEntity
34
     */
35
    public function __construct(AssociatedEntity $associatedEntity, Embeddable\EmbeddedEntity $embeddedEntity)
36
    {
37
        $this->associatedEntity = $associatedEntity;
38
        $this->embeddedEntity = $embeddedEntity;
39
    }
40
41
    /**
42
     * @return AssociatedEntity
43
     */
44
    public function getAssociatedEntity()
45
    {
46
        return $this->associatedEntity;
47
    }
48
}
49