src/Entity/FileSend.php line 19

Open in your IDE?
  1. <?php
  2. // src/Entity/FileSend.php
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. use Symfony\Component\Security\Core\User\UserInterface;
  8. use Doctrine\Common\Collections\ArrayCollection;
  9. use Doctrine\Common\Collections\Collection;
  10. /**
  11.  * @ORM\Entity(repositoryClass="App\Repository\FileSendRepository")
  12.  * @ORM\Table(name="69pixl_file_send")
  13.  * @ORM\HasLifecycleCallbacks()
  14.  */
  15. class FileSend
  16. {
  17.     /**
  18.      * @ORM\PrePersist
  19.      */
  20.     public function prePersist()
  21.     {
  22.         $this->dateCreated = new \DateTime();
  23.     }
  24.     
  25.     /**
  26.      * @ORM\Id
  27.      * @ORM\Column(type="integer")
  28.      * @ORM\GeneratedValue(strategy="AUTO")
  29.      */
  30.     private $id;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     /**
  36.      * @var datetime
  37.      * @ORM\Column(name="date_created", type="datetime", nullable=true)
  38.      */
  39.     protected $dateCreated;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $type;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $extension;
  48.     /**
  49.      * @ORM\Column(type="string", length=255, nullable=true)
  50.      */
  51.     private $weigth;
  52.     /**
  53.      * @ORM\Column(type="text", nullable=true)
  54.      */
  55.     private $fileName;
  56.     /**
  57.      * @var membership[]
  58.      * @ORM\ManyToOne(targetEntity="App\Entity\Membership", inversedBy="FileSends")
  59.      */
  60.     protected $membership;
  61.     public function getType(): ?string
  62.     {
  63.         return $this->type;
  64.     }
  65.     public function setType(?string $type): self
  66.     {
  67.         $this->type $type;
  68.         return $this;
  69.     }
  70.     public function getFileName(): ?string
  71.     {
  72.         return $this->fileName;
  73.     }
  74.     public function setFileName(?string $fileName): self
  75.     {
  76.         $this->fileName $fileName;
  77.         return $this;
  78.     }
  79.     public function getMembership(): ?Membership
  80.     {
  81.         return $this->membership;
  82.     }
  83.     public function setMembership(?Membership $membership): self
  84.     {
  85.         $this->membership $membership;
  86.         return $this;
  87.     }
  88.     public function getExtension(): ?string
  89.     {
  90.         return $this->extension;
  91.     }
  92.     public function setExtension(?string $extension): self
  93.     {
  94.         $this->extension $extension;
  95.         return $this;
  96.     }
  97.     public function getDateCreated(): ?\DateTimeInterface
  98.     {
  99.         return $this->dateCreated;
  100.     }
  101.     public function setDateCreated(?\DateTimeInterface $dateCreated): self
  102.     {
  103.         $this->dateCreated $dateCreated;
  104.         return $this;
  105.     }
  106.     public function getWeigth(): ?string
  107.     {
  108.         return $this->weigth;
  109.     }
  110.     public function setWeigth(?string $weigth): self
  111.     {
  112.         $this->weigth $weigth;
  113.         return $this;
  114.     }
  115. }