Passed
Push — master ( 696880...94f8a0 )
by WEBEWEB
03:25
created

Office::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the jquery-datatables-bundle package.
5
 *
6
 * (c) 2018 WEBEWEB
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 WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Entity;
13
14
use WBW\Library\Traits\Integers\IntegerIdTrait;
15
16
/**
17
 * Office.
18
 *
19
 * @author webeweb <https://github.com/webeweb>
20
 * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Entity
21
 */
22
class Office {
23
24
    use IntegerIdTrait;
25
26
    /**
27
     * Name.
28
     *
29
     * @var string|null
30
     */
31
    private $name;
32
33
    /**
34
     * Constructor.
35
     */
36
    public function __construct() {
37
        // NOTHING TO DO
38
    }
39
40
    /**
41
     * Get the name.
42
     *
43
     * @return string|null Returns the name.
44
     */
45
    public function getName(): ?string {
46
        return $this->name;
47
    }
48
49
    /**
50
     * Set the name.
51
     *
52
     * @param string|null $name The name.
53
     * @return Office Returns this office.
54
     */
55
    public function setName(?string $name): Office {
56
        $this->name = $name;
57
        return $this;
58
    }
59
}
60