Documentation

NewCompanyUser
in package

Temporary {@link CompanyUser} model to facilitate registration and password resets.

Attributes
#[Entity]

Table of Contents

Properties

$code  : string
The company's activation/reset code.
$company  : Company
The company for this company user.
$id  : int
The company.
$time  : DateTime|null
Date and time at which the activation or password reset was requested.

Methods

__construct()  : mixed
getCode()  : string
Get the activation/reset code.
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.
getTime()  : DateTime|null
Get the activation/reset time.
setCode()  : void
Set the activation/reset code.
setTime()  : void
Set the activation/reset time.

Properties

$code

The company's activation/reset code.

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

$company

The company for this company user.

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

$id

The company.

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

$time

Date and time at which the activation or password reset was requested.

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

Methods

getCode()

Get the activation/reset code.

public getCode() : string
Return values
string

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

getTime()

Get the activation/reset time.

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

setCode()

Set the activation/reset code.

public setCode(string $code) : void
Parameters
$code : string

setTime()

Set the activation/reset time.

public setTime(DateTime|null $time) : void
Parameters
$time : DateTime|null

        
On this page

Search results