Documentation

ApiAppAuthentication
in package
uses IdentifiableTrait

Log when a member has authenticated for an external app.

Tags
psalm-type

ApiAppAuthenticationGdprArrayType = array{ id: int, app_id: string, time: string, }

Attributes
#[Entity]

Table of Contents

Properties

$apiApp  : ApiApp
The application that got the authentication.
$id  : int|null
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
$time  : DateTime
Time of authentication.
$user  : User
The user who was authenticated.

Methods

getApiApp()  : ApiApp
getId()  : int|null
Get the identifier of the object.
getTime()  : DateTime
getUser()  : User
setApiApp()  : void
setId()  : void
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
setTime()  : void
setUser()  : void
toGdprArray()  : ApiAppAuthenticationGdprArrayType

Properties

$apiApp

The application that got the authentication.

protected ApiApp $apiApp
Attributes
#[JoinColumn]
$name: 'app_id'
$referencedColumnName: 'id'
$nullable: false
#[ManyToOne]
$targetEntity: \User\Model\ApiApp::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]

$time

Time of authentication.

protected DateTime $time
Attributes
#[Column]
$type: 'datetime'

$user

The user who was authenticated.

protected User $user
Attributes
#[JoinColumn]
$name: 'user_id'
$referencedColumnName: 'lidnr'
$nullable: false
#[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

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

toGdprArray()

public toGdprArray() : ApiAppAuthenticationGdprArrayType
Return values
ApiAppAuthenticationGdprArrayType

        
On this page

Search results