Library/SymbolTable.php
public function getVariables()
    {
        $ret = [];
        foreach ($this->branchVariables as $branchId => $vars) {
            foreach ($vars as $var) {
                $ret[$var->getName()] = $var;
            }
        }

        return $ret;
    }
public function getVariables()
    {
        $ret = [];
        foreach ($this->branchVariables as $branchId => $vars) {
            foreach ($vars as $var) {
                $ret[$var->getName()] = $var;
            }
        }

        return $ret;
    }
public function getVariables ( ) { $ ret = [ ] ; foreach ( $ this -> branchVariables as $ branchId => $ vars ) { foreach ( $ vars as $ var ) { $ ret [ $ var -> getName ( ) ] = $ var ; } } return $ ret ; }
Returns all the variables defined in the symbol table.

@return Variable[]
Returns all the variables defined in the symbol table .