Documentation

CompanyUser
in package
implements IdentityInterface

CompanyUser model.

Attributes
#[Entity]

Table of Contents

Interfaces

IdentityInterface

Properties

$company  : Company
The company for this company user.
$id  : int
The internal identifier for this company.
$password  : string
The company's password.
$passwordChangedOn  : DateTime|null
Timestamp when the password was last changed.

Methods

__construct()  : mixed
getCompany()  : Company
Get the company.
getEmail()  : string
Get the email address of the company's representative.
getId()  : int
Get the internal identifier for this company.
getPassword()  : string
Get the password hash.
getPasswordChangedOn()  : DateTime|null
getResourceId()  : string
Get the user's resource ID.
getRoleId()  : string
setPassword()  : void
Set the password hash.
setPasswordChangedOn()  : void

Properties

$company

The company for this company user.

protected Company $company
Attributes
#[JoinColumn]
$name: 'id'
$referencedColumnName: 'id'
$nullable: false
#[OneToOne]
$targetEntity: \Company\Model\Company::class
$fetch: 'EAGER'

$id

The internal identifier for this company.

protected int $id
Attributes
#[Column]
$type: 'integer'
#[Id]

$password

The company's password.

protected string $password
Attributes
#[Column]
$type: 'string'

$passwordChangedOn

Timestamp when the password was last changed.

protected DateTime|null $passwordChangedOn = null
Attributes
#[Column]
$type: 'datetime'
$nullable: true

Methods

getEmail()

Get the email address of the company's representative.

public getEmail() : string
Return values
string

getId()

Get the internal identifier for this company.

public getId() : int
Return values
int

getPassword()

Get the password hash.

public getPassword() : string
Return values
string

getPasswordChangedOn()

public getPasswordChangedOn() : DateTime|null
Return values
DateTime|null

getResourceId()

Get the user's resource ID.

public getResourceId() : string
Return values
string

getRoleId()

public getRoleId() : string
Return values
string

setPassword()

Set the password hash.

public setPassword(string $password) : void
Parameters
$password : string

setPasswordChangedOn()

public setPasswordChangedOn(DateTime $passwordChangedOn) : void
Parameters
$passwordChangedOn : DateTime

        
On this page

Search results