/** * Accessor for the attribute filler before it is applied to the Comparators * This will compute the union set of attributes using the keys and return an array filled with the filler value specified * @param string $attributeType vector|scalar * @param mixed $replaceWith The value to fill the missing attributes with * @return array */ public function getNormalizedAttributeFiller($attributeType, $replaceWith) { $filler = array_fill_keys(array_keys(array_diff_key($this->a->getAttributes($attributeType), $this->b->getAttributes($attributeType)) + array_diff_key($this->b->getAttributes($attributeType), $this->a->getAttributes($attributeType))), $replaceWith); ksort($filler); return $filler; }