PHP Class Sonata\Component\Delivery\Pool

Afficher le fichier Open project: sonata-project/ecommerce Class Usage Examples

Protected Properties

Свойство Type Description
$methods array

Méthodes publiques

Méthode 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 méthode

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

getMethod() public méthode

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

getMethods() public méthode

public getMethods ( ) : array
Résultat array of delivery methods

Property Details

$methods protected_oe property

protected array $methods
Résultat array