feat (db): add brilo remote entites
This commit is contained in:
parent
6cd3e95e18
commit
e929853bb2
17
src/Entity/Remote/Brilo/Comments/Comment.php
Normal file
17
src/Entity/Remote/Brilo/Comments/Comment.php
Normal 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,
|
||||
) {
|
||||
}
|
||||
}
|
16
src/Entity/Remote/Brilo/Posts/Post.php
Normal file
16
src/Entity/Remote/Brilo/Posts/Post.php
Normal 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,
|
||||
) {
|
||||
}
|
||||
}
|
17
src/Entity/Remote/Brilo/Users/Address.php
Normal file
17
src/Entity/Remote/Brilo/Users/Address.php
Normal 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,
|
||||
) {
|
||||
}
|
||||
}
|
14
src/Entity/Remote/Brilo/Users/AddressGeo.php
Normal file
14
src/Entity/Remote/Brilo/Users/AddressGeo.php
Normal 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,
|
||||
) {
|
||||
}
|
||||
}
|
15
src/Entity/Remote/Brilo/Users/Company.php
Normal file
15
src/Entity/Remote/Brilo/Users/Company.php
Normal 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,
|
||||
) {
|
||||
}
|
||||
}
|
20
src/Entity/Remote/Brilo/Users/User.php
Normal file
20
src/Entity/Remote/Brilo/Users/User.php
Normal 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,
|
||||
) {
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user