public function getAreaForCountry(Country $country)
    {
        $area = null;

        if (null !== $areaDeliveryModule = AreaDeliveryModuleQuery::create()->findByCountryAndModule(
            $country,
            $this->getModuleModel()
        )) {
            $area = $areaDeliveryModule->getArea();
        }

        return $area;
    }
public function getAreaForCountry(Country $country)
    {
        $area = null;

        if (null !== $areaDeliveryModule = AreaDeliveryModuleQuery::create()->findByCountryAndModule(
            $country,
            $this->getModuleModel()
        )) {
            $area = $areaDeliveryModule->getArea();
        }

        return $area;
    }
public function getAreaForCountry ( Country $ country ) { $ area = null ; if ( null !== $ areaDeliveryModule = AreaDeliveryModuleQuery :: create ( ) -> findByCountryAndModule ( $ country , $ this -> getModuleModel ( ) ) ) { $ area = $ areaDeliveryModule -> getArea ( ) ; } return $ area ; }
Return the first area that matches the given  country for the given module
@param Country $country
@param BaseModule $module
@return Area|null
Return the first area that matches the given country for the given module