private function serializeFingerPrints($value) { if ($this->isTree($value)) { $pieces = array(); foreach ($value as $key => $subvalue) { $pieces[] = $this->escape($this->keyFingerPrinter->fingerPrint($key)); $pieces[] = $this->escape($this->serializeFingerPrints($subvalue)); } return implode(':', $pieces); } return $this->valueFingerPrinter->fingerPrint($value); }
/** * @param mixed $value The value to be fingerpinted * @return mixed The fingerprint */ public function fingerPrint($value) { $callback = $this->getTransformation(); return $this->fingerPrinter->fingerPrint($callback($value)); }
/** * @param mixed $value The value to be fingerpinted * @return mixed The fingerprint */ public function fingerPrint($value) { return $this->prefix . (string) $this->fingerPrinter->fingerPrint($value); }