public function encodeDivIcon(DivIcon $icon, Encoder $encoder)
    {
        return sprintf(
            '%s = L.divIcon(%s);',
            $encoder->encodeReference($icon),
            $encoder->encodeArguments(array($icon->getOptions()))
        );
    }
public function encodeDivIcon(DivIcon $icon, Encoder $encoder)
    {
        return sprintf(
            '%s = L.divIcon(%s);',
            $encoder->encodeReference($icon),
            $encoder->encodeArguments(array($icon->getOptions()))
        );
    }
public function encodeDivIcon ( DivIcon $ icon , Encoder $ encoder ) { return sprintf ( '%s = L.divIcon(%s);' , $ encoder -> encodeReference ( $ icon ) , $ encoder -> encodeArguments ( array ( $ icon -> getOptions ( ) ) ) ) ; }
Encode the div icon.

@param DivIcon $icon    The div icon.
@param Encoder $encoder The encoder.

@return string
Encode the div icon .