PhpSandbox\PHPSandbox::hasDefinedVars PHP Method

hasDefinedVars() public method

Query whether PHPSandbox instance has defined variables
public hasDefinedVars ( ) : integer
return integer Returns the number of variables this instance has defined
    public function hasDefinedVars()
    {
        return count($this->definitions['variables']);
    }
PHPSandbox