convertValue() публичный Метод

Convert a Datastore value object to a simple value
public convertValue ( string $type, mixed $value ) : mixed
$type string The value type
$value mixed The value
Результат mixed
 public function testReturnsInt64AsObject()
 {
     $int = '914241242';
     $mapper = new EntityMapper('foo', true, true);
     $res = $mapper->convertValue('integerValue', $int);
     $this->assertInstanceOf(Int64::class, $res);
     $this->assertEquals($int, $res->get());
 }