original_string: static function all(): array
      {
          $instances = [];
  
          foreach (static::getMap() as $key => $value) {
              $instances[$key] = self::$instanceCache[static::class][$key]
                  ?? (self::$instanceCache[static::class][$key] = new static($key, $value));
          }
  
          return $instances;
      }
code: static function all(): array
      {
          $instances = [];
  
          foreach (static::getMap() as $key => $value) {
              $instances[$key] = self::$instanceCache[static::class][$key]
                  ?? (self::$instanceCache[static::class][$key] = new static($key, $value));
          }
  
          return $instances;
      }
code_tokens: static function all ( ) : array { $ instances = [ ] ; foreach ( static :: getMap ( ) as $ key => $ value ) { $ instances [ $ key ] = self :: $ instanceCache [ static :: class ] [ $ key ] ?? ( self :: $ instanceCache [ static :: class ] [ $ key ] = new static ( $ key , $ value ) ) ; } return $ instances ; }
docstring: Get instance for each defined key-value pair
  
  @return static[]
docstring_tokens: Get instance for each defined key - value pair