Deprecated: Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/translation/Resources/functions.php on line 18

Deprecated: Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/dotenv/Dotenv.php on line 110

Deprecated: Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/GenericRuntime.php on line 89

Deprecated: Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/RuntimeInterface.php on line 26

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/Input.php on line 36

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/Accreditation.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Interfaces\DefaultEntity;
  4. use App\Entity\Traits\ActiveTrait;
  5. use App\Entity\Traits\DeleteTrait;
  6. use App\Entity\Traits\ImageUploadTrait;
  7. use App\Entity\Traits\SortOrderTrait;
  8. use App\Entity\Traits\TitleAndContentTrait;
  9. use App\Entity\Traits\TranslateTrait;
  10. use App\Repository\AccreditationRepository;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Gedmo\Mapping\Annotation as Gedmo;
  13. use Gedmo\Timestampable\Traits\TimestampableEntity;
  14. /**
  15.  * @Gedmo\Loggable
  16.  */
  17. #[ORM\Entity(repositoryClassAccreditationRepository::class)]
  18. #[ORM\HasLifecycleCallbacks]
  19. #[ORM\Table(name'accreditation')]
  20. class Accreditation implements DefaultEntity
  21. {
  22.     use TitleAndContentTrait;
  23.     use ImageUploadTrait;
  24.     use SortOrderTrait;
  25.     use ActiveTrait;
  26.     use DeleteTrait;
  27.     use TimestampableEntity;
  28.     use TranslateTrait;
  29.     #[ORM\Column(name'id'type'integer')]
  30.     #[ORM\Id]
  31.     #[ORM\GeneratedValue(strategy'AUTO')]
  32.     private readonly int $id;
  33.     #[ORM\Column(type'boolean')]
  34.     private $featured false;
  35.     #[ORM\Column(type'string'length255nullabletrue)]
  36.     private $link;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getFeatured(): ?bool
  42.     {
  43.         return $this->featured;
  44.     }
  45.     public function setFeatured(bool $featured): self
  46.     {
  47.         $this->featured $featured;
  48.         return $this;
  49.     }
  50.     public function getLink(): ?string
  51.     {
  52.         return $this->link;
  53.     }
  54.     public function setLink(?string $link): self
  55.     {
  56.         $this->link $link;
  57.         return $this;
  58.     }
  59. }