Completed
Push — master ( 0eab77...b2f729 )
by Paul
05:35
created

APIEndpoint::getHost()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Victoire\Bundle\APIBusinessEntityBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * API endpoint.
9
 *
10
 * @ORM\Entity()
11
 * @ORM\Table("vic_api_endpoint")
12
 */
13
class APIEndpoint
14
{
15
    /**
16
     * @var int
17
     *
18
     * @ORM\Column(name="id", type="integer")
19
     * @ORM\Id
20
     * @ORM\GeneratedValue(strategy="AUTO")
21
     */
22
    protected $id;
23
    /**
24
     * @var string
25
     *
26
     * @ORM\Column(name="name", type="string", length=255)
27
     */
28
    protected $name;
29
    /**
30
     * @var string
31
     *
32
     * @ORM\Column(name="host", type="text")
33
     */
34
    protected $host;
35
    /**
36
     * @var string
37
     *
38
     * @ORM\Column(name="token", type="text", nullable=true)
39
     */
40
    protected $token;
41
    /**
42
     * @var string
43
     *
44
     * @ORM\Column(name="tokenType", type="string", nullable=true)
45
     */
46
    protected $tokenType;
47
48
    /**
49
     * Get the id.
50
     *
51
     * @return string The id
52
     */
53
    public function getId()
54
    {
55
        return $this->id;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getName()
62
    {
63
        return $this->name;
64
    }
65
66
    /**
67
     * @param string $name
68
     */
69
    public function setName($name)
70
    {
71
        $this->name = $name;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getHost()
78
    {
79
        return $this->host;
80
    }
81
82
    /**
83
     * @param string $host
84
     */
85
    public function setHost($host)
86
    {
87
        $this->host = $host;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getToken()
94
    {
95
        return $this->token;
96
    }
97
98
    /**
99
     * @param string $token
100
     */
101
    public function setToken($token)
102
    {
103
        $this->token = $token;
104
    }
105
106
    /**
107
     * @return string
108
     */
109
    public function getTokenType()
110
    {
111
        return $this->tokenType;
112
    }
113
114
    /**
115
     * @param string $tokenType
116
     */
117
    public function setTokenType($tokenType)
118
    {
119
        $this->tokenType = $tokenType;
120
    }
121
}
122