mirror of
https://github.com/simon987/Much-Assembly-Required-Frontend.git
synced 2025-12-14 15:19:07 +00:00
Initial commit
This commit is contained in:
26
include/User.php
Normal file
26
include/User.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user