src/Entity/Organisation/University/Category.php line 14
<?php
namespace App\Entity\Organisation\University;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\TrackerFields;
use App\Entity\Traits\UserCreatedInterface;
use App\Entity\Traits\UserUpdatedInterface;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'university_category')]
#[ORM\Entity(repositoryClass: 'App\Repository\Organisation\University\CategoryRepository')]
#[ORM\HasLifecycleCallbacks]
class Category implements UserCreatedInterface, UserUpdatedInterface
{
use TrackerFields;
use ActiveTrait;
/**
* @var ?int
*/
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(type: 'integer')]
private $id;
/**
* @var ?string
*/
#[ORM\Column(type: 'string', nullable: false)]
private $caption;
/**
* @var string|null
*/
#[ORM\Column(type: 'string', length: 150, nullable: true)]
private $iconClass;
/**
* @var
*
*/
#[ORM\ManyToMany(targetEntity: 'App\Entity\Organisation\University\University', mappedBy: 'universityCategories')]
private $organisations;
/**
* @var int
*/
#[ORM\Column(type: 'integer', options: ['default' => 10])]
private $weight=10;
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @param int|null $id
*/
public function setId(?int $id): void
{
$this->id = $id;
}
/**
* @return string|null
*/
public function getCaption(): ?string
{
return $this->caption;
}
/**
* @param string|null $caption
*/
public function setCaption(?string $caption): void
{
$this->caption = $caption;
}
/**
* @return int
*/
public function getWeight(): int
{
return $this->weight;
}
/**
* @param int $weight
*/
public function setWeight(int $weight): void
{
$this->weight = $weight;
}
/**
* @return string|null
*/
public function getIconClass(): ?string
{
return $this->iconClass;
}
/**
* @param string|null $iconClass
*/
public function setIconClass(?string $iconClass): void
{
$this->iconClass = $iconClass;
}
/**
* @return mixed
*/
public function getOrganisations()
{
return $this->organisations;
}
/**
* @param mixed $organisations
*/
public function setOrganisations($organisations): void
{
$this->organisations = $organisations;
}
}