Releases: Dreamscapes/Enumeration
1.0.0
The API is now stable, bugs fixed and features implemented -> good to go for 1.0.0! More semantic methods may be added later, depending or use cases or pull requests.
Changes
- [new] Added several semantic aliases to existing methods
- [new] Code coverage tracking via Coveralls.io
- [new] Switched to the clean template for API docs
- [new] Testing (and thus, support) for PHP 5.6
- [fix] Fix return by reference error in Enumeration::getType()
- [dev] Updated project dependencies to latest versions
0.3.3
Version 0.3.3 (2014-07-09)
New features / changes
- Follow PSR-2 coding style
0.3.2
Version 0.3.2 ( 2014-01-12 )
This maintenance update upgrades internal development dependencies for testing & documentation generation and adds a shiny new dependency status badge to README.md
0.3.1
Version 0.3.1 ( 2013-11-30 )
This maintenance update upgrades internal development dependencies for testing & documentation generation and also fixes installation instructions in the README.md file.
0.3
Version 0.3 ( 2013-11-25 )
This version brings an important new feature: type hinting for your Enumerations!
Example:
class Animal extends \Dreamscapes\Enumeration
{
const Horse = 1;
const Dog = 2;
}
// Type-hint an Enumeration in your list of parameters!
function myFunction(Animal $animal)
{
// Such members can also be represented as strings easily
echo $animal;
}
// To pass the type hint:
myFunction(Animal::Horse()); // prints (string)"Horse"
Of course, you can still use a simple Animal::Horse
if you do not need this functionality.
Fixes
- Trigger PHP error when accessing undefined Enumeration members instead of silently ignoring such actions
0.2
Version 0.2 ( 2013-10-28 )
The repo has been moved under a dedicated company account and I decided to reflect that change also in the namespace declaration (Enumeration\Enumeration -> Dreamscapes\Enumeration).
Other than the rename, there are no new changes.
0.1.1
Version 0.1.1 ( 2013-10-28 )
The repository has been moved to a brand new team account, Dreamscapes. Other than that, no changes worth mentioning since the original release a day ago.:)
Enjoy!
0.1
Version 0.1 ( 2013-10-27 )
The initial release of Enumerations. Enjoy!