Update AnnotationsBag.php

refactor the class and added the JsonSerializable interface
Merge pull request #10 from beneditocarlos/desenv

AnnotationsBag implements \JsonSerializable interface