title: How can I create a PHPDoc for magic properties outside of the class definition?
body: <p>PHPDoc provides the <a href="http://phpdoc.org/docs/latest/references/phpdoc/tags/var.html" rel="noreferrer"><code>@var</code> tag</a>, which should work even for variables declared outside of a class.</p>
  
  <p>However, this does not seem to work if I define the variable as a magic member of an object:</p>
  
  <pre><code>/** @var $app-&gt;translator \Fortress\MessageTranslator */
  $app-&gt;translator = new \Fortress\MessageTranslator();
  </code></pre>
  
  <p>Where <code>$app</code> is a <a href="http://www.slimframework.com" rel="noreferrer">Slim</a> object that supports arbitrary property assignment via magic setters and getters.</p>
  
  <p>I know that I could add it to <code>Slim</code> itself via the <code>@property</code> tag, but then I would need to change the core <code>Slim</code> code every time I create a new property.</p>
  
  <p>Does PHPDoc support this kind of dynamic property documenting?</p>