Created
May 30, 2012 02:06
-
-
Save ecoleman/2832730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Blank\FunkyBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Blank\FunkyBundle\Entity\Product | |
* | |
* @ORM\Table() | |
* @ORM\Entity | |
*/ | |
class Product | |
{ | |
/** | |
* @var integer $id | |
* | |
* @ORM\Column(name="id", type="integer") | |
* @ORM\Id | |
* @ORM\GeneratedValue(strategy="AUTO") | |
*/ | |
private $id; | |
/** | |
* @var string $name | |
* | |
* @ORM\Column(name="name", type="string", length=255) | |
*/ | |
private $name; | |
/** | |
* @var datetime $date | |
* | |
* @ORM\Column(name="date", type="datetime") | |
*/ | |
private $date; | |
/** | |
* @var string $description | |
* | |
* @ORM\Column(name="description", type="string", length=255) | |
*/ | |
private $description; | |
/** | |
* Get id | |
* | |
* @return integer | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* Set name | |
* | |
* @param string $name | |
* @return Product | |
*/ | |
public function setName($name) | |
{ | |
$this->name = $name; | |
return $this; | |
} | |
/** | |
* Get name | |
* | |
* @return string | |
*/ | |
public function getName() | |
{ | |
return $this->name; | |
} | |
/** | |
* Set date | |
* | |
* @param datetime $date | |
* @return Product | |
*/ | |
public function setDate($date) | |
{ | |
$this->date = $date; | |
return $this; | |
} | |
/** | |
* Get date | |
* | |
* @return datetime | |
*/ | |
public function getDate() | |
{ | |
return $this->date; | |
} | |
/** | |
* Set description | |
* | |
* @param string $description | |
* @return Product | |
*/ | |
public function setDescription($description) | |
{ | |
$this->description = $description; | |
return $this; | |
} | |
/** | |
* Get description | |
* | |
* @return string | |
*/ | |
public function getDescription() | |
{ | |
return $this->description; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment