1
0
mirror of synced 2025-01-06 09:07:09 +03:00
doctrine2/tests/Doctrine/Tests/Models/Cache/AttractionLocationInfo.php

33 lines
592 B
PHP
Raw Normal View History

2013-02-14 02:42:13 +04:00
<?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;
}
}