function FakeRecord::__construct

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/Database/FakeRecord.php \Drupal\Tests\system\Functional\Database\FakeRecord::__construct()
  2. 11.x 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 47

Class

FakeRecord
Fetches into a class.

Namespace

Drupal\Tests\system\Functional\Database

Code

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

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