OrderType extends AbstractType
Table of Contents
$orderRepository | OrderRepository | |
---|---|---|
$deliveryRepository | DeliveryRepository | |
$paymentRepository | PaymentRepository | |
$baseInfoRepository | BaseInfoRepository | |
$requestContext | Context | |
__construct() | OrderType constructor. | mixed |
buildForm() | {@inheritdoc} | mixed |
configureOptions() | mixed | |
getBlockPrefix() | mixed | |
addPaymentForm() | mixed | |
getDeliveries() | 出荷に紐づく配送方法を取得する. | \Eccube\Entity\Delivery[] |
getPayments() | 配送方法に紐づく支払い方法を取得する 各配送方法に共通する支払い方法のみ返す. | ArrayCollection |
filterPayments() | 支払い方法の利用条件でフィルタをかける. | \Eccube\Entity\Payment[] |
Properties
$orderRepository
protected
OrderRepository
$orderRepository
$deliveryRepository
protected
DeliveryRepository
$deliveryRepository
$paymentRepository
protected
PaymentRepository
$paymentRepository
$baseInfoRepository
protected
BaseInfoRepository
$baseInfoRepository
$requestContext
protected
Context
$requestContext
Methods
__construct()
OrderType constructor.
public
__construct(
$orderRepository :
OrderRepository
, $deliveryRepository :
DeliveryRepository
, $paymentRepository :
PaymentRepository
, $baseInfoRepository :
BaseInfoRepository
, $requestContext :
Context
)
: mixed
Parameters
- $orderRepository : OrderRepository
- $deliveryRepository : DeliveryRepository
- $paymentRepository : PaymentRepository
- $baseInfoRepository : BaseInfoRepository
- $requestContext : Context
Return values
mixedbuildForm()
{@inheritdoc}
public
buildForm(
$builder :
FormBuilderInterface
, $options :
array
)
: mixed
Parameters
- $builder : FormBuilderInterface
- $options : array
Return values
mixedconfigureOptions()
public
configureOptions(
$resolver :
OptionsResolver
)
: mixed
Parameters
- $resolver : OptionsResolver
Return values
mixedgetBlockPrefix()
public
getBlockPrefix(
)
: mixed
Return values
mixedaddPaymentForm()
private
addPaymentForm(
$form :
FormInterface
, $choices :
array
[, $data :
Payment
= null ]
)
: mixed
Parameters
- $form : FormInterface
- $choices : array
- $data : Payment = null
Return values
mixedgetDeliveries()
出荷に紐づく配送方法を取得する.
private
getDeliveries(
$Order :
Order
)
: \Eccube\Entity\Delivery[]
Parameters
- $Order : Order
Return values
\Eccube\Entity\Delivery[]getPayments()
配送方法に紐づく支払い方法を取得する 各配送方法に共通する支払い方法のみ返す.
private
getPayments(
$Deliveries :
\Eccube\Entity\Delivery[]
)
: ArrayCollection
Parameters
- $Deliveries : \Eccube\Entity\Delivery[]
Return values
ArrayCollectionfilterPayments()
支払い方法の利用条件でフィルタをかける.
private
filterPayments(
$Payments :
ArrayCollection
, $total :
)
: \Eccube\Entity\Payment[]