You are here

public function ShippingService::__construct in Commerce Shipping 8.2

Constructs a new ShippingService instance.

Parameters

string $id: The shipping service ID.

string $label: The shipping service label.

File

src/ShippingService.php, line 32

Class

ShippingService
Represents a shipping service.

Namespace

Drupal\commerce_shipping

Code

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