LegalTextStepService
extends AbstractSetupWizardStepService
in package
Table of Contents
- TEXT_SECTION = 'setup_wizard'
- $key : string
- $reader : LegalTextReader
- $storage : StepIsDoneStorageInterface
- $termsAndConditionTextHashes : TermsAndConditionTextHashesCollection
- $textManager : TextManager
- $withdrawalTextHashes : WithdrawalTextHashesCollection
- __construct() : mixed
- LegalTextStepService constructor.
- canHandle() : mixed
- getStep() : SetupWizardStep
- markComplete() : mixed
- markIncomplete() : mixed
- createDescription() : Text
- createStep() : LegalTextStep
- createTitle() : Title
- currentLegalTextWasChanged() : bool
- hashValuesExistForLanguageId() : bool
Constants
TEXT_SECTION
protected
mixed
TEXT_SECTION
= 'setup_wizard'
Properties
$key
protected
string
$key
$reader
protected
LegalTextReader
$reader
$storage
protected
StepIsDoneStorageInterface
$storage
$termsAndConditionTextHashes
protected
TermsAndConditionTextHashesCollection
$termsAndConditionTextHashes
$textManager
protected
TextManager
$textManager
$withdrawalTextHashes
protected
WithdrawalTextHashesCollection
$withdrawalTextHashes
Methods
__construct()
LegalTextStepService constructor.
public
__construct(Key $key, LegalTextStepIsDoneStorage $storage, TextManager $textManager, WithdrawalTextHashesCollection $withdrawalTextHashes, TermsAndConditionTextHashesCollection $termsAndConditionTextHashes, LegalTextReader $reader) : mixed
Parameters
- $key : Key
- $storage : LegalTextStepIsDoneStorage
- $textManager : TextManager
- $withdrawalTextHashes : WithdrawalTextHashesCollection
- $termsAndConditionTextHashes : TermsAndConditionTextHashesCollection
- $reader : LegalTextReader
Return values
mixed —canHandle()
public
canHandle(Key $key) : mixed
Parameters
- $key : Key
Return values
mixed —getStep()
public
getStep() : SetupWizardStep
Return values
SetupWizardStep —markComplete()
public
markComplete() : mixed
Return values
mixed —markIncomplete()
public
markIncomplete() : mixed
Return values
mixed —createDescription()
protected
createDescription() : Text
Return values
Text —createStep()
protected
createStep(Status $status) : LegalTextStep
Parameters
- $status : Status
Return values
LegalTextStep —createTitle()
protected
createTitle() : Title
Return values
Title —currentLegalTextWasChanged()
protected
currentLegalTextWasChanged() : bool
Return values
bool —hashValuesExistForLanguageId()
protected
hashValuesExistForLanguageId(int $languageId) : bool
Parameters
- $languageId : int