protected function addGetPrevious(string &$script): void
    {
        $useScope = $this->behavior->useScope();

        // The generateScopePhp() method below contains the following list of variables: