Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Conversation

@SMilimko
Copy link

This new version of Enum is more powerful than the previous one and more appropriate for OOP. The changes are incompatible with the previous code, so the version is 2.0.0

}

/**
* Returns the name that associated with the current enum value.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sholdn't it be 'Returns the value ...'?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's typo

namespace Saritasa;

/**
* The base class for enums that associated with one string value.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be '... with one numeric value'?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's typo

README.md Outdated
}
}
...
$xor = LogicOperations::XOR(); // will throw InvalidEnumValueException on unknown value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this throws an exception if XOR constant defined in LogicOperations enum?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is old comment. I'll add new code line with non-existing constant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants