public function zoneId(array $condition, array $data, $key)
    {
        if (isset($data['data']['order'][$key])) {
            return $this->checkZoneIdByAddressId($condition, $data, $key);
        }

        return $this->checkZoneIdByAddressData($condition, $data);
    }
public function zoneId(array $condition, array $data, $key)
    {
        if (isset($data['data']['order'][$key])) {
            return $this->checkZoneIdByAddressId($condition, $data, $key);
        }

        return $this->checkZoneIdByAddressData($condition, $data);
    }
public function zoneId ( array $ condition , array $ data , $ key ) { if ( isset ( $ data [ 'data' ] [ 'order' ] [ $ key ] ) ) { return $ this -> checkZoneIdByAddressId ( $ condition , $ data , $ key ) ; } return $ this -> checkZoneIdByAddressData ( $ condition , $ data ) ; }
Whether the zone ID condition is met
@param array $condition
@param array $data
@param string $key
@return boolean
Whether the zone ID condition is met