Add tests
Small refactoring of PHPDoc,parameters types,...