original_string: public static function getConstants()
      {
          if (empty(self::$_constantsCache)) {
              $reflectionClass = new \ReflectionClass(get_called_class());
              self::$_constantsCache = $reflectionClass->getConstants();
          }
          return self::$_constantsCache;
      }
code: public static function getConstants()
      {
          if (empty(self::$_constantsCache)) {
              $reflectionClass = new \ReflectionClass(get_called_class());
              self::$_constantsCache = $reflectionClass->getConstants();
          }
          return self::$_constantsCache;
      }
code_tokens: public static function getConstants ( ) { if ( empty ( self :: $ _constantsCache ) ) { $ reflectionClass = new \ ReflectionClass ( get_called_class ( ) ) ; self :: $ _constantsCache = $ reflectionClass -> getConstants ( ) ; } return self :: $ _constantsCache ; }
docstring: Get and cache all constants of for this enum.
  
  @return array
docstring_tokens: Get and cache all constants of for this enum .