Property | Type | Description | |
---|---|---|---|
$products | array |
Method | Description | |
---|---|---|
addProduct ( string $code, |
add a delivery method into the pool. | |
getManager ( Sonata\Component\Product\ProductInterface | string $code ) : Sonata\Component\Product\ProductManagerInterface | ||
getProduct ( string $code ) : |
||
getProductCode ( Sonata\Component\Product\ProductInterface $product ) : integer | null | string | ||
getProducts ( ) : array | ||
getProvider ( Sonata\Component\Product\ProductInterface | string $code ) : Sonata\Component\Product\ProductProviderInterface | ||
hasProduct ( string $code ) : boolean | Tells if a product with $code is in the pool. | |
hasProvider ( string $code ) : boolean |
public addProduct ( string $code, |
||
$code | string | |
$productDescription |
public getManager ( Sonata\Component\Product\ProductInterface | string $code ) : Sonata\Component\Product\ProductManagerInterface | ||
$code | Sonata\Component\Product\ProductInterface | string | |
return | Sonata\Component\Product\ProductManagerInterface |
public getProduct ( string $code ) : |
||
$code | string | |
return |
public getProvider ( Sonata\Component\Product\ProductInterface | string $code ) : Sonata\Component\Product\ProductProviderInterface | ||
$code | Sonata\Component\Product\ProductInterface | string | |
return | Sonata\Component\Product\ProductProviderInterface |
public hasProduct ( string $code ) : boolean | ||
$code | string | |
return | boolean |
public hasProvider ( string $code ) : boolean | ||
$code | string | |
return | boolean |