<?php
namespace App\Domain\Entity\View;
use ApiPlatform\Metadata\ApiProperty;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\GetCollection;
use DateTime;
#[ApiResource(
operations: [
new Get(),
new GetCollection(),
],
normalizationContext: ['groups' => ['ownership_request_view_read']],
denormalizationContext: ['groups' => ['ownership_request_view_write']]
)]
class OwnershipRequestView
{
public function __construct(
#[ApiProperty(identifier: true)]
public ?int $id,
public ?string $uuid,
public ?string $fullName,
public ?string $email,
public ?int $personId,
public ?string $personUuid,
public ?int $pointOfInterestId,
public ?string $pointOfInterestUuid,
public ?string $pointOfInterestName,
public string | null $pointOfInterestType,
public string | null $pointOfInterestOfferType,
public DateTime | null $pointOfInterestOfferEndAt,
public ?string $telephone
) {
}
}