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/Testimonial.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Traits\ActiveTrait;
  5. use App\Entity\Traits\DeleteTrait;
  6. use App\Entity\Traits\SubTitleTrait;
  7. use App\Entity\Traits\SortOrderTrait;
  8. use App\Entity\Traits\TranslateTrait;
  9. use App\Entity\Traits\FileUploadTrait;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use App\Entity\Traits\ImageUploadTrait;
  12. use App\Entity\Interfaces\DefaultEntity;
  13. use App\Repository\TestimonialRepository;
  14. use App\Entity\Traits\TitleAndContentTrait;
  15. use Gedmo\Timestampable\Traits\TimestampableEntity;
  16. /**
  17.  * @Gedmo\Loggable
  18.  */
  19. #[ORM\Entity(repositoryClassTestimonialRepository::class)]
  20. #[ORM\HasLifecycleCallbacks]
  21. #[ORM\Table(name'testimonial')]
  22. class Testimonial implements DefaultEntity
  23. {
  24.     use TitleAndContentTrait// DefaultEntity & DefaultLinkedEntity
  25.     use ActiveTrait// DefaultEntity & DefaultLinkedEntity
  26.     use DeleteTrait// DefaultEntity & DefaultLinkedEntity
  27.     use TimestampableEntity// DefaultEntity & DefaultLinkedEntity
  28.     use TranslateTrait// DefaultEntity & DefaultLinkedEntity
  29.     use SubTitleTrait// Optional
  30.     use ImageUploadTrait// Optional
  31.     use FileUploadTrait// Optional
  32.     use SortOrderTrait// Optional
  33.     #[ORM\Column(name'id'type'integer')]
  34.     #[ORM\Id]
  35.     #[ORM\GeneratedValue(strategy'AUTO')]
  36.     private readonly int $id;
  37.     #[ORM\Column(type'string'length255)]
  38.     private $author;
  39.     #[ORM\Column(type'string'length255nullabletrue)]
  40.     private $company;
  41.     #[ORM\Column(type'boolean'options: ['default' => false])]
  42.     private $featured;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getAuthor(): ?string
  48.     {
  49.         return $this->author;
  50.     }
  51.     public function setAuthor(string $author): self
  52.     {
  53.         $this->author $author;
  54.         return $this;
  55.     }
  56.     public function getCompany(): ?string
  57.     {
  58.         return $this->company;
  59.     }
  60.     public function setCompany(?string $company): self
  61.     {
  62.         $this->company $company;
  63.         return $this;
  64.     }
  65.     public function getFeatured(): ?bool
  66.     {
  67.         return $this->featured;
  68.     }
  69.     public function setFeatured(bool $featured): self
  70.     {
  71.         $this->featured $featured;
  72.         return $this;
  73.     }
  74. }