PHP 클래스 spec\Sylius\Bundle\CoreBundle\Context\CustomerAndChannelBasedCartContextSpec

저자: Mateusz Zalewski ([email protected])
상속: extends PhpSpec\ObjectBehavior
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
it_does_nothing_if_channel_could_not_be_found ( Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )
it_implements_cart_context_interface ( )
it_is_initializable ( )
it_returns_uncompleted_cart_for_currently_logged_user ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\OrderInterface $order, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
it_throws_exception_if_no_cart_can_be_provided ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
it_throws_exception_if_there_is_no_logged_in_customer ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext )
let ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )

메소드 상세

it_does_nothing_if_channel_could_not_be_found() 공개 메소드

public it_does_nothing_if_channel_could_not_be_found ( Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface

it_implements_cart_context_interface() 공개 메소드

it_is_initializable() 공개 메소드

public it_is_initializable ( )

it_returns_uncompleted_cart_for_currently_logged_user() 공개 메소드

public it_returns_uncompleted_cart_for_currently_logged_user ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\OrderInterface $order, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
$channel Sylius\Component\Core\Model\ChannelInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface
$customer Sylius\Component\Core\Model\CustomerInterface
$order Sylius\Component\Core\Model\OrderInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface

it_throws_exception_if_no_cart_can_be_provided() 공개 메소드

public it_throws_exception_if_no_cart_can_be_provided ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
$channel Sylius\Component\Core\Model\ChannelInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface
$customer Sylius\Component\Core\Model\CustomerInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface

it_throws_exception_if_there_is_no_logged_in_customer() 공개 메소드

public it_throws_exception_if_there_is_no_logged_in_customer ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext )
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface

let() 공개 메소드

public let ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface