src/Domain/Entity/AdLog.php line 10

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Domain\Entity;
  4. use ApiPlatform\Metadata\ApiProperty;
  5. use Gedmo\Timestampable\Traits\Timestampable;
  6. class AdLog
  7. {
  8.     use Timestampable;
  9.     #[ApiProperty(identifiertrue)]
  10.     public ?int $id null;
  11.     public function __construct(
  12.         public string $ip,
  13.         public string $userAgent,
  14.         public ?Person $person null,
  15.         public ?WebAd $webAd null,
  16.         public ?MobileAd $mobileAd null,
  17.     ) {
  18.     }
  19. }