src/Camunda/Model/Attribute/Variables.php
public function getVariables($name = null)
    {
        if (null === $name) {
            return $this->variables;
        }

        if (!array_key_exists($name, $this->variables)) {
            throw new OutOfRangeException('Variable does not exist.');
        }

        return $this->variables[$name];
    }
public function getVariables($name = null)
    {
        if (null === $name) {
            return $this->variables;
        }

        if (!array_key_exists($name, $this->variables)) {
            throw new OutOfRangeException('Variable does not exist.');
        }

        return $this->variables[$name];
    }
Get variables

@param string $name
@return array
@throws \OutOfRangeException