You are here

class TestService in Drupal 10

Same name in this branch
  1. 10 core/modules/system/tests/modules/services_defaults_test/src/TestService.php \Drupal\services_defaults_test\TestService
  2. 10 core/modules/system/tests/modules/decorated_service_test/src/TestService.php \Drupal\decorated_service_test\TestService
  3. 10 core/modules/system/tests/modules/autowire_test/src/TestService.php \Drupal\autowire_test\TestService
Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/autowire_test/src/TestService.php \Drupal\autowire_test\TestService

Hierarchy

Expanded class hierarchy of TestService

1 file declares its use of TestService
AutowireTest.php in core/tests/Drupal/KernelTests/Core/DependencyInjection/AutowireTest.php

File

core/modules/system/tests/modules/autowire_test/src/TestService.php, line 5

Namespace

Drupal\autowire_test
View source
class TestService {

  /**
   * @var \Drupal\autowire_test\TestInjectionInterface
   */
  protected $testInjection;

  /**
   * @var \Drupal\autowire_test\TestInjection2
   */
  protected $testInjection2;
  public function __construct(TestInjectionInterface $test_injection, TestInjection2 $test_injection2) {
    $this->testInjection = $test_injection;
    $this->testInjection2 = $test_injection2;
  }
  public function getTestInjection() : TestInjectionInterface {
    return $this->testInjection;
  }
  public function getTestInjection2() : TestInjection2 {
    return $this->testInjection2;
  }

}

Members