Documentation

User

Tags
ORM\Entity
ORM\Table

(name="user")

Table of Contents

$avatar  : string
$created  : DateTime
$email  : string
$id  : int
$name  : string
$password  : string
$surname  : string
$updated  : DateTime
$username  : string
__construct()  : mixed
getAvatar()  : string
Returns user avatar
getCreated()  : DateTime
Returns user created date
getEmail()  : string
Returns user e-mail
getId()  : int
Return user ID
getName()  : string
Returns user name
getPassword()  : string
Returns user password
getSurname()  : string
Returns user surname
getUpdated()  : DateTime
Returns user updated date
getUsername()  : string
Returns user username
setAvatar()  : self
Sets user avatar
setCreated()  : self
Sets user created date
setEmail()  : self
Sets user e-mail
setName()  : self
Sets user name
setPassword()  : self
Sets user password
setSurname()  : self
Sets user surname
setUpdated()  : self
Sets user updated date
setUsername()  : self
Sets user username

Properties

$avatar

protected string $avatar
Tags
ORM\Column

(type="string", length=1024)

$created

protected DateTime $created
Tags
ORM\Column

(type="datetime", nullable=false)

$email

protected string $email
Tags
ORM\Column

(type="string", length=191, unique=true)

$id

protected int $id
Tags
ORM\Id
ORM\GeneratedValue
ORM\Column

(type="integer")

$name

protected string $name
Tags
ORM\Column

(type="string", length=255)

$password

protected string $password
Tags
ORM\Column

(type="string", length=255)

$surname

protected string $surname
Tags
ORM\Column

(type="string", length=255)

$updated

protected DateTime $updated
Tags
ORM\Column

(type="datetime", nullable=false)

ORM\Version

$username

protected string $username
Tags
ORM\Column

(type="string", length=191, unique=true)

Methods

__construct()

public __construct([string $username = "" ][, string $password = "" ][, string $email = "" ][, string $name = "" ][, string $surname = "" ][, string $avatar = "" ]) : mixed
Parameters
$username : string = ""
$password : string = ""
$email : string = ""
$name : string = ""
$surname : string = ""
$avatar : string = ""
Return values
mixed

getAvatar()

Returns user avatar

public getAvatar() : string
Return values
string

getCreated()

Returns user created date

public getCreated() : DateTime
Return values
DateTime

getEmail()

Returns user e-mail

public getEmail() : string
Return values
string

getId()

Return user ID

public getId() : int
Return values
int

getName()

Returns user name

public getName() : string
Return values
string

getPassword()

Returns user password

public getPassword() : string
Return values
string

getSurname()

Returns user surname

public getSurname() : string
Return values
string

getUpdated()

Returns user updated date

public getUpdated() : DateTime
Return values
DateTime

getUsername()

Returns user username

public getUsername() : string
Return values
string

setAvatar()

Sets user avatar

public setAvatar(string $avatar) : self
Parameters
$avatar : string
Return values
self

setCreated()

Sets user created date

public setCreated(DateTime $created) : self
Parameters
$created : DateTime
Return values
self

setEmail()

Sets user e-mail

public setEmail(string $email) : self
Parameters
$email : string
Return values
self

setName()

Sets user name

public setName(string $name) : self
Parameters
$name : string
Return values
self

setPassword()

Sets user password

public setPassword(string $password) : self
Parameters
$password : string
Return values
self

setSurname()

Sets user surname

public setSurname(string $surname) : self
Parameters
$surname : string
Return values
self

setUpdated()

Sets user updated date

public setUpdated(DateTime $updated) : self
Parameters
$updated : DateTime
Return values
self

setUsername()

Sets user username

public setUsername(string $username) : self
Parameters
$username : string
Return values
self

Search results