src/Entity/Extranet/DashboardLink.php line 26

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Extranet;
  3. use App\Annotation\SiteAware;
  4. use App\Entity\AbstractBase;
  5. use App\Entity\Interfaces\PublishedInterface;
  6. use App\Entity\Interfaces\SiteInterface;
  7. use App\Entity\Traits\NameTrait;
  8. use App\Entity\Traits\PositionTrait;
  9. use App\Entity\Traits\PublishedTrait;
  10. use App\Entity\Traits\SiteTrait;
  11. use App\Repository\Extranet\DashboardLinkRepository;
  12. use Doctrine\ORM\Mapping as ORM;
  13. use Gedmo\Mapping\Annotation as Gedmo;
  14. /**
  15.  * @ORM\Table(name="vulco_dashboard_link", indexes={@ORM\Index(name="dashboard_link_site_idx", columns={"site"})})
  16.  *
  17.  * @ORM\Entity(repositoryClass=DashboardLinkRepository::class)
  18.  *
  19.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  20.  *
  21.  * @SiteAware(siteFieldName="site")
  22.  */
  23. class DashboardLink extends AbstractBase implements SiteInterfacePublishedInterface
  24. {
  25.     use NameTrait;
  26.     use PositionTrait;
  27.     use PublishedTrait;
  28.     use SiteTrait;
  29.     /**
  30.      * @ORM\Column(type="string", length=200, nullable=false)
  31.      */
  32.     private string $name;
  33.     /**
  34.      * @ORM\Column(type="integer", nullable=false)
  35.      */
  36.     private int $position 0;
  37.     /**
  38.      * @ORM\Column(type="text", length=10000, nullable=false)
  39.      */
  40.     private string $url;
  41.     /**
  42.      * @ORM\Column(type="string", length=64, nullable=true)
  43.      */
  44.     private ?string $iconCode;
  45.     public function __construct()
  46.     {
  47.     }
  48.     public function getUrl(): string
  49.     {
  50.         return $this->url;
  51.     }
  52.     public function setUrl(string $url): self
  53.     {
  54.         $this->url $url;
  55.         return $this;
  56.     }
  57.     public function getIconCode(): ?string
  58.     {
  59.         return $this->iconCode;
  60.     }
  61.     public function setIconCode(?string $iconCode): self
  62.     {
  63.         $this->iconCode $iconCode;
  64.         return $this;
  65.     }
  66. }