33 lines
592 B
PHP
33 lines
592 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\Cache;
|
|
|
|
/**
|
|
* @Entity
|
|
* @Table("cache_attraction_location_info")
|
|
*/
|
|
class AttractionLocationInfo extends AttractionInfo
|
|
{
|
|
const CLASSNAME = __CLASS__;
|
|
|
|
/**
|
|
* @Column(unique=true)
|
|
*/
|
|
protected $address;
|
|
|
|
public function __construct($address, Attraction $attraction)
|
|
{
|
|
$this->setAttraction($attraction);
|
|
$this->setAddress($address);
|
|
}
|
|
|
|
public function getAddress()
|
|
{
|
|
return $this->address;
|
|
}
|
|
|
|
public function setAddress($address)
|
|
{
|
|
$this->address = $address;
|
|
}
|
|
} |