You are here

public function UserStatistics::__construct in Open Social 8.9

Same name and namespace in other branches
  1. 8.8 modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
  2. 10.3.x modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
  3. 10.0.x modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
  4. 10.1.x modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
  5. 10.2.x modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()

Constructor for UserStatistics.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection.

File

modules/social_features/social_profile/src/UserStatistics.php, line 27

Class

UserStatistics
Class UserStatistics.

Namespace

Drupal\social_profile

Code

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