Свойство | Тип | Описание | |
---|---|---|---|
$productRepository | Elcodi\Component\Product\Repository\ProductRepository | Product repository | |
$store | Elcodi\Component\Store\Entity\Interfaces\StoreInterface | Store |
Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
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. |
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 |
public getNextStep ( ) : integer | null | ||
Результат | integer | null | The next step, null if the wizard is finished. |
public getStepsFinishStatus ( ) : boolean[] | ||
Результат | boolean[] |
protected isAddressFulfilled ( ) : boolean | ||
Результат | boolean |
protected isPaymentFulfilled ( ) : boolean | ||
Результат | boolean |
protected isShippingFulfilled ( ) : boolean | ||
Результат | boolean |
public isStepFinished ( integer $stepNumber ) : boolean | ||
$stepNumber | integer | A step number. |
Результат | boolean | If the step is finished |
protected isThereAnyProduct ( ) : boolean | ||
Результат | boolean |
public isWizardFinished ( ) : boolean | ||
Результат | boolean |
protected ProductRepository,Elcodi\Component\Product\Repository $productRepository | ||
Результат | Elcodi\Component\Product\Repository\ProductRepository |