private function doControlEncode($type, Control $control, Encoder $encoder)
    {
        return sprintf(
            '%s = L.control.%s(%s);',
            $encoder->encodeReference($control),
            $type,
            $encoder->encodeArguments(array($control->getOptions()))
        );
    }
private function doControlEncode($type, Control $control, Encoder $encoder)
    {
        return sprintf(
            '%s = L.control.%s(%s);',
            $encoder->encodeReference($control),
            $type,
            $encoder->encodeArguments(array($control->getOptions()))
        );
    }
private function doControlEncode ( $ type , Control $ control , Encoder $ encoder ) { return sprintf ( '%s = L.control.%s(%s);' , $ encoder -> encodeReference ( $ control ) , $ type , $ encoder -> encodeArguments ( array ( $ control -> getOptions ( ) ) ) ) ; }
Compile a control.

@param string  $type    The control type.
@param Control $control The control definition.
@param Encoder $encoder The encoder.

@return string
Compile a control .