Capsule::get PHP Method

get() public method

Gets value of specified var or NULL if var has not been put().
public get ( string $name ) : mixed
$name string Variable name to retrieve.
return mixed
    function get($name)
    {
        if (!isset($this->vars[$name])) {
            return null;
        }
        return $this->vars[$name];
    }