ContainerEntity   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getAssociatedEntity() 0 4 1
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