protected function compileExtendsStack($expression)
    {
        foreach (['Block', 'EndBlock', 'Include', 'Inject', 'Extends'] as $token) {
            $out = $this->{'compile'.$token}($expression);

            if (strlen($out) !== 0) {
                $expression = $out;
            }
        }

        return $expression;
    }
protected function compileExtendsStack($expression)
    {
        foreach (['Block', 'EndBlock', 'Include', 'Inject', 'Extends'] as $token) {
            $out = $this->{'compile'.$token}($expression);

            if (strlen($out) !== 0) {
                $expression = $out;
            }
        }

        return $expression;
    }
protected function compileExtendsStack ( $ expression ) { foreach ( [ 'Block' , 'EndBlock' , 'Include' , 'Inject' , 'Extends' ] as $ token ) { $ out = $ this -> { 'compile' . $ token } ( $ expression ) ; if ( strlen ( $ out ) !== 0 ) { $ expression = $ out ; } } return $ expression ; }
Compile the inherit concept statement

@param string $expression

@return string
Compile the inherit concept statement