<?php
// src//App/Entity/Clients.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use App\Entity\User as User;
/**
* Clients
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="App\Repository\ClientsRepository")
* @ORM\Entity(repositoryClass="Gedmo\Sortable\Entity\Repository\SortableRepository")
*/
class Clients
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="logoFilename", type="string", length=255, nullable=true)
*/
private $logoFilename;
/**
* @var string
*
* @ORM\Column(name="testamonial", type="text", nullable=true)
*/
private $testamonial;
/**
* @var string
*
* @ORM\Column(name="refereeName", type="string", length=255, nullable=true)
*/
private $refereeName;
/**
* @var string
*
* @ORM\Column(name="refereePosition", type="string", length=255, nullable=true)
*/
private $refereePosition;
/**
* @var string
* @Gedmo\Slug(fields={"name"}, updatable=false)
* @ORM\Column(name="slug", type="string", length=255, unique=true)
*/
private $slug;
/**
* @var boolean
*
* @ORM\Column(name="publish", type="boolean", nullable=true)
*/
private $publish = false;
/**
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
*/
private $created;
/**
* @Gedmo\Timestampable(on="update")
* @ORM\Column(type="datetime")
*/
private $updated;
/**
* @var User $createdBy
*
* @Gedmo\Blameable(on="create")
* @ORM\ManyToOne(targetEntity="User")
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
*/
private $createdBy;
/**
* @var User $updatedBy
*
* @Gedmo\Blameable(on="update")
* @ORM\ManyToOne(targetEntity="User")
* @ORM\JoinColumn(name="updated_by", referencedColumnName="id")
*/
private $updatedBy;
/**
* @Gedmo\SortablePosition
* @ORM\Column(name="position", type="integer")
*/
private $position;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
* @return Clients
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set logoFilename
*
* @param string $logoFilename
* @return Clients
*/
public function setLogoFilename($logoFilename)
{
$this->logoFilename = $logoFilename;
return $this;
}
/**
* Get logoFilename
*
* @return string
*/
public function getLogoFilename()
{
return $this->logoFilename;
}
/**
* Set testamonial
*
* @param string $testamonial
* @return Clients
*/
public function setTestamonial($testamonial)
{
$this->testamonial = $testamonial;
return $this;
}
/**
* Get testamonial
*
* @return string
*/
public function getTestamonial()
{
return $this->testamonial;
}
/**
* Set refereeName
*
* @param string $refereeName
* @return Clients
*/
public function setRefereeName($refereeName)
{
$this->refereeName = $refereeName;
return $this;
}
/**
* Get refereeName
*
* @return string
*/
public function getRefereeName()
{
return $this->refereeName;
}
/**
* Set refereePosition
*
* @param string $refereePosition
* @return Clients
*/
public function setRefereePosition($refereePosition)
{
$this->refereePosition = $refereePosition;
return $this;
}
/**
* Get refereePosition
*
* @return string
*/
public function getRefereePosition()
{
return $this->refereePosition;
}
public function setSlug($slug)
{
$this->slug = $slug;
}
/**
* Get slug
*
* @return string
*/
public function getSlug()
{
return $this->slug;
}
/**
* Set publish
*
* @param boolean $publish
* @return Clients
*/
public function setPublish($publish)
{
$this->publish = $publish;
return $this;
}
/**
* Get publish
*
* @return boolean
*/
public function getPublish()
{
return $this->publish;
}
/**
* Set created
*
* @param \DateTime $created
* @return Clients
*/
public function setCreated($created)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return \DateTime
*/
public function getCreated()
{
return $this->created;
}
/**
* Set updated
*
* @param \DateTime $updated
* @return Clients
*/
public function setUpdated($updated)
{
$this->updated = $updated;
return $this;
}
/**
* Get updated
*
* @return \DateTime
*/
public function getUpdated()
{
return $this->updated;
}
/**
* Get createdBy
*
* @return \App\Entity\User
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* Get updatedBy
*
* @return \App\Entity\User
*/
public function getUpdatedBy()
{
return $this->updatedBy;
}
/**
* Set createdBy
*
* @param \App\Entity\User $createdBy
*
* @return Clients
*/
public function setCreatedBy(\App\Entity\User $createdBy = null)
{
$this->createdBy = $createdBy;
return $this;
}
/**
* Set updatedBy
*
* @param \App\Entity\User $updatedBy
*
* @return Clients
*/
public function setUpdatedBy(\App\Entity\User $updatedBy = null)
{
$this->updatedBy = $updatedBy;
return $this;
}
/**
* Set position
*
* @param integer $position
* @return Clients
*/
public function setPosition($position)
{
$this->position = $position;
return $this;
}
/**
* Get position
*
* @return integer
*/
public function getPosition()
{
return $this->position;
}
}