129 lines
2.2 KiB
PHP
Raw Normal View History

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;
use Swagger\Annotations as SWG;
2017-01-14 17:36:56 +01:00
/**
* @author Guilhem N. <egetick@gmail.com>
*/
class User
{
/**
2017-12-17 10:44:07 +01:00
* @var int
*
* @SWG\Property(description = "User id", required = true, readOnly = true, title = "userid", example=1, default = null)
*/
private $id;
/**
* @SWG\Property(type="string", 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
2017-12-18 21:07:44 +01:00
* @SWG\Property(default = 0.0)
*/
private $money;
2017-06-25 15:40:07 +02:00
/**
* @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;
}
public function setEmail($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;
}
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)
{
}
public function setStatus(string $status)
{
}
2017-01-14 17:36:56 +01:00
}