function ObjWithString::__toString

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/process/LogTest.php \Drupal\Tests\migrate\Unit\process\ObjWithString::__toString()
  2. 11.x core/modules/migrate/tests/src/Unit/process/LogTest.php \Drupal\Tests\migrate\Unit\process\ObjWithString::__toString()

Returns a string.

Return value

string A string.

File

core/modules/migrate/tests/src/Unit/process/LogTest.php, line 109

Class

ObjWithString
Test class with a __toString() method.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function __toString() {
    return 'a test string';
}

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