private function getSerialized(ClaimQuery $query)
 {
     $text = 'claim[' . $query->getPropertyId()->getNumericId();
     if ($query->getItemId() !== null) {
         $text .= ':' . $query->getItemId()->getNumericId();
     }
     return $text . ']';
 }
예제 #2
0
 public function testGetType()
 {
     $query = new ClaimQuery(new PropertyId('P42'));
     $this->assertEquals('claim', $query->getType());
 }