You are here

public function FakeRecord::__construct in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Database/FakeRecord.php \Drupal\Tests\system\Functional\Database\FakeRecord::__construct()

Constructs a FakeRecord object with an optional constructor argument.

Parameters

int $fakeArg: A class variable.

File

core/modules/system/tests/src/Functional/Database/FakeRecord.php, line 27

Class

FakeRecord
Fetches into a class.

Namespace

Drupal\Tests\system\Functional\Database

Code

public function __construct($fakeArg = 0) {
  $this->fakeArg = $fakeArg;
}