code: public function getFinalBearing(BearingInterface $bearingCalculator): float
      {
          return $bearingCalculator->calculateFinalBearing($this->point1, $this->point2);
      }
docs: @param BearingInterface $bearingCalculator
  
  @return float