Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Validator\Constraints as Assert;
- /**
- * @ORM\Entity
- * @ORM\Table()
- */
- class RichiestaPreventivo
- {
- /**
- * @ORM\Id
- * @ORM\Column(type="integer")
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $ip;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $referer;
- /**
- * @ORM\Column(type="text", nullable=true)
- */
- protected $useragent;
- /**
- * @ORM\Column(type="string")
- */
- protected $servizio;
- /**
- * @ORM\Column(type="string", nullable=true)
- */
- protected $servizioProdotti;
- public function __toString() {
- return $this->servizioProdott;
- }
- /**
- * @ORM\Column(type="string")
- *
- * @Assert\NotBlank()
- * @Assert\Length(min=3)
- */
- protected $nome;
- /**
- * @ORM\Column(type="string")
- *
- * @Assert\Email(
- * message = "La mail '{{ value }}' non รจ nel formato valido.",
- * checkMX = true
- * )
- */
- protected $email;
- /**
- * @ORM\Column(type="string")
- */
- protected $oggetto;
- /**
- * @ORM\Column(type="text")
- */
- protected $messaggio;
- /**
- * @ORM\Column(type="datetime")
- */
- protected $dataCreazione;
- public function __construct(){
- $this->dataCreazione = new \DateTime();
- }
- /**
- * Set dataCreazione
- *
- * @param \DateTime $dataCreazione
- *
- * @return Utente
- */
- public function setDataCreazione($dataCreazione)
- {
- $this->dataCreazione = $dataCreazione;
- return $this;
- }
- /**
- * Get dataCreazione
- *
- * @return \DateTime
- */
- public function getDataCreazione()
- {
- return $this->dataCreazione;
- }
- /**
- * Get id.
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set ip.
- *
- * @param string|null $ip
- *
- * @return RichiestaPreventivo
- */
- public function setIp($ip = null)
- {
- $this->ip = $ip;
- return $this;
- }
- /**
- * Get ip.
- *
- * @return string|null
- */
- public function getIp()
- {
- return $this->ip;
- }
- /**
- * Set referer.
- *
- * @param string|null $referer
- *
- * @return RichiestaPreventivo
- */
- public function setReferer($referer = null)
- {
- $this->referer = $referer;
- return $this;
- }
- /**
- * Get referer.
- *
- * @return string|null
- */
- public function getReferer()
- {
- return $this->referer;
- }
- /**
- * Set useragent.
- *
- * @param string|null $useragent
- *
- * @return RichiestaPreventivo
- */
- public function setUseragent($useragent = null)
- {
- $this->useragent = $useragent;
- return $this;
- }
- /**
- * Get useragent.
- *
- * @return string|null
- */
- public function getUseragent()
- {
- return $this->useragent;
- }
- /**
- * Set servizio.
- *
- * @param string $servizio
- *
- * @return RichiestaPreventivo
- */
- public function setServizio($servizio)
- {
- $this->servizio = $servizio;
- return $this;
- }
- /**
- * Get servizio.
- *
- * @return string
- */
- public function getServizio()
- {
- return $this->servizio;
- }
- /**
- * Set servizioProdotti.
- *
- * @param string $servizioProdotti
- *
- * @return RichiestaPreventivo
- */
- public function setServizioProdotti($servizioProdotti)
- {
- $this->servizioProdotti = $servizioProdotti;
- return $this;
- }
- /**
- * Get servizioProdotti.
- *
- * @return string
- */
- public function getServizioProdotti()
- {
- return $this->servizioProdotti;
- }
- /**
- * Set nome.
- *
- * @param string $nome
- *
- * @return RichiestaPreventivo
- */
- public function setNome($nome)
- {
- $this->nome = $nome;
- return $this;
- }
- /**
- * Get nome.
- *
- * @return string
- */
- public function getNome()
- {
- return $this->nome;
- }
- /**
- * Set email.
- *
- * @param string $email
- *
- * @return RichiestaPreventivo
- */
- public function setEmail($email)
- {
- $this->email = $email;
- return $this;
- }
- /**
- * Get email.
- *
- * @return string
- */
- public function getEmail()
- {
- return $this->email;
- }
- /**
- * Set oggetto.
- *
- * @param string $oggetto
- *
- * @return RichiestaPreventivo
- */
- public function setOggetto($oggetto)
- {
- $this->oggetto = $oggetto;
- return $this;
- }
- /**
- * Get oggetto.
- *
- * @return string
- */
- public function getOggetto()
- {
- return $this->oggetto;
- }
- /**
- * Set messaggio.
- *
- * @param string $messaggio
- *
- * @return RichiestaPreventivo
- */
- public function setMessaggio($messaggio)
- {
- $this->messaggio = $messaggio;
- return $this;
- }
- /**
- * Get messaggio.
- *
- * @return string
- */
- public function getMessaggio()
- {
- return $this->messaggio;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement