mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-03 16:19:26 +03:00
134 lines
2.2 KiB
PHP
134 lines
2.2 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the NelmioApiDocBundle package.
|
|
*
|
|
* (c) Nelmio
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity;
|
|
|
|
use Swagger\Annotations as SWG;
|
|
|
|
/**
|
|
* @author Guilhem N. <egetick@gmail.com>
|
|
*/
|
|
class User
|
|
{
|
|
/**
|
|
* @var int
|
|
*
|
|
* @SWG\Property(description = "User id", required = true, readOnly = true, title = "userid", example=1, default = null)
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @SWG\Property(readOnly = false)
|
|
*/
|
|
private $email;
|
|
|
|
/**
|
|
* @var string[]
|
|
*
|
|
* @SWG\Property(
|
|
* description = "User roles",
|
|
* required = true,
|
|
* title = "roles",
|
|
* example="[""ADMIN"",""SUPERUSER""]",
|
|
* default = {"user"},
|
|
* )
|
|
*/
|
|
private $roles;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @SWG\Property(type = "string")
|
|
*/
|
|
private $friendsNumber;
|
|
|
|
/**
|
|
* @var float
|
|
* @SWG\Property(default = 0.0)
|
|
*/
|
|
private $money;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*/
|
|
private $createdAt;
|
|
|
|
/**
|
|
* @var User[]
|
|
*/
|
|
private $users;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @SWG\Property(enum = {"disabled", "enabled"})
|
|
*/
|
|
private $status;
|
|
|
|
/**
|
|
* @param float $money
|
|
*/
|
|
public function setMoney(float $money)
|
|
{
|
|
$this->money = $money;
|
|
}
|
|
|
|
/**
|
|
* @param int $id
|
|
*/
|
|
public function setId(int $id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
/**
|
|
* @param string $email
|
|
*/
|
|
public function setEmail(string $email)
|
|
{
|
|
$this->email = $email;
|
|
}
|
|
|
|
/**
|
|
* @param string[] $roles
|
|
*/
|
|
public function setRoles(array $roles)
|
|
{
|
|
$this->roles = $roles;
|
|
}
|
|
|
|
/**
|
|
* @param int $friendsNumber
|
|
*/
|
|
public function setFriendsNumber(int $friendsNumber)
|
|
{
|
|
$this->friendsNumber = $friendsNumber;
|
|
}
|
|
|
|
public function setCreatedAt(\DateTime $createAt)
|
|
{
|
|
}
|
|
|
|
public function setUsers(array $users)
|
|
{
|
|
}
|
|
|
|
public function setDummy(Dummy $dummy)
|
|
{
|
|
}
|
|
|
|
public function setStatus(string $status)
|
|
{
|
|
}
|
|
}
|