Improved PHPDoc for better IDE support.
Fixed a typo in __toString.