code style fix, added missing type hints and updated php docs
Merge pull request #2 from sobit/master

code style fix, added missing type hints and updated php docs