Added PHPDoc annotations

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