Carrier
in package
implements
JsonSerializable
Class Carrier - Immutable carrier object.
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $code : string
- The actual **code** that ShipEngine API uses: `fedex`
- $name : string
- The common carrier/provider name: `FedEx`
- __construct() : mixed
- Carrier constructor.
- jsonSerialize() : mixed
- ```json5 { "name": "FedEx", "code": "fedex" } ```
Properties
$code
The actual **code** that ShipEngine API uses: `fedex`
public
string
$code
$name
The common carrier/provider name: `FedEx`
public
string
$name
Methods
__construct()
Carrier constructor.
public
__construct(string $code) : mixed
Parameters
- $code : string
Return values
mixed —jsonSerialize()
```json5 { "name": "FedEx", "code": "fedex" } ```
public
jsonSerialize() : mixed
Specify data which should be serialized to JSON