src/Helper/HtmlMarkupSerializationHelper.php
public static function encodableClassVariable($class, $variable)
    {
        $getter = 'get' . str_replace('_', '', $variable);
        $setter = 'set' . str_replace('_', '', $variable);
        if (!method_exists($class, $getter) || !method_exists($class, $setter)) {
            return false;
        }

        return true;
    }
public static function encodableClassVariable($class, $variable)
    {
        $getter = 'get' . str_replace('_', '', $variable);
        $setter = 'set' . str_replace('_', '', $variable);
        if (!method_exists($class, $getter) || !method_exists($class, $setter)) {
            return false;
        }

        return true;
    }
public static function encodableClassVariable ( $ class , $ variable ) { $ getter = 'get' . str_replace ( '_' , '' , $ variable ) ; $ setter = 'set' . str_replace ( '_' , '' , $ variable ) ; if ( ! method_exists ( $ class , $ getter ) || ! method_exists ( $ class , $ setter ) ) { return false ; } return true ; }
Checks if a class variable can be encoded.
In practice checks that a getter and a setter for the property
is found from the class.

@param $class
@param $variable
@return bool
Checks if a class variable can be encoded . In practice checks that a getter and a setter for the property is found from the class .