mirror of
https://github.com/simon987/Much-Assembly-Required-Frontend.git
synced 2025-04-10 14:26:44 +00:00
26 lines
371 B
PHP
26 lines
371 B
PHP
<?php
|
|
|
|
class User implements JsonSerializable
|
|
{
|
|
public $username;
|
|
public $status;
|
|
|
|
/**
|
|
* User constructor.
|
|
* @param $username
|
|
*/
|
|
public function __construct($username)
|
|
{
|
|
$this->username = $username;
|
|
}
|
|
|
|
|
|
public function jsonSerialize()
|
|
{
|
|
return [
|
|
"username" => $this->username
|
|
];
|
|
}
|
|
|
|
|
|
} |