<?php
namespace App\Entity\Extranet;
use App\Annotation\SiteAware;
use App\Entity\AbstractBase;
use App\Entity\Interfaces\PublishedInterface;
use App\Entity\Interfaces\SiteInterface;
use App\Entity\Traits\NameTrait;
use App\Entity\Traits\PositionTrait;
use App\Entity\Traits\PublishedTrait;
use App\Entity\Traits\SiteTrait;
use App\Repository\Extranet\DashboardLinkRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Table(name="vulco_dashboard_link", indexes={@ORM\Index(name="dashboard_link_site_idx", columns={"site"})})
*
* @ORM\Entity(repositoryClass=DashboardLinkRepository::class)
*
* @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
*
* @SiteAware(siteFieldName="site")
*/
class DashboardLink extends AbstractBase implements SiteInterface, PublishedInterface
{
use NameTrait;
use PositionTrait;
use PublishedTrait;
use SiteTrait;
/**
* @ORM\Column(type="string", length=200, nullable=false)
*/
private string $name;
/**
* @ORM\Column(type="integer", nullable=false)
*/
private int $position = 0;
/**
* @ORM\Column(type="text", length=10000, nullable=false)
*/
private string $url;
/**
* @ORM\Column(type="string", length=64, nullable=true)
*/
private ?string $iconCode;
public function __construct()
{
}
public function getUrl(): string
{
return $this->url;
}
public function setUrl(string $url): self
{
$this->url = $url;
return $this;
}
public function getIconCode(): ?string
{
return $this->iconCode;
}
public function setIconCode(?string $iconCode): self
{
$this->iconCode = $iconCode;
return $this;
}
}