src/Entity/Work.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\WorkRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassWorkRepository::class)]
  7. class Work extends BaseEntity
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $cliente null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $titulo null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $descripcion null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $pathImagen null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $pathVideo null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?int $peso 1;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getCliente(): ?string
  30.     {
  31.         return $this->cliente;
  32.     }
  33.     public function setCliente(string $cliente): self
  34.     {
  35.         $this->cliente $cliente;
  36.         return $this;
  37.     }
  38.     public function getTitulo(): ?string
  39.     {
  40.         return $this->titulo;
  41.     }
  42.     public function setTitulo(string $titulo): self
  43.     {
  44.         $this->titulo $titulo;
  45.         return $this;
  46.     }
  47.     public function getDescripcion(): ?string
  48.     {
  49.         return $this->descripcion;
  50.     }
  51.     public function setDescripcion(?string $descripcion): self
  52.     {
  53.         $this->descripcion $descripcion;
  54.         return $this;
  55.     }
  56.     public function getPathImagen(): ?string
  57.     {
  58.         return $this->pathImagen;
  59.     }
  60.     public function setPathImagen(?string $pathImagen): self
  61.     {
  62.         $this->pathImagen $pathImagen;
  63.         return $this;
  64.     }
  65.     public function getPathVideo(): ?string
  66.     {
  67.         return $this->pathVideo;
  68.     }
  69.     public function setPathVideo(?string $pathVideo): self
  70.     {
  71.         $this->pathVideo $pathVideo;
  72.         return $this;
  73.     }
  74.     public function getPeso(): ?int
  75.     {
  76.         return $this->peso;
  77.     }
  78.     public function setPeso(?int $peso): self
  79.     {
  80.         $this->peso $peso;
  81.         return $this;
  82.     }
  83. }