<?php
namespace App\Entity;
use App\Repository\TPublikasiRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="t_publikasi")
* @ORM\Entity(repositoryClass=TPublikasiRepository::class)
*/
class TPublikasi
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $judul;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $satuan;
/**
* @ORM\ManyToOne(targetEntity=MPeriode::class, inversedBy="tPublikasis")
*/
private $periode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tahun;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $deskripsi;
/**
* @ORM\ManyToOne(targetEntity=MStatus::class, inversedBy="tPublikasis")
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity=MWilayah::class, inversedBy="tPublikasis")
*/
private $wilayah;
/**
* @ORM\ManyToOne(targetEntity=TDiv::class, inversedBy="tPublikasis")
*/
private $div;
/**
* @ORM\ManyToOne(targetEntity=MUrusan::class, inversedBy="tPublikasis")
*/
private $urusan;
/**
* @ORM\ManyToOne(targetEntity=MSektor::class, inversedBy="tPublikasis")
*/
private $sektor;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $kode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $dimensi;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $keyword;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $konsep;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rumus;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $kegunaan;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $intepretasi;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $metodologi;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $created_at;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updated_at;
/**
* @ORM\OneToMany(targetEntity=TVariabel::class, mappedBy="pub", cascade={"persist", "remove"})
*/
private $tVariabels;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $view;
/**
* @ORM\OneToMany(targetEntity=TData::class, mappedBy="pub", cascade={"persist", "remove"})
*/
private $tData;
/**
* @ORM\OneToOne(targetEntity=TGrafik::class, mappedBy="pub", cascade={"persist", "remove"})
*/
private $tGrafik;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $reff_id;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $tipe;
/**
* @ORM\OneToMany(targetEntity=TFile::class, mappedBy="pub", cascade={"persist", "remove"})
*/
private $tFiles;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $jenis;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $jumlah_download;
public function __construct()
{
$this->tVariabels = new ArrayCollection();
$this->tData = new ArrayCollection();
$this->tFiles = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
public function getJudul(): ?string
{
return $this->judul;
}
public function setJudul(string $judul): self
{
$this->judul = $judul;
return $this;
}
public function getSumber(): ?string
{
return $this->sumber;
}
public function setSumber(?string $sumber): self
{
$this->sumber = $sumber;
return $this;
}
public function getSatuan(): ?string
{
return $this->satuan;
}
public function setSatuan(?string $satuan): self
{
$this->satuan = $satuan;
return $this;
}
public function getPeriode(): ?MPeriode
{
return $this->periode;
}
public function setPeriode(?MPeriode $periode): self
{
$this->periode = $periode;
return $this;
}
public function getTahun(): ?string
{
return $this->tahun;
}
public function setTahun(?string $tahun): self
{
$this->tahun = $tahun;
return $this;
}
public function getDeskripsi(): ?string
{
return $this->deskripsi;
}
public function setDeskripsi(?string $deskripsi): self
{
$this->deskripsi = $deskripsi;
return $this;
}
public function getStatus(): ?MStatus
{
return $this->status;
}
public function setStatus(?MStatus $status): self
{
$this->status = $status;
return $this;
}
public function getWilayah(): ?MWilayah
{
return $this->wilayah;
}
public function setWilayah(?MWilayah $wilayah): self
{
$this->wilayah = $wilayah;
return $this;
}
public function getDiv(): ?TDiv
{
return $this->div;
}
public function setDiv(?TDiv $div): self
{
$this->div = $div;
return $this;
}
public function getUrusan(): ?MUrusan
{
return $this->urusan;
}
public function setUrusan(?MUrusan $urusan): self
{
$this->urusan = $urusan;
return $this;
}
public function getSektor(): ?MSektor
{
return $this->sektor;
}
public function setSektor(?MSektor $sektor): self
{
$this->sektor = $sektor;
return $this;
}
public function getKode(): ?string
{
return $this->kode;
}
public function setKode(?string $kode): self
{
$this->kode = $kode;
return $this;
}
public function getDimensi(): ?string
{
return $this->dimensi;
}
public function setDimensi(?string $dimensi): self
{
$this->dimensi = $dimensi;
return $this;
}
public function getKeyword(): ?string
{
return $this->keyword;
}
public function setKeyword(?string $keyword): self
{
$this->keyword = $keyword;
return $this;
}
public function getKonsep(): ?string
{
return $this->konsep;
}
public function setKonsep(?string $konsep): self
{
$this->konsep = $konsep;
return $this;
}
public function getRumus(): ?string
{
return $this->rumus;
}
public function setRumus(?string $rumus): self
{
$this->rumus = $rumus;
return $this;
}
public function getKegunaan(): ?string
{
return $this->kegunaan;
}
public function setKegunaan(?string $kegunaan): self
{
$this->kegunaan = $kegunaan;
return $this;
}
public function getIntepretasi(): ?string
{
return $this->intepretasi;
}
public function setIntepretasi(?string $intepretasi): self
{
$this->intepretasi = $intepretasi;
return $this;
}
public function getMetodologi(): ?string
{
return $this->metodologi;
}
public function setMetodologi(?string $metodologi): self
{
$this->metodologi = $metodologi;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(?\DateTimeInterface $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updated_at;
}
public function setUpdatedAt(?\DateTimeInterface $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
/**
* @return Collection|TVariabel[]
*/
public function getTVariabels(): Collection
{
return $this->tVariabels;
}
public function addTVariabel(TVariabel $tVariabel): self
{
if (!$this->tVariabels->contains($tVariabel)) {
$this->tVariabels[] = $tVariabel;
$tVariabel->setPub($this);
}
return $this;
}
public function removeTVariabel(TVariabel $tVariabel): self
{
if ($this->tVariabels->removeElement($tVariabel)) {
// set the owning side to null (unless already changed)
if ($tVariabel->getPub() === $this) {
$tVariabel->setPub(null);
}
}
return $this;
}
public function getView(): ?int
{
return $this->view;
}
public function setView(?int $view): self
{
$this->view = $view;
return $this;
}
/**
* @return Collection|TData[]
*/
public function getTData(): Collection
{
return $this->tData;
}
public function addTData(TData $tData): self
{
if (!$this->tData->contains($tData)) {
$this->tData[] = $tData;
$tData->setPub($this);
}
return $this;
}
public function removeTData(TData $tData): self
{
if ($this->tData->removeElement($tData)) {
// set the owning side to null (unless already changed)
if ($tData->getPub() === $this) {
$tData->setPub(null);
}
}
return $this;
}
public function getTGrafik(): ?TGrafik
{
return $this->tGrafik;
}
public function setTGrafik(?TGrafik $tGrafik): self
{
// unset the owning side of the relation if necessary
if ($tGrafik === null && $this->tGrafik !== null) {
$this->tGrafik->setPub(null);
}
// set the owning side of the relation if necessary
if ($tGrafik !== null && $tGrafik->getPub() !== $this) {
$tGrafik->setPub($this);
}
$this->tGrafik = $tGrafik;
return $this;
}
public function getReffId(): ?int
{
return $this->reff_id;
}
public function setReffId(?int $reff_id): self
{
$this->reff_id = $reff_id;
return $this;
}
public function getTipe(): ?int
{
return $this->tipe;
}
public function setTipe(?int $tipe): self
{
$this->tipe = $tipe;
return $this;
}
/**
* @return Collection<int, TFile>
*/
public function getTFiles(): Collection
{
return $this->tFiles;
}
public function addTFile(TFile $tFile): self
{
if (!$this->tFiles->contains($tFile)) {
$this->tFiles[] = $tFile;
$tFile->setPub($this);
}
return $this;
}
public function removeTFile(TFile $tFile): self
{
if ($this->tFiles->removeElement($tFile)) {
// set the owning side to null (unless already changed)
if ($tFile->getPub() === $this) {
$tFile->setPub(null);
}
}
return $this;
}
public function getJenis(): ?int
{
return $this->jenis;
}
public function setJenis(?int $jenis): self
{
$this->jenis = $jenis;
return $this;
}
public function getJumlahDownload(): ?int
{
return $this->jumlah_download;
}
public function setJumlahDownload(?int $jumlah_download): self
{
$this->jumlah_download = $jumlah_download;
return $this;
}
}