UserExternalLogin
extends UserExternalLogin
in package
Attributes
- #[Entity]
- #[Table]
- $name: 'cms_system_user_external_logins'
- #[TableAlias]
- 'userExternalLogin'
Table of Contents
Properties
- $externalId : string
- $type : string
- $userId : int
Methods
- __construct() : mixed
- The composite key (user, external id, provider) is declared here, not redeclared in the Api leaf: a leaf property with its own `#[ORM\Column]` duplicates the inherited column mapping and the metadata fail to load. Runtime reads and writes go through raw DBAL in `UserExternalLoginRepository`.
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getExternalId() : string
- getType() : string
- getUserId() : int
- setExternalId() : $this
- setType() : $this
- setUserId() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$externalId
protected
string
$externalId
= ''
Attributes
- #[Column]
- $name: 'external_id'
- $type: 'string'
- $length: 40
- #[Id]
$type
protected
string
$type
= 'unknown'
Attributes
- #[Column]
- $name: 'type'
- $type: 'string'
- $length: 15
- #[Id]
$userId
protected
int
$userId
= 0
Attributes
- #[Column]
- $name: 'cms_system_users_user_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[Id]
Methods
__construct()
The composite key (user, external id, provider) is declared here, not redeclared in the Api leaf: a leaf property with its own `#[ORM\Column]` duplicates the inherited column mapping and the metadata fail to load. Runtime reads and writes go through raw DBAL in `UserExternalLoginRepository`.
public
__construct([int $userId = 0 ][, string $externalId = '' ][, string $type = 'unknown' ]) : mixed
Parameters
- $userId : int = 0
- $externalId : string = ''
- $type : string = 'unknown'
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getExternalId()
public
getExternalId() : string
Return values
stringgetType()
public
getType() : string
Return values
stringgetUserId()
public
getUserId() : int
Return values
intsetExternalId()
public
setExternalId(string $externalId) : $this
Parameters
- $externalId : string
Return values
$thissetType()
public
setType(string $type) : $this
Parameters
- $type : string
Return values
$thissetUserId()
public
setUserId(int $userId) : $this
Parameters
- $userId : int
Return values
$thisgetTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>