BannerPatternTypeIdMap
in package
Uses
SingletonTrait
Table of Contents
- $enumToId : array<string|int, mixed>
- $idToEnum : array<string|int, mixed>
- $instance : self|null
- __construct() : mixed
- fromId() : BannerPatternType|null
- getInstance() : self
- register() : void
- reset() : void
- setInstance() : void
- toId() : string
- make() : self
Properties
$enumToId
private
array<string|int, mixed>
$enumToId
= []
Tags
$idToEnum
private
array<string|int, mixed>
$idToEnum
= []
Tags
$instance
private
static self|null
$instance
= null
Methods
__construct()
public
__construct() : mixed
Return values
mixed —fromId()
public
fromId(string $id) : BannerPatternType|null
Parameters
- $id : string
Return values
BannerPatternType|null —getInstance()
public
static getInstance() : self
Return values
self —register()
public
register(string $stringId, BannerPatternType $type) : void
Parameters
- $stringId : string
- $type : BannerPatternType
Return values
void —reset()
public
static reset() : void
Return values
void —setInstance()
public
static setInstance(self $instance) : void
Parameters
- $instance : self
Return values
void —toId()
public
toId(BannerPatternType $type) : string
Parameters
- $type : BannerPatternType
Return values
string —make()
private
static make() : self