
| Current Path : /var/www/html/store/web/modules/contrib/commerce_shipping/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/modules/contrib/commerce_shipping/src/ShippingService.php |
<?php
namespace Drupal\commerce_shipping;
/**
* Represents a shipping service.
*/
final class ShippingService {
/**
* The shipping service ID.
*
* @var string
*/
protected $id;
/**
* The shipping service label.
*
* @var string
*/
protected $label;
/**
* Constructs a new ShippingService instance.
*
* @param string $id
* The shipping service ID.
* @param string $label
* The shipping service label.
*/
public function __construct($id, $label) {
$this->id = $id;
$this->label = $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;
}
}