Documentation

Carrier 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

Search results