CommonCertificate extends Model
Defines the common properties of a certificate
Table of Contents
- STATUS_FINALIZED = 1
- finalized
- STATUS_ONGOING = 0
- ongoing
- $description : string|null
- The certificate description
- $id : string|null
- The certificate's identifier
- $key : string|null
- The certificate's key
- $manufacturer : MinGroup|null
- $name : string|null
- The certificate's name
- $status : int|null
- The certificate's status code
- $version : string|null
- The certificate's version
- from() : static
- Initializing a model from an array
- getDescription() : string
- Getter for description
- getId() : string
- Getter for id
- getKey() : string
- Getter for key
- getManufacturer() : MinGroup
- Getter for manufacturer
- getName() : string
- Getter for name
- getStatus() : int
- Getter for status
- getVersion() : string
- Getter for version
- jsonSerialize() : array<string|int, mixed>
- setDescription() : static
- Setter for description
- setId() : static
- Setter for id
- setKey() : static
- Setter for key
- setManufacturer() : static
- Setter for manufacturer
- setName() : static
- Setter for name
- setStatus() : static
- Setter for status
- setVersion() : static
- Setter for version
Constants
STATUS_FINALIZED
finalized
public
mixed
STATUS_FINALIZED
= 1
STATUS_ONGOING
ongoing
public
mixed
STATUS_ONGOING
= 0
Properties
$description
The certificate description
protected
string|null
$description
= null
$id
The certificate's identifier
protected
string|null
$id
= null
$key
The certificate's key
protected
string|null
$key
= null
$manufacturer
protected
MinGroup|null
$manufacturer
= null
$name
The certificate's name
protected
string|null
$name
= null
$status
The certificate's status code
protected
int|null
$status
= null
$version
The certificate's version
protected
string|null
$version
= null
Methods
from()
Initializing a model from an array
public
static from(array<string|int, mixed> $params) : static
Parameters
- $params : array<string|int, mixed>
-
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
Tags
Return values
static —getDescription()
Getter for description
public
getDescription() : string
Return values
string —The certificate description
getId()
Getter for id
public
getId() : string
Return values
string —The certificate's identifier
getKey()
Getter for key
public
getKey() : string
Return values
string —The certificate's key
getManufacturer()
Getter for manufacturer
public
getManufacturer() : MinGroup
Return values
MinGroup —getName()
Getter for name
public
getName() : string
Return values
string —The certificate's name
getStatus()
Getter for status
public
getStatus() : int
Return values
int —The certificate's status code
getVersion()
Getter for version
public
getVersion() : string
Return values
string —The certificate's version
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setDescription()
Setter for description
public
setDescription(string $description) : static
Parameters
- $description : string
-
The certificate description
Return values
static —To use in method chains
setId()
Setter for id
public
setId(string $id) : static
Parameters
- $id : string
-
The certificate's identifier
Return values
static —To use in method chains
setKey()
Setter for key
public
setKey(string $key) : static
Parameters
- $key : string
-
The certificate's key
Return values
static —To use in method chains
setManufacturer()
Setter for manufacturer
public
setManufacturer(MinGroup $manufacturer) : static
Parameters
- $manufacturer : MinGroup
Return values
static —To use in method chains
setName()
Setter for name
public
setName(string $name) : static
Parameters
- $name : string
-
The certificate's name
Return values
static —To use in method chains
setStatus()
Setter for status
public
setStatus(int $status) : static
Parameters
- $status : int
-
The certificate's status code
Return values
static —To use in method chains
setVersion()
Setter for version
public
setVersion(string $version) : static
Parameters
- $version : string
-
The certificate's version
Return values
static —To use in method chains