commerce_shipping-8.x-2.0-rc2/src/ShippingService.php
src/ShippingService.php
<?php
namespace Drupal\commerce_shipping;
/**
* Represents a shipping service.
*/
final class ShippingService {
/**
* Constructs a new ShippingService instance.
*
* @param string $id
* The shipping service ID.
* @param string $label
* The shipping service label.
*/
public function __construct(protected string $id, protected string $label) {
}
/**
* Gets the shipping service ID.
*
* @return string
* The shipping service ID.
*/
public function getId() : string {
return $this->id;
}
/**
* Gets the shipping service label.
*
* @return string
* The shipping service label.
*/
public function getLabel() : string {
return $this->label;
}
}
