Behat\RestTestingContext\BaseContext::get PHP Method

get() public static method

Get data by field name, or return all data if no field name provided.
public static get ( string $name = null ) : mixed
$name string Field name.
return mixed
    public static function get($name = null)
    {
        if (!isset($name)) {
            return self::$data;
        } else {
            if (static::exists($name)) {
                return self::$data[$name];
            } else {
                throw new \Exception("Requested data field '{$name}' not exist.");
            }
        }
    }