PHP Class Sonata\Component\Delivery\Pool

ファイルを表示 Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Property Type Description
$methods array

Public Methods

Method Description
addMethod ( Sonata\Component\Delivery\ServiceDeliveryInterface $instance ) add a delivery method into the pool.
getMethod ( string $code ) : Sonata\Component\Delivery\ServiceDeliveryInterface return a ServiceDeliveryInterface Object.
getMethods ( ) : array

Method Details

addMethod() public method

add a delivery method into the pool.
public addMethod ( Sonata\Component\Delivery\ServiceDeliveryInterface $instance )
$instance Sonata\Component\Delivery\ServiceDeliveryInterface

getMethod() public method

return a ServiceDeliveryInterface Object.
public getMethod ( string $code ) : Sonata\Component\Delivery\ServiceDeliveryInterface
$code string
return Sonata\Component\Delivery\ServiceDeliveryInterface

getMethods() public method

public getMethods ( ) : array
return array of delivery methods

Property Details

$methods protected_oe property

protected array $methods
return array