original_string: final public function ordinal(): int
      {
          if ($this->ordinal === null) {
              $ordinal = 0;
              foreach (self::getMembers() as $constValue) {
                  if ($this->value === $constValue) {
                      break;
                  }
                  $ordinal++;
              }
              $this->ordinal = $ordinal;
          }
  
          return $this->ordinal;
      }
code: final public function ordinal(): int
      {
          if ($this->ordinal === null) {
              $ordinal = 0;
              foreach (self::getMembers() as $constValue) {
                  if ($this->value === $constValue) {
                      break;
                  }
                  $ordinal++;
              }
              $this->ordinal = $ordinal;
          }
  
          return $this->ordinal;
      }
code_tokens: final public function ordinal ( ) : int { if ( $ this -> ordinal === null ) { $ ordinal = 0 ; foreach ( self :: getMembers ( ) as $ constValue ) { if ( $ this -> value === $ constValue ) { break ; } $ ordinal ++ ; } $ this -> ordinal = $ ordinal ; } return $ this -> ordinal ; }
docstring: Retrieves the enum ordinal position
  
  @return int
docstring_tokens: Retrieves the enum ordinal position