39 lines
928 B
PHP
39 lines
928 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\BusProNet\Model;
|
|
|
|
use Symfony\Component\Serializer\Attribute\Groups;
|
|
|
|
/**
|
|
* Represents a hotel with location and contact information.
|
|
*
|
|
* This class handles hotel data including identification, location details,
|
|
* and contact information. It provides serialization groups for API responses
|
|
* in travel and booking contexts.
|
|
*/
|
|
class Hotel
|
|
{
|
|
#[Groups(['api:list', 'api:single'])]
|
|
public ?int $id = null;
|
|
|
|
#[Groups(['api:list', 'api:single'])]
|
|
public ?string $code = null;
|
|
|
|
#[Groups(['api:list', 'api:single'])]
|
|
public ?string $name = null;
|
|
|
|
#[Groups(['api:list', 'api:single'])]
|
|
public ?string $city = null;
|
|
|
|
#[Groups(['api:list', 'api:single'])]
|
|
public ?string $street = null;
|
|
|
|
#[Groups(['api:list', 'api:single'])]
|
|
public ?string $phone = null;
|
|
|
|
#[Groups(['api:list', 'api:single'])]
|
|
public ?string $country = null;
|
|
}
|