src/DB/Entity/Project/Special/FeaturedProgram.php
<?php

declare(strict_types=1);

namespace App\DB\Entity\Project\Special;

use App\DB\Entity\Project\Program;
use App\DB\EntityRepository\Project\Special\FeaturedRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;

#[ORM\Table(name: 'featured')]
#[ORM\Entity(repositoryClass: FeaturedRepository::class)]
class FeaturedProgram extends SpecialProgram
{
  #[ORM\Column(type: Types::STRING, nullable: true)]
  protected ?string $url = null;

  public function setImageType(string $image): FeaturedProgram
  {
    $this->imagetype = $image;

    return $this;
  }

  public function setProgram(?Program $program): FeaturedProgram
  {
    $this->program = $program;

    return $this;
  }

  public function setUrl(?string $url): FeaturedProgram
  {
    $this->url = $url;

    return $this;
  }

  public function setActive(bool $active): FeaturedProgram
  {
    $this->active = $active;

    return $this;
  }

  public function setNewFeaturedImage(File $file): void
  {
    $this->file = $file;
  }

  public function getUrl(): ?string
  {
    return $this->url;
  }
}
