public function processAssoc(NodeInterface $node, array $mapping, array $assoc)
{
$isNull = function ($item) {
return null === $item;
};
$isNotNull = function ($item) {
return null !== $item;
};
$keys = array_keys($assoc);
$values = array_values(array_filter($assoc, $isNotNull));
$nulls = array_keys(array_filter($assoc, $isNull));
if (empty($keys)) {
$this->removeAssoc($node, $mapping);
} else {
$node->setProperty($mapping['assoc'], $keys, PropertyType::STRING);
$node->setProperty($mapping['assocNulls'], $nulls, PropertyType::STRING);
}
return $values;
}