codeguy/Slim — pull request #671 by dongilbert (2013-11-06 21:38:43+00:00)
Title: Add property typehints for proper IDE support.

With the introduction of the Resource Locator in 2.3.0, we are able to directly access the `response`, `request`, `environment` and `router` (and others?) properties on a `Slim\Slim` app object. This is really great for chaining, as it removes the unnecessary `()`.

The downside of this, however, is that in most IDE's you lose the code completion that come with specifying the return type. You can get around this by using the old style syntax `->request()`, `->response()`, but then we're right back where we're started.

This PR proposed to add support specifically for IDE's to restore code completion abilities.

`@property` is supported by Netbeans, PHPStorm, PDT, ZendStudio, Eclipse and possibly others. (I think anything based on IntelliJ)