original_string: public function getAll()
      {
          if (!$this->getResource()) {
              return [];
          }
          if ($this->useLocalResource) {
              return $this->localResource;
          }
  
          // If we're attempting to use a global resource but it doesn't exist, we've got a problem.
          if (!isset($GLOBALS[$this->getResource()])) {
              throw new \Parable\GetSet\Exception(
                  "Attempting to use global resource '{$this->getResource()}' but resource not available."
              );
          }
  
          return $GLOBALS[$this->getResource()];
      }
code: public function getAll()
      {
          if (!$this->getResource()) {
              return [];
          }
          if ($this->useLocalResource) {
              return $this->localResource;
          }
  
          // If we're attempting to use a global resource but it doesn't exist, we've got a problem.
          if (!isset($GLOBALS[$this->getResource()])) {
              throw new \Parable\GetSet\Exception(
                  "Attempting to use global resource '{$this->getResource()}' but resource not available."
              );
          }
  
          return $GLOBALS[$this->getResource()];
      }
code_tokens: public function getAll ( ) { if ( ! $ this -> getResource ( ) ) { return [ ] ; } if ( $ this -> useLocalResource ) { return $ this -> localResource ; } // If we're attempting to use a global resource but it doesn't exist, we've got a problem. if ( ! isset ( $ GLOBALS [ $ this -> getResource ( ) ] ) ) { throw new \ Parable \ GetSet \ Exception ( "Attempting to use global resource '{$this->getResource()}' but resource not available." ) ; } return $ GLOBALS [ $ this -> getResource ( ) ] ; }
docstring: Return all from resource if resource is set.
  
  @return array
  @throws \Parable\GetSet\Exception
docstring_tokens: Return all from resource if resource is set .