Could you add those vars as properties of this class eg:

```php
/**
 * @var Session
 */
protected $session;
```