1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/Doctrine/Tests/Models/Cache/AttractionLocationInfo.php
2013-12-16 11:05:04 -05:00

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