shipcloud PHP Client

LabelVoucher extends AbstractApiObject

LabelVoucher class for label voucher characteristics.

Tags
category

Class

author

Daniel Muenter info@msltns.com

version
0.0.1
since
0.0.1
license

GPL 3 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Table of Contents

$id  : id
$required  : required
$format  : string
File format the label voucher should be in.
$type  : string
Defines the size that the returned label should have.
__construct()  : void
Label constructor.
get_format()  : string
Getter method for format.
get_id()  : string|null
Getter method for id.
get_required_fields()  : array<string|int, mixed>
Getter method for id.
get_type()  : string
Getter method for type.
set_format()  : void
Setter method for format.
set_id()  : void
Setter method for id.
set_type()  : void
Setter method for type.
to_array()  : array<string|int, mixed>
Getter method for parameter array.
to_string()  : string
Getter method for string representation.

Properties

$format

File format the label voucher should be in.

private string $format

$type

Defines the size that the returned label should have.

private string $type

Methods

__construct()

Label constructor.

public __construct(string $format, string $type) : void
Parameters
$format : string
$type : string
Tags
throws
ApiException
Return values
void

get_format()

Getter method for format.

public get_format() : string
Tags
see
LabelFormatType
Return values
string

The label format.

get_id()

Getter method for id.

public get_id() : string|null
Return values
string|null

The id.

get_required_fields()

Getter method for id.

public get_required_fields() : array<string|int, mixed>
Return values
array<string|int, mixed>

The id.

set_id()

Setter method for id.

public set_id(string $id) : void
Parameters
$id : string

The id to set.

Return values
void

to_array()

Getter method for parameter array.

public to_array() : array<string|int, mixed>
Return values
array<string|int, mixed>

The class object as array.

to_string()

Getter method for string representation.

public to_string() : string
Return values
string

The object as string representation.

Search results