EasyPostObject
in package
implements
ArrayAccess, Iterator
Interfaces, Classes, Traits and Enums
- ArrayAccess
- Iterator
Table of Contents
- $_apiKey : string
- $_immutableValues : array<string|int, mixed>
- $_retrieveOptions : array<string|int, mixed>
- $_unsavedValues : array<string|int, mixed>
- $_values : array<string|int, mixed>
- $_name : string
- $_parent : string
- __construct() : mixed
- Constructor for EasyPost objects.
- __get() : mixed
- Getter.
- __isset() : bool
- `isset` magic method.
- __set() : mixed
- Standard accessor magic methods.
- __toArray() : array<string|int, mixed>
- Convert object to an array.
- __toJSON() : string
- Convert object to JSON.
- __toString() : string
- Convert object to a string.
- __unset() : mixed
- `unset` magic method.
- constructFrom() : mixed
- Construct from.
- current() : mixed
- Iterator methods.
- key() : mixed
- Iterator methods.
- next() : mixed
- Iterator methods.
- offsetExists() : bool
- ArrayAccess methods.
- offsetGet() : mixed
- ArrayAccess methods.
- offsetSet() : mixed
- ArrayAccess methods.
- offsetUnset() : mixed
- ArrayAccess methods.
- refreshFrom() : mixed
- Refresh from.
- rewind() : void
- Iterator methods.
- valid() : bool
- Iterator methods.
Properties
$_apiKey
protected
string
$_apiKey
$_immutableValues
protected
array<string|int, mixed>
$_immutableValues
$_retrieveOptions
protected
array<string|int, mixed>
$_retrieveOptions
$_unsavedValues
protected
array<string|int, mixed>
$_unsavedValues
$_values
protected
array<string|int, mixed>
$_values
$_name
private
string
$_name
$_parent
private
string
$_parent
Methods
__construct()
Constructor for EasyPost objects.
public
__construct([string $id = null ][, string $apiKey = null ][, string $parent = null ][, string $name = null ]) : mixed
Parameters
- $id : string = null
- $apiKey : string = null
- $parent : string = null
- $name : string = null
Return values
mixed —__get()
Getter.
public
__get(string $k) : mixed
Parameters
- $k : string
Return values
mixed —__isset()
`isset` magic method.
public
__isset(string $k) : bool
Parameters
- $k : string
Return values
bool —__set()
Standard accessor magic methods.
public
__set(string $k, mixed $v) : mixed
Parameters
- $k : string
- $v : mixed
Return values
mixed —__toArray()
Convert object to an array.
public
__toArray([bool $recursive = false ]) : array<string|int, mixed>
Parameters
- $recursive : bool = false
Return values
array<string|int, mixed> —__toJSON()
Convert object to JSON.
public
__toJSON() : string
Return values
string —__toString()
Convert object to a string.
public
__toString() : string
Return values
string —__unset()
`unset` magic method.
public
__unset(string $k) : mixed
Parameters
- $k : string
Return values
mixed —constructFrom()
Construct from.
public
static constructFrom(array<string|int, mixed> $values[, string $class = null ][, string $apiKey = null ][, string $parent = null ][, string $name = null ]) : mixed
Parameters
- $values : array<string|int, mixed>
- $class : string = null
- $apiKey : string = null
- $parent : string = null
- $name : string = null
Return values
mixed —current()
Iterator methods.
public
current() : mixed
Return values
mixed —key()
Iterator methods.
public
key() : mixed
Return values
mixed —next()
Iterator methods.
public
next() : mixed
Return values
mixed —offsetExists()
ArrayAccess methods.
public
offsetExists(string $k) : bool
Parameters
- $k : string
Return values
bool —offsetGet()
ArrayAccess methods.
public
offsetGet(string $k) : mixed
Parameters
- $k : string
Return values
mixed —offsetSet()
ArrayAccess methods.
public
offsetSet(string $k, mixed $v) : mixed
Parameters
- $k : string
- $v : mixed
Return values
mixed —offsetUnset()
ArrayAccess methods.
public
offsetUnset(string $k) : mixed
Parameters
- $k : string
Return values
mixed —refreshFrom()
Refresh from.
public
refreshFrom(array<string|int, mixed> $values, string $apiKey[, bool $partial = false ]) : mixed
Parameters
- $values : array<string|int, mixed>
- $apiKey : string
- $partial : bool = false
Return values
mixed —rewind()
Iterator methods.
public
rewind() : void
Return values
void —valid()
Iterator methods.
public
valid() : bool