2017-01-14 17:36:56 +01:00
|
|
|
<?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;
|
|
|
|
|
2017-12-03 20:30:44 +02:00
|
|
|
use Swagger\Annotations as SWG;
|
|
|
|
|
2017-01-14 17:36:56 +01:00
|
|
|
/**
|
|
|
|
* @author Guilhem N. <egetick@gmail.com>
|
|
|
|
*/
|
|
|
|
class User
|
|
|
|
{
|
2017-12-03 20:30:44 +02:00
|
|
|
/**
|
2017-12-17 10:44:07 +01:00
|
|
|
* @var int
|
2017-12-03 20:30:44 +02:00
|
|
|
*
|
2017-12-17 17:58:41 +02:00
|
|
|
* @SWG\Property(description = "User id", required = true, readOnly = true, title = "userid", example=1, default = null)
|
2017-12-03 20:30:44 +02:00
|
|
|
*/
|
|
|
|
private $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @SWG\Property(readOnly = false)
|
|
|
|
*/
|
|
|
|
private $email;
|
|
|
|
|
2017-12-15 17:39:18 +01:00
|
|
|
/**
|
|
|
|
* @var string[]
|
|
|
|
*
|
|
|
|
* @SWG\Property(
|
|
|
|
* description = "User roles",
|
|
|
|
* required = true,
|
|
|
|
* title = "roles",
|
2017-12-17 17:58:41 +02:00
|
|
|
* example="[""ADMIN"",""SUPERUSER""]",
|
|
|
|
* default = {"user"},
|
2017-12-15 17:39:18 +01:00
|
|
|
* )
|
|
|
|
*/
|
|
|
|
private $roles;
|
|
|
|
|
2017-12-03 20:30:44 +02:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*
|
|
|
|
* @SWG\Property(type = "string")
|
|
|
|
*/
|
|
|
|
private $friendsNumber;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var float
|
2017-12-18 21:07:44 +01:00
|
|
|
* @SWG\Property(default = 0.0)
|
2017-12-03 20:30:44 +02:00
|
|
|
*/
|
|
|
|
private $money;
|
|
|
|
|
2017-06-25 15:40:07 +02:00
|
|
|
/**
|
|
|
|
* @var \DateTime
|
|
|
|
*/
|
|
|
|
private $createdAt;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var User[]
|
|
|
|
*/
|
|
|
|
private $users;
|
|
|
|
|
2017-12-17 17:58:41 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
|
|
|
* @SWG\Property(enum = {"disabled", "enabled"})
|
|
|
|
*/
|
|
|
|
private $status;
|
|
|
|
|
2017-12-03 20:30:44 +02:00
|
|
|
/**
|
|
|
|
* @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;
|
|
|
|
}
|
|
|
|
|
2017-12-15 17:39:18 +01:00
|
|
|
/**
|
|
|
|
* @param string[] $roles
|
|
|
|
*/
|
|
|
|
public function setRoles(array $roles)
|
|
|
|
{
|
|
|
|
$this->roles = $roles;
|
|
|
|
}
|
|
|
|
|
2017-12-03 20:30:44 +02:00
|
|
|
/**
|
|
|
|
* @param int $friendsNumber
|
|
|
|
*/
|
|
|
|
public function setFriendsNumber(int $friendsNumber)
|
|
|
|
{
|
|
|
|
$this->friendsNumber = $friendsNumber;
|
|
|
|
}
|
|
|
|
|
2017-06-25 15:40:07 +02:00
|
|
|
public function setCreatedAt(\DateTime $createAt)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setUsers(array $users)
|
2017-01-14 17:36:56 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setDummy(Dummy $dummy)
|
|
|
|
{
|
|
|
|
}
|
2017-12-17 17:58:41 +02:00
|
|
|
|
|
|
|
public function setStatus(string $status)
|
|
|
|
{
|
|
|
|
}
|
2017-01-14 17:36:56 +01:00
|
|
|
}
|