Menu

## WC_Shipping_Shipcloud_Carrier
in package
implements JsonSerializable

class-wc-shipping-shipcloud-carrier.php : 16

### Interfaces, Classes and Traits

JsonSerializable

### Table of Contents

$additional_services : array<string|int, mixed>
$display_name : string
$label_formats : array<string|int, mixed>
$name : string
$package_types : array<string|int, mixed>
$services : array<string|int, mixed>
__construct() : void
  Create new carrier.
get_additional_services() : array<string|int, mixed>
  Get a list of additional services.
get_display_name() : string
  Get the display name.
get_label_formats() : array<string|int, mixed>
  Get a list of label formats.
get_name() : string
  Retrieve the internal name.
get_package_types() : array<string|int, mixed>
  Get package types.
get_services() : array<string|int, mixed>
  Get a list of services.
jsonSerialize() : mixed
  Specify data which should be serialized to JSON.

### Properties

#### $additional_services

class-wc-shipping-shipcloud-carrier.php : 41
`private array<string|int, mixed> $additional_services`

#### $display_name

class-wc-shipping-shipcloud-carrier.php : 21
`private string $display_name`

#### $label_formats

class-wc-shipping-shipcloud-carrier.php : 46
`private array<string|int, mixed> $label_formats`

#### $name

class-wc-shipping-shipcloud-carrier.php : 26
`private string $name`

#### $package_types

class-wc-shipping-shipcloud-carrier.php : 31
`private array<string|int, mixed> $package_types`

#### $services

class-wc-shipping-shipcloud-carrier.php : 36
`private array<string|int, mixed> $services`

### Methods

#### __construct()

class-wc-shipping-shipcloud-carrier.php : 54

Create new carrier.

`public __construct([array<string|int, mixed> $carrier = [] ][, array<string|int, mixed> $services = [] ]) : void`

##### Parameters

$carrier : array<string|int, mixed> = []
$services : array<string|int, mixed> = []

##### Return values

void —

#### get_additional_services()

class-wc-shipping-shipcloud-carrier.php : 90

Get a list of additional services.

`public get_additional_services() : array<string|int, mixed>`

The unordered array contains the internal names of additional services which the carrier offers.

##### Return values

array<string|int, mixed> —

#### get_display_name()

class-wc-shipping-shipcloud-carrier.php : 116

Get the display name.

`public get_display_name() : string`

##### Return values

string —

#### get_label_formats()

class-wc-shipping-shipcloud-carrier.php : 104

Get a list of label formats.

`public get_label_formats() : array<string|int, mixed>`

The unordered array contains the internal names of label formats which the carrier offers.

##### Return values

array<string|int, mixed> —

#### get_name()

class-wc-shipping-shipcloud-carrier.php : 68

Retrieve the internal name.

`public get_name() : string`

##### Return values

string —

#### get_package_types()

class-wc-shipping-shipcloud-carrier.php : 125

Get package types.

`public get_package_types() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

#### get_services()

class-wc-shipping-shipcloud-carrier.php : 79

Get a list of services.

`public get_services() : array<string|int, mixed>`

The unordered array contains the internal names of services which the carrier offers.

##### Return values

array<string|int, mixed> —

#### jsonSerialize()

class-wc-shipping-shipcloud-carrier.php : 136

Specify data which should be serialized to JSON.

`public jsonSerialize() : mixed`

This is done for using the original snake_case keys instead of the camelCase properties.

##### Return values

mixed —

## Search results