50 lines
685 B
PHP
50 lines
685 B
PHP
|
<?php
|
||
|
|
||
|
namespace Doctrine\Tests\Models\Cache;
|
||
|
|
||
|
/**
|
||
|
* @Cache
|
||
|
* @Entity
|
||
|
* @Table("cache_country")
|
||
|
*/
|
||
|
class Country
|
||
|
{
|
||
|
const CLASSNAME = __CLASS__;
|
||
|
|
||
|
/**
|
||
|
* @Id
|
||
|
* @GeneratedValue
|
||
|
* @Column(type="integer")
|
||
|
*/
|
||
|
protected $id;
|
||
|
|
||
|
/**
|
||
|
* @Column(unique=true)
|
||
|
*/
|
||
|
protected $name;
|
||
|
|
||
|
public function __construct($name)
|
||
|
{
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
|
||
|
public function getId()
|
||
|
{
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
public function setId($id)
|
||
|
{
|
||
|
$this->id = $id;
|
||
|
}
|
||
|
|
||
|
public function getName()
|
||
|
{
|
||
|
return $this->name;
|
||
|
}
|
||
|
|
||
|
public function setName($name)
|
||
|
{
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
}
|