src/Entity/ActividadEconomica.php line 14

  1. <?php
  2. /*
  3.  *  @author Guerby Duval <info@tranzaksyon.com>
  4.  *  @link https://tranzaksyon.com
  5.  *  @copyright You are not allowed to remove this author "Guerby Duval <info@tranzaksyon.com>", the link "https://tranzaksyon.com" neither this copyright.
  6.  */
  7. namespace App\Entity;
  8. use App\Repository\ActividadEconomicaRepository;
  9. use Doctrine\ORM\Mapping as ORM;
  10. #[ORM\Entity(repositoryClassActividadEconomicaRepository::class)]
  11. class ActividadEconomica
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\Column(length10)]
  18.     private ?string $codigo null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $descripcion null;
  21.     #[ORM\ManyToOne(inversedBy'actividadEconomicas')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?SriInfo $sriInfo null;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getCodigo(): ?string
  29.     {
  30.         return $this->codigo;
  31.     }
  32.     public function setCodigo(string $codigo): static
  33.     {
  34.         $this->codigo $codigo;
  35.         return $this;
  36.     }
  37.     public function getDescripcion(): ?string
  38.     {
  39.         return $this->descripcion;
  40.     }
  41.     public function setDescripcion(string $descripcion): static
  42.     {
  43.         $this->descripcion $descripcion;
  44.         return $this;
  45.     }
  46.     public function getSriInfo(): ?SriInfo
  47.     {
  48.         return $this->sriInfo;
  49.     }
  50.     public function setSriInfo(?SriInfo $sriInfo): static
  51.     {
  52.         $this->sriInfo $sriInfo;
  53.         return $this;
  54.     }
  55. }