LoginAttempt
in package
uses
IdentifiableTrait
A failed login attempt.
Tags
Attributes
- #[Entity]
Table of Contents
Properties
- $companyUser : CompanyUser|null
- The user for which the login was attempted.
- $id : int|null
- The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
- $ip : string
- The ip from which the login was attempted.
- $time : DateTime
- Attempt timestamp.
- $user : User|null
- The user for which the login was attempted.
Methods
- getCompanyUser() : CompanyUser|null
- getId() : int|null
- Get the identifier of the object.
- getIp() : string
- getTime() : DateTime
- getUser() : User|null
- setCompanyUser() : void
- setId() : void
- Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
- setIp() : void
- setTime() : void
- setUser() : void
- toGdprArray() : LoginAttemptGdprArrayType
Properties
$companyUser
The user for which the login was attempted.
protected
CompanyUser|null
$companyUser
= null
Attributes
- #[JoinColumn]
- $name: 'company_id'
- $referencedColumnName: 'id'
- #[ManyToOne]
- $targetEntity: \User\Model\CompanyUser::class
$id
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
protected
int|null
$id
= null
Attributes
- #[Column]
- $type: 'integer'
- #[GeneratedValue]
- $strategy: 'IDENTITY'
- #[Id]
$ip
The ip from which the login was attempted.
protected
string
$ip
Attributes
- #[Column]
- $type: 'string'
$time
Attempt timestamp.
protected
DateTime
$time
Attributes
- #[Column]
- $type: 'datetime'
$user
The user for which the login was attempted.
protected
User|null
$user
= null
Attributes
- #[JoinColumn]
- $name: 'user_id'
- $referencedColumnName: 'lidnr'
- #[ManyToOne]
- $targetEntity: \User\Model\User::class
Methods
getCompanyUser()
public
getCompanyUser() : CompanyUser|null
Return values
CompanyUser|nullgetId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetIp()
public
getIp() : string
Return values
stringgetTime()
public
getTime() : DateTime
Return values
DateTimegetUser()
public
getUser() : User|null
Return values
User|nullsetCompanyUser()
public
setCompanyUser(CompanyUser|null $company) : void
Parameters
- $company : CompanyUser|null
setId()
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
public
setId(int|null $id) : void
Parameters
- $id : int|null
setIp()
public
setIp(string $ip) : void
Parameters
- $ip : string
setTime()
public
setTime(DateTime $time) : void
Parameters
- $time : DateTime
setUser()
public
setUser(User|null $user) : void
Parameters
- $user : User|null
toGdprArray()
public
toGdprArray() : LoginAttemptGdprArrayType