
| Current Path : /var/www/html/rocksensor1/web/core/modules/system/tests/src/Functional/Database/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor1/web/core/modules/system/tests/src/Functional/Database/FakeRecord.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\system\Functional\Database;
/**
* Fetches into a class.
*
* PDO supports using a new instance of an arbitrary class for records
* rather than just a stdClass or array. This class is for testing that
* functionality. (See testQueryFetchClass() below)
*/
class FakeRecord {
/**
* A class variable.
*
* @var int
*/
public $fakeArg;
/**
* The property used in tests.
*
* @see \Drupal\KernelTests\Core\Database\FetchTest
*
* @var string
*/
public string $name;
/**
* The property used in tests.
*
* @see \Drupal\KernelTests\Core\Database\DatabaseTestBase
*
* @var string
*/
public string $job;
/**
* Constructs a FakeRecord object with an optional constructor argument.
*
* @param int $fakeArg
* A class variable.
*/
public function __construct($fakeArg = 0) {
$this->fakeArg = $fakeArg;
}
}