ApiAppAuthentication
in package
uses
IdentifiableTrait
Log when a member has authenticated for an external app.
Tags
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
getApiApp()
public
getApiApp() : ApiApp
Return values
ApiAppgetId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetTime()
public
getTime() : DateTime
Return values
DateTimegetUser()
public
getUser() : User
Return values
UsersetApiApp()
public
setApiApp(ApiApp $apiApp) : void
Parameters
- $apiApp : ApiApp
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
setTime()
public
setTime(DateTime $time) : void
Parameters
- $time : DateTime
setUser()
public
setUser(User $user) : void
Parameters
- $user : User
toGdprArray()
public
toGdprArray() : ApiAppAuthenticationGdprArrayType