Created
January 20, 2015 20:40
-
-
Save AndrianD/047bc966c36b217e00db to your computer and use it in GitHub Desktop.
AndrianaTchoupiBundle\Entity Symfony2
This file contains hidden or 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 Andriana\TchoupiBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Toys | |
* | |
* @ORM\Table("tchoupi") | |
* @ORM\Entity(repositoryClass="Andriana\TchoupiBundle\Entity\ToysRepository") | |
*/ | |
class Toys | |
{ | |
/** | |
* @var integer | |
* | |
* @ORM\Column(name="id", type="integer") | |
* @ORM\Id | |
* @ORM\GeneratedValue(strategy="AUTO") | |
*/ | |
private $id; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="nom", type="string", length=255) | |
*/ | |
private $nom; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="type", type="string", length=255) | |
*/ | |
private $type; | |
/** | |
* @var integer | |
* | |
* @ORM\Column(name="poids", type="integer") | |
*/ | |
private $poids; | |
/** | |
* Get id | |
* | |
* @return integer | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* Set nom | |
* | |
* @param string $nom | |
* @return Toys | |
*/ | |
public function setNom($nom) | |
{ | |
$this->nom = $nom; | |
return $this; | |
} | |
/** | |
* Get nom | |
* | |
* @return string | |
*/ | |
public function getNom() | |
{ | |
return $this->nom; | |
} | |
/** | |
* Set type | |
* | |
* @param string $type | |
* @return Toys | |
*/ | |
public function setType($type) | |
{ | |
$this->type = $type; | |
return $this; | |
} | |
/** | |
* Get type | |
* | |
* @return string | |
*/ | |
public function getType() | |
{ | |
return $this->type; | |
} | |
/** | |
* Set poids | |
* | |
* @param integer $poids | |
* @return Toys | |
*/ | |
public function setPoids($poids) | |
{ | |
$this->poids = $poids; | |
return $this; | |
} | |
/** | |
* Get poids | |
* | |
* @return integer | |
*/ | |
public function getPoids() | |
{ | |
return $this->poids; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment