Add phpdoc to magic methods
Remove primitive types and made exception optional
Merge pull request #259 from MarcelloDuarte/hotfix/phpdoc-object-behavior

Add phpdoc to magic methods