protected function _methods($key, $scope) {
        return $this->cache($key, function() use ($scope) {
            $methods = [];

            foreach ($this->reflection()->getMethods($scope) as $method) {
                $methods[] = $method->getName();
            }

            return $methods;
        });
    }
protected function _methods($key, $scope) {
        return $this->cache($key, function() use ($scope) {
            $methods = [];

            foreach ($this->reflection()->getMethods($scope) as $method) {
                $methods[] = $method->getName();
            }

            return $methods;
        });
    }
protected function _methods ( $ key , $ scope ) { return $ this -> cache ( $ key , function ( ) use ( $ scope ) { $ methods = [ ] ; foreach ( $ this -> reflection ( ) -> getMethods ( $ scope ) as $ method ) { $ methods [ ] = $ method -> getName ( ) ; } return $ methods ; } ) ; }
Return an array of methods for the defined scope.

@param string $key
@param int $scope
@return string[]
Return an array of methods for the defined scope .