Completed
Pull Request — master (#5867)
by Luís
13:23
created

DDC3303Employee::getCompany()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
}
41