CompanyUser
in package
implements
IdentityInterface
CompanyUser model.
Attributes
- #[Entity]
Table of Contents
Interfaces
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
__construct()
public
__construct(NewCompanyUser $newCompanyUser) : mixed
Parameters
- $newCompanyUser : NewCompanyUser
getCompany()
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
intgetPassword()
Get the password hash.
public
getPassword() : string
Return values
stringgetPasswordChangedOn()
public
getPasswordChangedOn() : DateTime|null
Return values
DateTime|nullgetResourceId()
Get the user's resource ID.
public
getResourceId() : string
Return values
stringgetRoleId()
public
getRoleId() : string
Return values
stringsetPassword()
Set the password hash.
public
setPassword(string $password) : void
Parameters
- $password : string
setPasswordChangedOn()
public
setPasswordChangedOn(DateTime $passwordChangedOn) : void
Parameters
- $passwordChangedOn : DateTime