feat (db): add brilo remote entites
This commit is contained in:
@@ -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,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user