The Simpay\Model\Response\ServiceNumber class represents a service number.
| Name | Type | Description |
|---|---|---|
$value |
int | The value of the service number |
public function __construct(int $serviceNumber)This method is the constructor of the Simpay\Model\Response\ServiceNumber class. It takes in one parameter:
$serviceNumber- The value of the service number (int)
It sets the $value property to the corresponding parameter value.
public function __toString(): stringThis method is a magic method that returns the string representation of the ServiceNumber object. It returns the string value of the $value property.
$serviceNumber = new ServiceNumber(12345);
echo $serviceNumber; // 12345