<?php

namespace App\Model;

class BasePrice
{
    private $basePrice = 0;

    public function getBasePrice(): float
    {
        return $this->basePrice;
    }

    public function setBasePrice(float $basePrice): void
    {
        $this->basePrice = $basePrice;
    }

    public function getRawPrice(string $price): float
    {
        $price = preg_replace('/[^0-9.]/', '', $price);
        return (floatval($price));
    }

}