class ObjWithString in Drupal 10
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Unit/process/LogTest.php \Drupal\Tests\migrate\Unit\process\ObjWithString
Test class with a __toString() method.
Hierarchy
- class \Drupal\Tests\migrate\Unit\process\ObjWithString
Expanded class hierarchy of ObjWithString
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ LogTest.php, line 99
Namespace
Drupal\Tests\migrate\Unit\processView source
class ObjWithString {
/**
* Returns a string.
*
* @return string
* A string.
*/
public function __toString() {
return 'a test string';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ObjWithString:: |
public | function | Returns a string. |