<?php
// src/Entity/FileSend.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
/**
* @ORM\Entity(repositoryClass="App\Repository\FileSendRepository")
* @ORM\Table(name="69pixl_file_send")
* @ORM\HasLifecycleCallbacks()
*/
class FileSend
{
/**
* @ORM\PrePersist
*/
public function prePersist()
{
$this->dateCreated = new \DateTime();
}
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
public function getId(): ?int
{
return $this->id;
}
/**
* @var datetime
* @ORM\Column(name="date_created", type="datetime", nullable=true)
*/
protected $dateCreated;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $type;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $extension;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $weigth;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $fileName;
/**
* @var membership[]
* @ORM\ManyToOne(targetEntity="App\Entity\Membership", inversedBy="FileSends")
*/
protected $membership;
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getFileName(): ?string
{
return $this->fileName;
}
public function setFileName(?string $fileName): self
{
$this->fileName = $fileName;
return $this;
}
public function getMembership(): ?Membership
{
return $this->membership;
}
public function setMembership(?Membership $membership): self
{
$this->membership = $membership;
return $this;
}
public function getExtension(): ?string
{
return $this->extension;
}
public function setExtension(?string $extension): self
{
$this->extension = $extension;
return $this;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->dateCreated;
}
public function setDateCreated(?\DateTimeInterface $dateCreated): self
{
$this->dateCreated = $dateCreated;
return $this;
}
public function getWeigth(): ?string
{
return $this->weigth;
}
public function setWeigth(?string $weigth): self
{
$this->weigth = $weigth;
return $this;
}
}