1 | <?php |
||
47 | class Port |
||
48 | { |
||
49 | /** |
||
50 | * Port ID |
||
51 | * |
||
52 | * @var integer |
||
53 | * @Id @Column(type="integer") |
||
54 | * @GeneratedValue |
||
55 | */ |
||
56 | protected $id; |
||
57 | /** |
||
58 | * Virtual host this port is belonging to |
||
59 | * |
||
60 | * @var Vhost|null |
||
61 | * @ManyToOne(targetEntity="Tollwerk\Admin\Infrastructure\Model\Vhost", inversedBy="ports") |
||
62 | * @JoinColumn(name="vhost_id", referencedColumnName="id", onDelete="CASCADE") |
||
63 | */ |
||
64 | protected $vhost; |
||
65 | /** |
||
66 | * HTTP port |
||
67 | * |
||
68 | * @var int |
||
69 | * @Column(type="integer", options={"unsigned":true}) |
||
70 | */ |
||
71 | protected $port; |
||
72 | /** |
||
73 | * Protocol |
||
74 | * |
||
75 | * @var int |
||
76 | * @Column(type="integer", options={"unsigned":true}) |
||
77 | */ |
||
78 | protected $protocol; |
||
79 | |||
80 | /** |
||
81 | * Return the port ID |
||
82 | * |
||
83 | * @return int Port ID |
||
84 | */ |
||
85 | public function getId() |
||
89 | |||
90 | /** |
||
91 | * Set the port ID |
||
92 | * |
||
93 | * @param int $id Port ID |
||
94 | * @return Port |
||
95 | */ |
||
96 | public function setId($id) |
||
101 | |||
102 | /** |
||
103 | * Return the virtual host this port is belonging to |
||
104 | * |
||
105 | * @return Vhost Virtual host this port is belonging to |
||
106 | */ |
||
107 | public function getVhost() |
||
111 | |||
112 | /** |
||
113 | * Set the virtual host this port is belonging to |
||
114 | * |
||
115 | * @param Vhost $vhost Virtual host this port is belonging to |
||
116 | * @return Port Self reference |
||
117 | */ |
||
118 | public function setVhost($vhost = null) |
||
123 | |||
124 | /** |
||
125 | * Return the HTTP port |
||
126 | * |
||
127 | * @return int HTTP port |
||
128 | */ |
||
129 | public function getPort() |
||
133 | |||
134 | /** |
||
135 | * Set the HTTP port |
||
136 | * |
||
137 | * @param int $port HTTP port |
||
138 | * @return Port Self reference |
||
139 | */ |
||
140 | public function setPort($port) |
||
145 | |||
146 | /** |
||
147 | * Return the protocol |
||
148 | * |
||
149 | * @return int Protocol |
||
150 | */ |
||
151 | public function getProtocol() |
||
155 | |||
156 | /** |
||
157 | * Set the protocol |
||
158 | * |
||
159 | * @param int $protocol Protocol |
||
160 | * @return Port Self reference |
||
161 | */ |
||
162 | public function setProtocol($protocol) |
||
167 | } |
||
168 |