
| Current Path : /var/www/html/rocksensor1/web/core/modules/system/tests/modules/autowire_test/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/core/modules/system/tests/modules/autowire_test/src/TestService.php |
<?php
namespace Drupal\autowire_test;
use Drupal\Core\Database\Connection;
use Drupal\Core\DrupalKernelInterface;
class TestService {
/**
* @var \Drupal\autowire_test\TestInjectionInterface
*/
protected $testInjection;
/**
* @var \Drupal\autowire_test\TestInjection2
*/
protected $testInjection2;
/**
* The database connection.
*/
protected $database;
/**
* The Drupal kernel.
*/
protected $kernel;
public function __construct(TestInjectionInterface $test_injection, TestInjection2 $test_injection2, Connection $database, DrupalKernelInterface $kernel, protected TestInjectionInterface $testInjection3) {
$this->testInjection = $test_injection;
$this->testInjection2 = $test_injection2;
$this->database = $database;
$this->kernel = $kernel;
}
public function getTestInjection(): TestInjectionInterface {
return $this->testInjection;
}
public function getTestInjection2(): TestInjection2 {
return $this->testInjection2;
}
public function getTestInjection3(): TestInjection3 {
return $this->testInjection3;
}
public function getDatabase(): Connection {
return $this->database;
}
public function getKernel(): DrupalKernelInterface {
return $this->kernel;
}
}