PHP Class EasyPost\Object

Inheritance: implements ArrayAccess
Afficher le fichier Open project: easypost/easypost-php

Protected Properties

Свойство Type Description
$_apiKey string
$_immutableValues array
$_retrieveOptions array
$_unsavedValues array
$_values array

Méthodes publiques

Méthode Description
__construct ( string $id = null, string $apiKey = null, string $parent = null, string $name = null ) constructor
__get ( string $k ) : mixed getter
__isset ( string $k ) : boolean isset magic method
__set ( string $k, mixed $v ) Standard accessor magic methods
__toArray ( boolean $recursive = false ) : array convert object to an array
__toJSON ( ) : string convert object to JSON
__toString ( ) : string convert object to a string
__unset ( string $k ) unset magic method
constructFrom ( array $values, string $class = null, string $apiKey = null, string $parent = null, string $name = null ) : mixed construct from
current ( ) : mixed Iterator methods
key ( ) : mixed Iterator methods
next ( ) : mixed Iterator methods
offsetExists ( string $k ) : boolean ArrayAccess methods
offsetGet ( string $k ) : mixed ArrayAccess methods
offsetSet ( string $k, mixed $v ) ArrayAccess methods
offsetUnset ( string $k ) ArrayAccess methods
refreshFrom ( array $values, string $apiKey, boolean $partial = false ) refresh from
rewind ( ) : void Iterator methods
valid ( ) : boolean Iterator methods

Method Details

__construct() public méthode

constructor
public __construct ( string $id = null, string $apiKey = null, string $parent = null, string $name = null )
$id string
$apiKey string
$parent string
$name string

__get() public méthode

getter
public __get ( string $k ) : mixed
$k string
Résultat mixed

__isset() public méthode

isset magic method
public __isset ( string $k ) : boolean
$k string
Résultat boolean

__set() public méthode

Standard accessor magic methods
public __set ( string $k, mixed $v )
$k string
$v mixed

__toArray() public méthode

convert object to an array
public __toArray ( boolean $recursive = false ) : array
$recursive boolean
Résultat array

__toJSON() public méthode

convert object to JSON
public __toJSON ( ) : string
Résultat string

__toString() public méthode

convert object to a string
public __toString ( ) : string
Résultat string

__unset() public méthode

unset magic method
public __unset ( string $k )
$k string

constructFrom() public static méthode

construct from
public static constructFrom ( array $values, string $class = null, string $apiKey = null, string $parent = null, string $name = null ) : mixed
$values array
$class string
$apiKey string
$parent string
$name string
Résultat mixed

current() public méthode

Iterator methods
public current ( ) : mixed
Résultat mixed

key() public méthode

Iterator methods
public key ( ) : mixed
Résultat mixed

next() public méthode

Iterator methods
public next ( ) : mixed
Résultat mixed

offsetExists() public méthode

ArrayAccess methods
public offsetExists ( string $k ) : boolean
$k string
Résultat boolean

offsetGet() public méthode

ArrayAccess methods
public offsetGet ( string $k ) : mixed
$k string
Résultat mixed

offsetSet() public méthode

ArrayAccess methods
public offsetSet ( string $k, mixed $v )
$k string
$v mixed

offsetUnset() public méthode

ArrayAccess methods
public offsetUnset ( string $k )
$k string

refreshFrom() public méthode

refresh from
public refreshFrom ( array $values, string $apiKey, boolean $partial = false )
$values array
$apiKey string
$partial boolean

rewind() public méthode

Iterator methods
public rewind ( ) : void
Résultat void

valid() public méthode

Iterator methods
public valid ( ) : boolean
Résultat boolean

Property Details

$_apiKey protected_oe property

protected string $_apiKey
Résultat string

$_immutableValues protected_oe property

protected array $_immutableValues
Résultat array

$_retrieveOptions protected_oe property

protected array $_retrieveOptions
Résultat array

$_unsavedValues protected_oe property

protected array $_unsavedValues
Résultat array

$_values protected_oe property

protected array $_values
Résultat array