original_string: public static function fromValue($value)
      {
          $values = static::getValues();
          if (array_key_exists($value, $values)) {
              return new static($values[$value], $value);
          }
          throw new \InvalidArgumentException("No enum constant value '$value' class " . get_called_class());
      }
code: public static function fromValue($value)
      {
          $values = static::getValues();
          if (array_key_exists($value, $values)) {
              return new static($values[$value], $value);
          }
          throw new \InvalidArgumentException("No enum constant value '$value' class " . get_called_class());
      }
code_tokens: public static function fromValue ( $ value ) { $ values = static :: getValues ( ) ; if ( array_key_exists ( $ value , $ values ) ) { return new static ( $ values [ $ value ] , $ value ) ; } throw new \ InvalidArgumentException ( "No enum constant value '$value' class " . get_called_class ( ) ) ; }
docstring: Gets the enum instance for the value
  
  @return Enum
docstring_tokens: Gets the enum instance for the value