cart integration

This commit is contained in:
Etienne Roudeix
2013-09-16 14:31:34 +02:00
parent e0a48df23e
commit c7b3aea7f0
4 changed files with 17 additions and 8 deletions

View File

@@ -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;