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

            foreach ($this->reflection()->getProperties($scope) as $prop) {
                $props[] = $prop->getName();
            }

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

            foreach ($this->reflection()->getProperties($scope) as $prop) {
                $props[] = $prop->getName();
            }

            return $props;
        });
    }
protected function _properties ( $ key , $ scope ) { return $ this -> cache ( $ key , function ( ) use ( $ scope ) { $ props = [ ] ; foreach ( $ this -> reflection ( ) -> getProperties ( $ scope ) as $ prop ) { $ props [ ] = $ prop -> getName ( ) ; } return $ props ; } ) ; }
Return an array of properties for the defined scope.

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