original_string: protected function getHooks()
      {
          if (!self::$hooksHaveBeenRetrieved) {
              $hookClasses = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['phpunit']['FrameworkCleanUp'];
              if (is_array($hookClasses)) {
                  foreach ($hookClasses as $hookClass) {
                      self::$hooks[] = GeneralUtility::getUserObj($hookClass);
                  }
              }
  
              self::$hooksHaveBeenRetrieved = true;
          }
  
          return self::$hooks;
      }
code: protected function getHooks()
      {
          if (!self::$hooksHaveBeenRetrieved) {
              $hookClasses = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['phpunit']['FrameworkCleanUp'];
              if (is_array($hookClasses)) {
                  foreach ($hookClasses as $hookClass) {
                      self::$hooks[] = GeneralUtility::getUserObj($hookClass);
                  }
              }
  
              self::$hooksHaveBeenRetrieved = true;
          }
  
          return self::$hooks;
      }
code_tokens: protected function getHooks ( ) { if ( ! self :: $ hooksHaveBeenRetrieved ) { $ hookClasses = $ GLOBALS [ 'TYPO3_CONF_VARS' ] [ 'EXTCONF' ] [ 'phpunit' ] [ 'FrameworkCleanUp' ] ; if ( is_array ( $ hookClasses ) ) { foreach ( $ hookClasses as $ hookClass ) { self :: $ hooks [ ] = GeneralUtility :: getUserObj ( $ hookClass ) ; } } self :: $ hooksHaveBeenRetrieved = true ; } return self :: $ hooks ; }
docstring: Gets all hooks for this class.
  
  @return \Tx_Phpunit_Interface_FrameworkCleanupHook[] the hook objects, will be empty if no hooks have been set
docstring_tokens: Gets all hooks for this class .