Exemplo n.º 1
0
 private function setStatementListFromSerialization(array $serialization, Property $property)
 {
     if (!array_key_exists('claims', $serialization)) {
         return;
     }
     $statements = $this->statementListDeserializer->deserialize($serialization['claims']);
     $property->setStatements($statements);
 }
Exemplo n.º 2
0
 private function patchProperty(Property $property, EntityDiff $patch)
 {
     $this->fingerprintPatcher->patchFingerprint($property->getFingerprint(), $patch);
     $property->setStatements($this->statementListPatcher->getPatchedStatementList($property->getStatements(), $patch->getClaimsDiff()));
 }