src/Entity/TipologiePreimpostate.php line 16
<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/*** TipologiePreimpostate** @ORM\Table(name="tipologie_preimpostate")* @ORM\Entity(repositoryClass="App\Repository\TipologiePreimpostateRepository")*/class TipologiePreimpostate{/*** @var int** @ORM\Column(name="id", type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @var string** @ORM\Column(name="nome", type="string", length=255)*/private $nome;/*** @var string** @ORM\Column(name="riferimento_importazione", type="string", length=255, nullable=true)*/private $riferimentoImportazione;/*** @var string** @ORM\Column(name="nota", type="string", length=255, nullable=true)*/private $nota;/*** @ORM\OneToMany(targetEntity="TipologiePreimpostateLista", mappedBy="testata", cascade={"remove"})*/private $lista;/*** @var \DateTime** @ORM\Column(name="data_modifica", type="datetime")*/private $dataModifica;/*** @var \DateTime** @ORM\Column(name="data_creazione", type="datetime")*/private $dataCreazione;/*** @ORM\ManyToOne(targetEntity="User")* @ORM\JoinColumn(name="utente_id", referencedColumnName="id", onDelete="SET NULL")*/private $utente;/*** Constructor*/public function __construct(){$this->lista = new \Doctrine\Common\Collections\ArrayCollection();}public function getId(): ?int{return $this->id;}public function setNome(string $nome): static{$this->nome = $nome;return $this;}public function getNome(): ?string{return $this->nome;}public function setNota(?string $nota): static{$this->nota = $nota;return $this;}public function getNota(): ?string{return $this->nota;}public function setDataModifica(\DateTimeInterface $dataModifica): static{$this->dataModifica = $dataModifica;return $this;}public function getDataModifica(): ?\DateTimeInterface{return $this->dataModifica;}public function setDataCreazione(\DateTimeInterface $dataCreazione): static{$this->dataCreazione = $dataCreazione;return $this;}public function getDataCreazione(): ?\DateTimeInterface{return $this->dataCreazione;}public function setUtente(?User $utente): static{$this->utente = $utente;return $this;}public function getUtente(): ?User{return $this->utente;}public function addListum(TipologiePreimpostateLista $listum): static{if (!$this->lista->contains($listum)) {$this->lista->add($listum);$listum->setTestata($this);}return $this;}public function removeListum(TipologiePreimpostateLista $listum): static{if ($this->lista->removeElement($listum)) {// set the owning side to null (unless already changed)if ($listum->getTestata() === $this) {$listum->setTestata(null);}}return $this;}/*** @return Collection<int, TipologiePreimpostateLista>*/public function getLista(): Collection{return $this->lista;}public function setRiferimentoImportazione(?string $riferimentoImportazione): static{$this->riferimentoImportazione = $riferimentoImportazione;return $this;}public function getRiferimentoImportazione(): ?string{return $this->riferimentoImportazione;}}