You are here

public function LonelyMonkeyClass::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php \Drupal\error_service_test\LonelyMonkeyClass::__construct()
  2. 9 core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php \Drupal\error_service_test\LonelyMonkeyClass::__construct()

File

core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php, line 12

Class

LonelyMonkeyClass
A class with a single dependency.

Namespace

Drupal\error_service_test

Code

public function __construct(Connection $connection) {
  $this->connection = $connection;
}