protected function getNestedContext($class, $attributes = null)
    {
        // Must be an array
        if (is_array($attributes) === false) return $attributes;

        // Create nested context
        $context = new $class($attributes);

        // Return context attributes
        return $this->filterNestedContext($context->getProperties());
    }
protected function getNestedContext($class, $attributes = null)
    {
        // Must be an array
        if (is_array($attributes) === false) return $attributes;

        // Create nested context
        $context = new $class($attributes);

        // Return context attributes
        return $this->filterNestedContext($context->getProperties());
    }
protected function getNestedContext ( $ class , $ attributes = null ) { // Must be an array if ( is_array ( $ attributes ) === false ) return $ attributes ; // Create nested context $ context = new $ class ( $ attributes ) ; // Return context attributes return $ this -> filterNestedContext ( $ context -> getProperties ( ) ) ; }
Get nested context array.

@param  string $class
@param  array  $attributes
@return array
Get nested context array .