<?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;
    }
}
?>
