access_point.php
785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
// src/access_point.php
/**
* @Entity @Table(name="access_point")
**/
class access_point
{
/** @Id @Column(type="integer") @GeneratedValue **/
protected $id;
/** @Column(type="string") **/
protected $mac_addr;
/** @OneToOne(targetEntity="location")
* @JoinColumn(name="location_id", referencedColumnName="id")
*/
protected $location;
public function getId()
{
return $this->id;
}
public function getMac_addr()
{
return $this->mac_addr;
}
public function getLocation()
{
return $this->location;
}
public function setLocation($location)
{
$this->location = $location;
}
public function setMac_addr($mac)
{
$this->mac_addr = $mac;
}
}
?>