protected function createZoneMemberCountryFromDefinition(array $definition)
    {
        $zoneMember = new ZoneMemberCountry();
        $setValues = \Closure::bind(function ($definition) {
            $this->id = $definition['id'];
            $this->name = $definition['name'];
            $this->countryCode = $definition['country_code'];
            if (isset($definition['administrative_area'])) {
                $this->administrativeArea = $definition['administrative_area'];
            }
            if (isset($definition['locality'])) {
                $this->locality = $definition['locality'];
            }
            if (isset($definition['dependent_locality'])) {
                $this->dependentLocality = $definition['dependent_locality'];
            }
            if (isset($definition['included_postal_codes'])) {
                $this->includedPostalCodes = $definition['included_postal_codes'];
            }
            if (isset($definition['excluded_postal_codes'])) {
                $this->excludedPostalCodes = $definition['excluded_postal_codes'];
            }
        }, $zoneMember, '\CommerceGuys\Zone\Model\ZoneMemberCountry');
        $setValues($definition);

        return $zoneMember;
    }
protected function createZoneMemberCountryFromDefinition(array $definition)
    {
        $zoneMember = new ZoneMemberCountry();
        $setValues = \Closure::bind(function ($definition) {
            $this->id = $definition['id'];
            $this->name = $definition['name'];
            $this->countryCode = $definition['country_code'];
            if (isset($definition['administrative_area'])) {
                $this->administrativeArea = $definition['administrative_area'];
            }
            if (isset($definition['locality'])) {
                $this->locality = $definition['locality'];
            }
            if (isset($definition['dependent_locality'])) {
                $this->dependentLocality = $definition['dependent_locality'];
            }
            if (isset($definition['included_postal_codes'])) {
                $this->includedPostalCodes = $definition['included_postal_codes'];
            }
            if (isset($definition['excluded_postal_codes'])) {
                $this->excludedPostalCodes = $definition['excluded_postal_codes'];
            }
        }, $zoneMember, '\CommerceGuys\Zone\Model\ZoneMemberCountry');
        $setValues($definition);

        return $zoneMember;
    }
protected function createZoneMemberCountryFromDefinition ( array $ definition ) { $ zoneMember = new ZoneMemberCountry ( ) ; $ setValues = \ Closure :: bind ( function ( $ definition ) { $ this -> id = $ definition [ 'id' ] ; $ this -> name = $ definition [ 'name' ] ; $ this -> countryCode = $ definition [ 'country_code' ] ; if ( isset ( $ definition [ 'administrative_area' ] ) ) { $ this -> administrativeArea = $ definition [ 'administrative_area' ] ; } if ( isset ( $ definition [ 'locality' ] ) ) { $ this -> locality = $ definition [ 'locality' ] ; } if ( isset ( $ definition [ 'dependent_locality' ] ) ) { $ this -> dependentLocality = $ definition [ 'dependent_locality' ] ; } if ( isset ( $ definition [ 'included_postal_codes' ] ) ) { $ this -> includedPostalCodes = $ definition [ 'included_postal_codes' ] ; } if ( isset ( $ definition [ 'excluded_postal_codes' ] ) ) { $ this -> excludedPostalCodes = $ definition [ 'excluded_postal_codes' ] ; } } , $ zoneMember , '\CommerceGuys\Zone\Model\ZoneMemberCountry' ) ; $ setValues ( $ definition ) ; return $ zoneMember ; }
Creates a ZoneMemberCountry instance from the provided definition.

@param array $definition The zone member definition.

@return ZoneMemberCountry
Creates a ZoneMemberCountry instance from the provided definition .