PHP Класс Elcodi\Plugin\StoreSetupWizardBundle\Services\WizardStatus

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Описание методов

__construct() публичный Метод

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() публичный Метод

Get the next step.
public getNextStep ( ) : integer | null
Результат integer | null The next step, null if the wizard is finished.

getStepsFinishStatus() публичный Метод

Gets the finish status for all the steps
public getStepsFinishStatus ( ) : boolean[]
Результат boolean[]

isAddressFulfilled() защищенный Метод

Checks if the address has been fulfilled.
protected isAddressFulfilled ( ) : boolean
Результат boolean

isPaymentFulfilled() защищенный Метод

Checks if the payment has been fulfilled
protected isPaymentFulfilled ( ) : boolean
Результат boolean

isShippingFulfilled() защищенный Метод

Checks if any shipping range has been added to the store.
protected isShippingFulfilled ( ) : boolean
Результат boolean

isStepFinished() публичный Метод

Checks if the received step is finished.
public isStepFinished ( integer $stepNumber ) : boolean
$stepNumber integer A step number.
Результат boolean If the step is finished

isThereAnyProduct() защищенный Метод

Checks if there is any product on the store.
protected isThereAnyProduct ( ) : boolean
Результат boolean

isWizardFinished() публичный Метод

Checks if the wizard has already been finished
public isWizardFinished ( ) : boolean
Результат boolean

Описание свойств

$productRepository защищенное свойство

Product repository
protected ProductRepository,Elcodi\Component\Product\Repository $productRepository
Результат Elcodi\Component\Product\Repository\ProductRepository

$store защищенное свойство

Store
protected StoreInterface,Elcodi\Component\Store\Entity\Interfaces $store
Результат Elcodi\Component\Store\Entity\Interfaces\StoreInterface