Documentation

LoginAttempt
in package
uses IdentifiableTrait

A failed login attempt.

Tags
psalm-type

LoginAttemptGdprArrayType = array{ id: int, time: string, ip: string, }

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

getId()

Get the identifier of the object.

public getId() : int|null
Tags
psalm-ignore-nullable-return
Return values
int|null

getTime()

public getTime() : DateTime
Return values
DateTime

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

toGdprArray()

public toGdprArray() : LoginAttemptGdprArrayType
Return values
LoginAttemptGdprArrayType

        
On this page

Search results