Created
May 17, 2012 13:43
-
-
Save salimos/2719012 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 | |
#symfony/src/dwira/AnnoncesBundle/Entity/annonce.php | |
namespace dwira\AnnoncesBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* dwira\AnnoncesBundle\Entity\annonce | |
* | |
* @ORM\Table() | |
* @ORM\Entity(repositoryClass="dwira\AnnoncesBundle\Entity\annonceRepository") | |
*/ | |
class annonce | |
{ | |
/** | |
* @var integer $id | |
* | |
* @ORM\Column(name="id", type="integer") | |
* @ORM\Id | |
* @ORM\GeneratedValue(strategy="AUTO") | |
*/ | |
private $id; | |
/** | |
* @var integer $id_user | |
* | |
* @ORM\Column(name="id_user", type="integer") | |
*/ | |
private $id_user; | |
/** | |
* @var string $description | |
* | |
* @ORM\Column(name="description", type="string", length=255) | |
*/ | |
private $description; | |
/** | |
* @var float $lang | |
* | |
* @ORM\Column(name="lang", type="float") | |
*/ | |
private $lang; | |
/** | |
* @var float $lat | |
* | |
* @ORM\Column(name="lat", type="float") | |
*/ | |
private $lat; | |
/** | |
* @var string $type_annonce | |
* | |
* @ORM\Column(name="type_annonce", type="string", length=25) | |
*/ | |
private $type_annonce; | |
/** | |
* @var string $type_local | |
* | |
* @ORM\Column(name="type_local", type="string", length=55) | |
*/ | |
private $type_local; | |
/** | |
* @var datetime $date_ajout | |
* | |
* @ORM\Column(name="date_ajout", type="datetime") | |
*/ | |
private $date_ajout; | |
/** | |
* @var datetime $date_expiration | |
* | |
* @ORM\Column(name="date_expiration", type="datetime") | |
*/ | |
private $date_expiration; | |
/** | |
* @var integer $prix | |
* | |
* @ORM\Column(name="prix", type="integer") | |
*/ | |
private $prix; | |
/** | |
* Get id | |
* | |
* @return integer | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* Set id_user | |
* | |
* @param integer $idUser | |
*/ | |
public function setIdUser($idUser) | |
{ | |
$this->id_user = $idUser; | |
} | |
/** | |
* Get id_user | |
* | |
* @return integer | |
*/ | |
public function getIdUser() | |
{ | |
return $this->id_user; | |
} | |
/** | |
* Set description | |
* | |
* @param string $description | |
*/ | |
public function setDescription($description) | |
{ | |
$this->description = $description; | |
} | |
/** | |
* Get description | |
* | |
* @return string | |
*/ | |
public function getDescription() | |
{ | |
return $this->description; | |
} | |
/** | |
* Set lang | |
* | |
* @param float $lang | |
*/ | |
public function setLang($lang) | |
{ | |
$this->lang = $lang; | |
} | |
/** | |
* Get lang | |
* | |
* @return float | |
*/ | |
public function getLang() | |
{ | |
return $this->lang; | |
} | |
/** | |
* Set lat | |
* | |
* @param float $lat | |
*/ | |
public function setLat($lat) | |
{ | |
$this->lat = $lat; | |
} | |
/** | |
* Get lat | |
* | |
* @return float | |
*/ | |
public function getLat() | |
{ | |
return $this->lat; | |
} | |
/** | |
* Set type_annonce | |
* | |
* @param string $typeAnnonce | |
*/ | |
public function setTypeAnnonce($typeAnnonce) | |
{ | |
$this->type_annonce = $typeAnnonce; | |
} | |
/** | |
* Get type_annonce | |
* | |
* @return string | |
*/ | |
public function getTypeAnnonce() | |
{ | |
return $this->type_annonce; | |
} | |
/** | |
* Set type_local | |
* | |
* @param string $typeLocal | |
*/ | |
public function setTypeLocal($typeLocal) | |
{ | |
$this->type_local = $typeLocal; | |
} | |
/** | |
* Get type_local | |
* | |
* @return string | |
*/ | |
public function getTypeLocal() | |
{ | |
return $this->type_local; | |
} | |
/** | |
* Set date_ajout | |
* | |
* @param datetime $dateAjout | |
*/ | |
public function setDateAjout($dateAjout) | |
{ | |
$this->date_ajout = $dateAjout; | |
} | |
/** | |
* Get date_ajout | |
* | |
* @return datetime | |
*/ | |
public function getDateAjout() | |
{ | |
return $this->date_ajout; | |
} | |
/** | |
* Set date_expiration | |
* | |
* @param datetime $dateExpiration | |
*/ | |
public function setDateExpiration($dateExpiration) | |
{ | |
$this->date_expiration = $dateExpiration; | |
} | |
/** | |
* Get date_expiration | |
* | |
* @return datetime | |
*/ | |
public function getDateExpiration() | |
{ | |
return $this->date_expiration; | |
} | |
/** | |
* Set prix | |
* | |
* @param integer $prix | |
*/ | |
public function setPrix($prix) | |
{ | |
$this->prix = $prix; | |
} | |
/** | |
* Get prix | |
* | |
* @return integer | |
*/ | |
public function getPrix() | |
{ | |
return $this->prix; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment