Sitemap/Utils.php
public static function getSetMethod($object, $name)
    {
        $methodName = 'set' . self::camelize($name);

        if (!method_exists($object, $methodName)) {
            throw new Exception(sprintf('The set method for parameter %s is missing', $name));
        }

        return $methodName;
    }
public static function getSetMethod($object, $name)
    {
        $methodName = 'set' . self::camelize($name);

        if (!method_exists($object, $methodName)) {
            throw new Exception(sprintf('The set method for parameter %s is missing', $name));
        }

        return $methodName;
    }
public static function getSetMethod ( $ object , $ name ) { $ methodName = 'set' . self :: camelize ( $ name ) ; if ( ! method_exists ( $ object , $ methodName ) ) { throw new Exception ( sprintf ( 'The set method for parameter %s is missing' , $ name ) ) ; } return $ methodName ; }
Verify method affiliated to given param

@param object $object
@param string $name

@return string
Verify method affiliated to given param