Completed
Pull Request — master (#115)
by Phil
02:51
created

RouteConditionTrait::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace League\Route;
4
5
trait RouteConditionTrait
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $host;
11
12
    /**
13
     * @var string
14
     */
15
    protected $name;
16
17
    /**
18
     * @var string
19
     */
20
    protected $scheme;
21
22
    /**
23
     * Get the host.
24
     *
25
     * @return string
26
     */
27
    public function getHost()
28
    {
29
        return $this->host;
30
    }
31
32
    /**
33
     * Set the host.
34
     *
35
     * @param string $host
36
     *
37
     * @return \League\Route\Route
38
     */
39
    public function setHost($host)
40
    {
41
        $this->host = $host;
42
43
        return $this;
44
    }
45
46
    /**
47
     * Get the name.
48
     *
49
     * @return string
50
     */
51
    public function getName()
52
    {
53
        return $this->name;
54
    }
55
56
    /**
57
     * Set the name.
58
     *
59
     * @param string $name
60
     *
61
     * @return \League\Route\Route
62
     */
63
    public function setName($name)
64
    {
65
        $this->name = $name;
66
67
        return $this;
68
    }
69
70
    /**
71
     * Get the scheme.
72
     *
73
     * @return string
74
     */
75
    public function getScheme()
76
    {
77
        return $this->scheme;
78
    }
79
80
    /**
81
     * Set the scheme.
82
     *
83
     * @param string $scheme
84
     *
85
     * @return \League\Route\Route
86
     */
87
    public function setScheme($scheme)
88
    {
89
        $this->scheme = $scheme;
90
91
        return $this;
92
    }
93
}
94