public function getSetters($filter = \ReflectionProperty::IS_PUBLIC)
    {
        $setters = array();
        $methods = $this->getMethods($filter);
        foreach ($methods as $method) {
            if (substr($method->getName(), 0, 3) === 'set') {
                $setters[] = $method;
            }
        }

        return $setters;
    }
public function getSetters($filter = \ReflectionProperty::IS_PUBLIC)
    {
        $setters = array();
        $methods = $this->getMethods($filter);
        foreach ($methods as $method) {
            if (substr($method->getName(), 0, 3) === 'set') {
                $setters[] = $method;
            }
        }

        return $setters;
    }
public function getSetters ( $ filter = \ ReflectionProperty :: IS_PUBLIC ) { $ setters = array ( ) ; $ methods = $ this -> getMethods ( $ filter ) ; foreach ( $ methods as $ method ) { if ( substr ( $ method -> getName ( ) , 0 , 3 ) === 'set' ) { $ setters [ ] = $ method ; } } return $ setters ; }
Returns the public setters methods.

@param int $filter

@return array
Returns the public setters methods .