LonelyMonkeyClass.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php
  2. 8.9.x core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php
  3. 10 core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php

Namespace

Drupal\error_service_test

File

core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php

View source
<?php

declare (strict_types=1);
namespace Drupal\error_service_test;

use Drupal\Core\Database\Connection;

/**
 * A class with a single dependency.
 */
class LonelyMonkeyClass {
    
    /**
     * The database connection.
     */
    protected Connection $connection;
    public function __construct(Connection $connection) {
        $this->connection = $connection;
    }

}

Classes

Title Deprecated Summary
LonelyMonkeyClass A class with a single dependency.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.