score = (float)$score; $this->engineName = (string)$engineName; } /** * @param float $score Match confidence, on the same 0-100 scale as the * score stored for an automatic redirect. * @param string $engineName Name of the matching engine that scored it. * @return self */ public static function create(float $score, string $engineName): self { return new self($score, $engineName); } /** @return float */ public function getScore(): float { return $this->score; } /** @return string */ public function getEngineName(): string { return $this->engineName; } }