GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

LocationDto   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1
Metric Value
wmc 4
lcom 2
cbo 1
dl 0
loc 46
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getUnLocode() 0 4 1
A setName() 0 5 1
A setUnLocode() 0 5 1
1
<?php
2
/*
3
 * This file is part of the prooph/php-ddd-cargo-sample.
4
 * (c) Alexander Miertsch <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 * 
9
 * Date: 29.03.14 - 17:48
10
 */
11
declare(strict_types = 1);
12
13
namespace Codeliner\CargoBackend\Application\Booking\Dto;
14
15
use Assert\Assertion;
16
17
class LocationDto
18
{
19
    /**
20
     * @var string
21
     */
22
    private $unLocode;
23
24
    /**
25
     * @var string
26
     */
27
    private $name;
28
29
    /**
30
     * @param string $name
31
     */
32
    public function setName(string $name)
33
    {
34
        Assertion::notEmpty($name);
35
        $this->name = $name;
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getName(): string
42
    {
43
        return $this->name;
44
    }
45
46
    /**
47
     * @param string $unLocode
48
     */
49
    public function setUnLocode(string $unLocode)
50
    {
51
        Assertion::notEmpty($unLocode);
52
        $this->unLocode = $unLocode;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getUnLocode(): string
59
    {
60
        return $this->unLocode;
61
    }
62
}
63