cart integration
This commit is contained in:
@@ -25,6 +25,7 @@ namespace Colissimo;
|
||||
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Thelia\Model\Country;
|
||||
use Thelia\Module\BaseModule;
|
||||
use Thelia\Module\DeliveryModuleInterface;
|
||||
|
||||
@@ -57,10 +58,10 @@ class Colissimo extends BaseModule implements DeliveryModuleInterface
|
||||
*
|
||||
* calculate and return delivery price
|
||||
*
|
||||
* @param null $country
|
||||
* @param Country $country
|
||||
* @return mixed
|
||||
*/
|
||||
public function calculate($country = null)
|
||||
public function calculate(Country $country)
|
||||
{
|
||||
// TODO: Implement calculate() method.
|
||||
return 2;
|
||||
|
||||
Reference in New Issue
Block a user