<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* Image
*
* @ORM\Table(name="image")
* @ORM\Entity(repositoryClass="App\Repository\ImageRepository")
*/
class Image
{
use \Gedmo\Timestampable\Traits\TimestampableEntity;
use BlameableEntity;
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* Relative Path from s3
*
* @ORM\Column(name="s3_path", type="string", length=255)
*/
private $s3Path;
/**
* Title
* @ORM\Column(name="title", type="string", length=100)
*/
private $title;
/**
* Description
* @ORM\Column(name="description", type="text", nullable=true)
*/
private $description;
/**
* Copyright
* @ORM\Column(name="copyright", type="text", nullable=true)
*/
private $copyright;
/**
* @return mixed
*/
public function getCopyright()
{
return $this->copyright;
}
/**
* @param mixed $copyright
*/
public function setCopyright($copyright)
{
$this->copyright = $copyright;
}
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Event", inversedBy="images")
* @ORM\JoinColumn(name="event_id", referencedColumnName="id")
*/
private $event;
/**
* @ORM\Column(name="position", type="integer", nullable=true)
*/
private $position;
/**
* @ORM\Column(name="disabled", type="boolean", nullable=false, options={"default":"0"})
*/
private $disabled;
/**
* @return mixed
*/
public function isDisabled()
{
return $this->disabled;
}
/**
* @param mixed $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
public function __construct()
{
}
public function __toString()
{
return $this->getTitle();
}
/**
* @return mixed
*/
public function getTitle()
{
return $this->title;
}
/**
* @param mixed $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Get s3Path
*
* @return string
*/
public function getS3Path()
{
return $this->s3Path;
}
/**
* Set s3Path
*
* @param string $s3Path
*
* @return Document
*/
public function setS3Path($s3Path)
{
$this->s3Path = $s3Path;
return $this;
}
/**
* Get event
*
* @return Event
*/
public function getEvent()
{
return $this->event;
}
/**
* Set event
*
* @param Event $event
*
* @return Document
*/
public function setEvent(Event $event = null)
{
$this->event = $event;
return $this;
}
/**
* Set rfp
* @param RequestForProposal $rfp
* @return Document
*/
public function setRfp(RequestForProposal $rfp = null)
{
$this->rfp = $rfp;
return $this;
}
public function toString(): string
{
return "{id=" . $this->id . "}";
}
/**
* Add userRight
*
* @param DocumentUserRights $userRight
*
* @return Document
*/
public function addUserRight(DocumentUserRights $userRight)
{
$userRight->setDocument($this);
$this->userRights[] = $userRight;
return $this;
}
/**
* Get groupRights
*
* @return Collection
*/
public function getCompanyRights()
{
return $this->companyRights;
}
/**
* @return mixed
*/
public function getDescription()
{
return $this->description;
}
/**
* @param mixed $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return mixed
*/
public function getPosition()
{
return $this->position;
}
/**
* @param integer $position
*/
public function setPosition($position): void
{
$this->position = $position;
}
}