title: How to initialize PHP constructor fields in Visual Studio Code
body: <p>In Visual Studio Code, If I have the following PHP Class</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  use ...
  
  class MyHelper
  {
    private $logger;
  
    public function __construct(LoggerInterace $logger) {
    //code...
  
    }
  }
  </code></pre>
  
  <p>..Is there a way I can tell that constructor to initialize <code>$this-&gt;logger = $logger</code> without manually typing that out every time?</p>