added __invoke and __set_state
updated composer.json