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
__construct()
public
__construct(Company $company) : mixed
Parameters
- $company : Company
getCode()
Get the activation/reset code.
public
getCode() : string
Return values
stringgetCompany()
Get the company.
public
getCompany() : Company
Return values
CompanygetEmail()
Get the email address of the company's representative.
public
getEmail() : string
Return values
stringgetId()
Get the internal identifier for this company.
public
getId() : int
Return values
intgetTime()
Get the activation/reset time.
public
getTime() : DateTime|null
Return values
DateTime|nullsetCode()
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