for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Uxmp\Core\Api\Lib;
use JsonSerializable;
use Uxmp\Core\Orm\Model\UserInterface;
final class UserListItem implements JsonSerializable
{
public function __construct(
private readonly UserInterface $user
) {
}
public function jsonSerialize(): mixed
return [
'id' => $this->user->getId(),
'name' => $this->user->getName(),
'language' => $this->user->getLanguage(),
];