Completed
Pull Request — 3.x (#597)
by
unknown
08:33
created

ContainerEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getAssociatedEntity() 0 4 1
1
<?php
2
3
namespace Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity;
4
5
class ContainerEntity
6
{
7
    /**
8
     * @var int
9
     */
10
    protected $plainField;
11
12
    /**
13
     * @var AssociatedEntity
14
     */
15
    protected $associatedEntity;
16
17
    /**
18
     * @var Embeddable\EmbeddedEntity
19
     */
20
    protected $embeddedEntity;
21
22
    /**
23
     * @param AssociatedEntity          $associatedEntity
24
     * @param Embeddable\EmbeddedEntity $embeddedEntity
25
     */
26
    public function __construct(AssociatedEntity $associatedEntity, Embeddable\EmbeddedEntity $embeddedEntity)
27
    {
28
        $this->associatedEntity = $associatedEntity;
29
        $this->embeddedEntity = $embeddedEntity;
30
    }
31
32
    /**
33
     * @return AssociatedEntity
34
     */
35
    public function getAssociatedEntity()
36
    {
37
        return $this->associatedEntity;
38
    }
39
}
40