private function getSerialized(StringQuery $query) { return 'string[' . $query->getPropertyId()->getNumericId() . ':"' . $query->getStringValue()->getValue() . '"]'; }
public function testGetPropertyId() { $query = new StringQuery(new PropertyId('P42'), new StringValue('foo')); $this->assertEquals(new PropertyId('P42'), $query->getPropertyId()); }