title: How to automate property generation for a class in phpstorm?
body: <p>If I implement a class, which gets some services injected, I have to write this bulk of code:</p>
  
  <pre><code>&lt;?php
  namespace Hn\AssetDbBundle\Services;
  
  use Psr\Log\LoggerInterface;
  use Symfony\Bundle\TwigBundle\TwigEngine;
  use Symfony\Component\HttpKernel\KernelInterface;
  
  /**
   * Class SomeNewService
   * @package Hn\AssetDbBundle\Services
   */
  
  class SomeNewService {
      /**
       * @var TwigEngine
       */
      private $engine;
      /**
       * @var KernelInterface
       */
      private $kernel;
      /**
       * @var LoggerInterface
       */
      private $logger;
  
      public function __construct(TwigEngine $engine, KernelInterface $kernel, LoggerInterface $logger) {
          $this-&gt;engine = $engine;
          $this-&gt;kernel = $kernel;
          $this-&gt;logger = $logger;
      }
  }
  </code></pre>
  
  <p>This seems redundant. Is there a way I can reduce the amount of code I have to write? Is there a live template for initializing the fields or can I autogenerate the bulk of this block otherwise?</p>