Completed
Pull Request — master (#5867)
by Luís
20:43 queued 06:00
created

DDC3303Employee   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getCompany() 0 4 1
A setCompany() 0 4 1
1
<?php
2
namespace Doctrine\Tests\Models\DDC3303;
3
4
/**
5
 * @Entity
6
 * @Table(name="ddc3303_employee")
7
 */
8
class DDC3303Employee extends DDC3303Person
9
{
10
    /**
11
     * @Column(type="string")
12
     *
13
     * @var string
14
     */
15
    private $company;
16
17
    public function __construct($name, DDC3303Address $address, $company)
18
    {
19
        parent::__construct($name, $address);
20
21
        $this->company = $company;
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    public function getCompany()
28
    {
29
        return $this->company;
30
    }
31
32
    /**
33
     * @param string $company
34
     */
35
    public function setCompany($company)
36
    {
37
        $this->company = $company;
38
    }
39
}
40