PHP Class Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus

Afficher le fichier Open project: elcodi/bamboo Class Usage Examples

Protected Properties

Свойство Type Description
$productRepository Elcodi\Component\Product\Repository\ProductRepository Product repository
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface Store

Méthodes publiques

Méthode Description
__construct ( Elcodi\Component\Product\Repository\ProductRepository $productRepository, Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, array $enabledPaymentPlugins, array $enabledShippingPlugins ) Builds a new WizardStepChecker
getNextStep ( ) : integer | null Get the next step.
getStepsFinishStatus ( ) : boolean[] Gets the finish status for all the steps
isStepFinished ( integer $stepNumber ) : boolean Checks if the received step is finished.
isWizardFinished ( ) : boolean Checks if the wizard has already been finished

Méthodes protégées

Méthode Description
isAddressFulfilled ( ) : boolean Checks if the address has been fulfilled.
isPaymentFulfilled ( ) : boolean Checks if the payment has been fulfilled
isShippingFulfilled ( ) : boolean Checks if any shipping range has been added to the store.
isThereAnyProduct ( ) : boolean Checks if there is any product on the store.

Method Details

__construct() public méthode

Builds a new WizardStepChecker
public __construct ( Elcodi\Component\Product\Repository\ProductRepository $productRepository, Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, array $enabledPaymentPlugins, array $enabledShippingPlugins )
$productRepository Elcodi\Component\Product\Repository\ProductRepository Product repository
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface Store
$enabledPaymentPlugins array The enabled payment methods
$enabledShippingPlugins array The enabled shipping methods

getNextStep() public méthode

Get the next step.
public getNextStep ( ) : integer | null
Résultat integer | null The next step, null if the wizard is finished.

getStepsFinishStatus() public méthode

Gets the finish status for all the steps
public getStepsFinishStatus ( ) : boolean[]
Résultat boolean[]

isAddressFulfilled() protected méthode

Checks if the address has been fulfilled.
protected isAddressFulfilled ( ) : boolean
Résultat boolean

isPaymentFulfilled() protected méthode

Checks if the payment has been fulfilled
protected isPaymentFulfilled ( ) : boolean
Résultat boolean

isShippingFulfilled() protected méthode

Checks if any shipping range has been added to the store.
protected isShippingFulfilled ( ) : boolean
Résultat boolean

isStepFinished() public méthode

Checks if the received step is finished.
public isStepFinished ( integer $stepNumber ) : boolean
$stepNumber integer A step number.
Résultat boolean If the step is finished

isThereAnyProduct() protected méthode

Checks if there is any product on the store.
protected isThereAnyProduct ( ) : boolean
Résultat boolean

isWizardFinished() public méthode

Checks if the wizard has already been finished
public isWizardFinished ( ) : boolean
Résultat boolean

Property Details

$productRepository protected_oe property

Product repository
protected ProductRepository,Elcodi\Component\Product\Repository $productRepository
Résultat Elcodi\Component\Product\Repository\ProductRepository

$store protected_oe property

Store
protected StoreInterface,Elcodi\Component\Store\Entity\Interfaces $store
Résultat Elcodi\Component\Store\Entity\Interfaces\StoreInterface