src/Entity/ProjectResource.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectResourceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProjectResourceRepository::class)
  7.  */
  8. class ProjectResource
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Project::class, inversedBy="projectResources")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $project;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=ResourceType::class)
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $resource_type;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $title;
  30.     /**
  31.      * @ORM\Column(type="text", nullable=true)
  32.      */
  33.     private $description;
  34.     /**
  35.      * @ORM\Column(type="string", length=255)
  36.      */
  37.     private $file;
  38.     /**
  39.      * @ORM\Column(type="integer")
  40.      */
  41.     private $status;
  42.     /**
  43.      * @ORM\Column(type="boolean", nullable=true)
  44.      */
  45.     private $is_public;
  46.     /**
  47.      * @ORM\Column(type="boolean", nullable=true)
  48.      */
  49.     private $is_pinned;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=User::class)
  52.      * @ORM\JoinColumn(nullable=false)
  53.      */
  54.     private $uploaded_by;
  55.     /**
  56.      * @ORM\Column(type="datetime")
  57.      */
  58.     private $uploaded_at;
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getProject(): ?Project
  64.     {
  65.         return $this->project;
  66.     }
  67.     public function setProject(?Project $project): self
  68.     {
  69.         $this->project $project;
  70.         return $this;
  71.     }
  72.     public function getResourceType(): ?ResourceType
  73.     {
  74.         return $this->resource_type;
  75.     }
  76.     public function setResourceType(?ResourceType $resource_type): self
  77.     {
  78.         $this->resource_type $resource_type;
  79.         return $this;
  80.     }
  81.     public function getTitle(): ?string
  82.     {
  83.         return $this->title;
  84.     }
  85.     public function setTitle(string $title): self
  86.     {
  87.         $this->title $title;
  88.         return $this;
  89.     }
  90.     public function getDescription(): ?string
  91.     {
  92.         return $this->description;
  93.     }
  94.     public function setDescription(?string $description): self
  95.     {
  96.         $this->description $description;
  97.         return $this;
  98.     }
  99.     public function getFile(): ?string
  100.     {
  101.         return $this->file;
  102.     }
  103.     public function setFile(string $file): self
  104.     {
  105.         $this->file $file;
  106.         return $this;
  107.     }
  108.     public function getStatus(): ?int
  109.     {
  110.         return $this->status;
  111.     }
  112.     public function setStatus(int $status): self
  113.     {
  114.         $this->status $status;
  115.         return $this;
  116.     }
  117.     public function getIsPublic(): ?bool
  118.     {
  119.         return $this->is_public;
  120.     }
  121.     public function setIsPublic(?bool $is_public): self
  122.     {
  123.         $this->is_public $is_public;
  124.         return $this;
  125.     }
  126.     public function getIsPinned(): ?bool
  127.     {
  128.         return $this->is_pinned;
  129.     }
  130.     public function setIsPinned(?bool $is_pinned): self
  131.     {
  132.         $this->is_pinned $is_pinned;
  133.         return $this;
  134.     }
  135.     public function getUploadedBy(): ?User
  136.     {
  137.         return $this->uploaded_by;
  138.     }
  139.     public function setUploadedBy(?User $uploaded_by): self
  140.     {
  141.         $this->uploaded_by $uploaded_by;
  142.         return $this;
  143.     }
  144.     public function getUploadedAt(): ?\DateTimeInterface
  145.     {
  146.         return $this->uploaded_at;
  147.     }
  148.     public function setUploadedAt(\DateTimeInterface $uploaded_at): self
  149.     {
  150.         $this->uploaded_at $uploaded_at;
  151.         return $this;
  152.     }
  153. }