<?php

{% block file_dockblock %}
/**
 * @file
 * Contains {% block file_path %}{% endblock %}
*/
{% endblock %}

{% block namespace_class %}{% endblock %}

{% block use_class %}{% endblock %}
{% block use_class_services %}
{% if service is defined %}
{% for service in services %}
use {{ service.class }};
{% endfor %}
{% endif %}
{% endblock %}

{% block class_declaration %}{% endblock %}
{
{% block class_properties %}
{% if service is defined %}
{% for service in services %}

  /**
   * @var {{ service.class }}
  */
  protected ${{service.machine_name}};
{% endfor %}
{% endif %}
{% endblock %}

{% block class_construct %}{% endblock %}
{% block class_create %}{% endblock %}
{% block class_methods %}{% endblock %}
}

<?php

{% block file_dockblock %}
/**
 * @file
 * Contains {% block file_path %}{% endblock %}
*/
{% endblock %}

{% block namespace_class %}{% endblock %}

{% block use_class %}{% endblock %}
{% block use_class_services %}
{% if services is defined %}
{% for service in services %}
use {{ service.class }};
{% endfor %}
{% endif %}
{% endblock %}

{% block class_declaration %}{% endblock %}
{
{% block class_properties %}
{% if services is defined %}
{% for service in services %}

  /**
   * @var {{ service.class }}
  */
  protected ${{service.machine_name}};
{% endfor %}
{% endif %}
{% endblock %}

{% block class_construct %}{% endblock %}
{% block class_create %}{% endblock %}
{% block class_methods %}{% endblock %}
}

Rename variable service to services
Rename variable service to services
