feat (db): add brilo remote entites

This commit is contained in:
Ondrej Vlach 2024-07-29 13:42:54 +02:00
parent 6cd3e95e18
commit e929853bb2
No known key found for this signature in database
GPG Key ID: 7F141CDACEDEE2DE
6 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Brilo\Comments;
readonly class Comment
{
public function __construct(
public int $id,
public int $postId,
public string $name,
public string $email,
public string $body,
) {
}
}

View File

@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Brilo\Posts;
readonly class Post
{
public function __construct(
public int $id,
public int $userId,
public string $title,
public string $body,
) {
}
}

View File

@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Brilo\Users;
readonly class Address
{
public function __construct(
public string $street,
public string $suite,
public string $city,
public string $zipcode,
public AddressGeo $geo,
) {
}
}

View File

@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Brilo\Users;
readonly class AddressGeo
{
public function __construct(
public float $lat,
public float $lng,
) {
}
}

View File

@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Brilo\Users;
readonly class Company
{
public function __construct(
public string $name,
public string $catchPhrase,
public string $bs,
) {
}
}

View File

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace App\Entity\Remote\Brilo\Users;
readonly class User
{
public function __construct(
public int $id,
public string $name,
public string $username,
public string $email,
public string $phone,
public string $website,
public Address $address,
public Company $company,
) {
}
}