<?phpnamespace App\Entity;use App\Repository\SecModuloRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SecModuloRepository::class)]class SecModulo{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 100)] private ?string $nombre = null; #[ORM\Column(length: 255)] private ?string $path = null; #[ORM\Column(length: 255, nullable: true)] private ?string $icono = null; #[ORM\Column(length: 255, nullable: true)] private ?string $class = null; #[ORM\Column] private ?int $orden = null; #[ORM\OneToMany(mappedBy: 'modulo', targetEntity: SecFuncion::class)] private Collection $secFuncion; #[ORM\Column(length: 255)] private ?string $rutaInterna = null; public function __construct() { $this->secFuncion = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(string $nombre): static { $this->nombre = $nombre; return $this; } public function getPath(): ?string { return $this->path; } public function setPath(string $path): static { $this->path = $path; return $this; } public function getIcono(): ?string { return $this->icono; } public function setIcono(?string $icono): static { $this->icono = $icono; return $this; } public function getClass(): ?string { return $this->class; } public function setClass(?string $class): static { $this->class = $class; return $this; } public function getOrden(): ?int { return $this->orden; } public function setOrden(int $orden): static { $this->orden = $orden; return $this; } /** * @return Collection<int, SecFuncion> */ public function getSecFuncion(): Collection { return $this->secFuncion; } public function addSecFuncion(SecFuncion $secFuncion): static { if (!$this->secFuncion->contains($secFuncion)) { $this->secFuncion->add($secFuncion); $secFuncion->setModulo($this); } return $this; } public function removeSecFuncion(SecFuncion $secFuncion): static { if ($this->secFuncion->removeElement($secFuncion)) { // set the owning side to null (unless already changed) if ($secFuncion->getModulo() === $this) { $secFuncion->setModulo(null); } } return $this; } public function getRutaInterna(): ?string { return $this->rutaInterna; } public function setRutaInterna(string $rutaInterna): static { $this->rutaInterna = $rutaInterna; return $this; } }