Example #1
0
 /**
  * Sets the context for fingerprint calculation
  *
  * @param Context $context
  * @return Fingerprint
  */
 public function setContext(Context $context)
 {
     $this->context = $context;
     if (empty($this->parameters['secret'])) {
         $this->parameters['secret'] = $context->getSecret();
     }
     return $this;
 }