Factory
Table of Contents
Methods
-
__construct()
: mixed
-
getConfigurationByCode()
: Configuration
-
getTypeByCode()
: string
-
makeItem()
: Block
-
makeStubBlockByRequiredField()
: Block|null
__construct()
public
__construct([MemberRepository|null $memberRepository = null ][, BlockService|null $blockService = null ][, HcmLinkFieldService|null $hcmLinkFieldService = null ][, LegalInfoProvider|null $legalInfoProvider = null ]) : mixed
Parameters
-
$memberRepository
: MemberRepository|null
= null
-
-
$blockService
: BlockService|null
= null
-
-
$hcmLinkFieldService
: HcmLinkFieldService|null
= null
-
-
$legalInfoProvider
: LegalInfoProvider|null
= null
-
getConfigurationByCode()
public
getConfigurationByCode(string $code[, bool $skipSecurity = false ]) : Configuration
Parameters
-
$code
: string
-
-
$skipSecurity
: bool
= false
-
-
throws
-
SignException
getTypeByCode()
public
getTypeByCode(string $code) : string
Parameters
-
$code
: string
-
makeItem()
public
makeItem(Document $document, string $code, int $party[, array<string|int, mixed>|null $data = null ][, bool $skipSecurity = false ][, Role::*|null $role = null ]) : Block
Parameters
-
$document
: Document
-
-
$code
: string
-
-
$party
: int
-
-
$data
: array<string|int, mixed>|null
= null
-
-
$skipSecurity
: bool
= false
-
-
$role
: Role::*|null
= null
-
makeStubBlockByRequiredField()
public
makeStubBlockByRequiredField(Document $document, RequiredField $requiredField, int $party) : Block|null
Parameters
-
$document
: Document
-
-
$requiredField
: RequiredField
-
-
$party
: int
-