Added PHPDoc annotations

I use PHPStorm :heart:  and it really annoying that it doesn't know the types of different classes. This PR fixes it.