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