public function resolveVariable($key)
    {
        $key = trim($key);

        if (($result = $this->executeFunction($key)) !== Constants::NOT_RESOLVED) {
            return $result;
        }

        return Constants::NOT_RESOLVED;
    }