<?php
namespace App\Entity;
use App\Repository\FeedRepository;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Translatable\Translatable;
/**
* @ORM\Entity(repositoryClass=FeedRepository::class)
*/
class Feed
{
/**
* @var int representa el id del feedback, unico, clave primaria, autogenerado.
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @var string feedback del usuario
* @ORM\Column(type="text")
* @Assert\NotBlank
*/
protected $feedback;
/**
* @var string feedback del usuario
* @ORM\Column(type="string")
* @Assert\NotBlank
* @Assert\Email
*/
protected $email;
/**
* @var string nombre del usuario
* @ORM\Column(type="string")
* @Assert\NotBlank
*/
protected $nombre;
public function getId(): ?int
{
return $this->id;
}
public function getFeedback(): ?string
{
return $this->feedback;
}
public function setFeedback(string $feedback): self
{
$this->feedback = $feedback;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): self
{
$this->nombre = $nombre;
return $this;
}
}