Added clientOutput partition field
parent
a182291936
commit
a256e6c92c
|
@ -48,6 +48,9 @@ final class ClientOutput extends AbstractOutput
|
||||||
#[ApiProperty(readableLink: true )]
|
#[ApiProperty(readableLink: true )]
|
||||||
public ?HardwareProfileOutput $hardwareProfile = null;
|
public ?HardwareProfileOutput $hardwareProfile = null;
|
||||||
|
|
||||||
|
#[Groups(['client:read'])]
|
||||||
|
public ?array $position = ['x' => 0, 'y' => 0];
|
||||||
|
|
||||||
#[Groups(['client:read'])]
|
#[Groups(['client:read'])]
|
||||||
public \DateTime $createdAt;
|
public \DateTime $createdAt;
|
||||||
|
|
||||||
|
@ -74,8 +77,8 @@ final class ClientOutput extends AbstractOutput
|
||||||
)->toArray();
|
)->toArray();
|
||||||
|
|
||||||
$this->menu = $client->getMenu() ? new MenuOutput($client->getMenu()) : null;
|
$this->menu = $client->getMenu() ? new MenuOutput($client->getMenu()) : null;
|
||||||
|
$this->position = $client->getPosition();
|
||||||
$this->hardwareProfile = $client->getHardwareProfile() ? new HardwareProfileOutput($client->getHardwareProfile()) : null;
|
$this->hardwareProfile = $client->getHardwareProfile() ? new HardwareProfileOutput($client->getHardwareProfile()) : null;
|
||||||
|
|
||||||
$this->createdAt = $client->getCreatedAt();
|
$this->createdAt = $client->getCreatedAt();
|
||||||
$this->createdBy = $client->getCreatedBy();
|
$this->createdBy = $client->getCreatedBy();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue