HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/woo-usps-simple-shipping/src/Model/Service.php
<?php declare(strict_types=1);

namespace Dgm\UspsSimple\Model;

use Dgm\UspsSimple\Calc\Dim;


abstract class Service
{
    /**
     * @var ServiceFamily
     */
    public $family;

    /**
     * @var string
     */
    public $title;

    /**
     * @var bool
     */
    public $alwaysUseCommercialRate;

    /**
     * @var bool
     */
    public $enabled;

    /**
     * @var string
     */
    public $id;


    public function __construct(string $title, string $id)
    {
        $this->id = $id;
        $this->title = $title;
    }

    abstract public function matches(string $uspsCode, string $uspsTitle): bool;

    abstract public function fits(Dim $dim): bool;
}