Open Journal Systems  3.3.0
Guzzle\Service\Resource\Model Class Reference
Inheritance diagram for Guzzle\Service\Resource\Model:
Guzzle\Common\Collection Guzzle\Common\ToArrayInterface

Public Member Functions

 __construct (array $data=array(), Parameter $structure=null)
 
 __toString ()
 
 getStructure ()
 
- Public Member Functions inherited from Guzzle\Common\Collection
 __construct (array $data=array())
 
 add ($key, $value)
 
 clear ()
 
 count ()
 
 filter (\Closure $closure, $static=true)
 
 get ($key)
 
 getAll (array $keys=null)
 
 getIterator ()
 
 getKeys ()
 
 getPath ($path, $separator='/', $data=null)
 
 hasKey ($key)
 
 hasValue ($value)
 
 inject ($input)
 
 keySearch ($key)
 
 map (\Closure $closure, array $context=array(), $static=true)
 
 merge ($data)
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 overwriteWith ($data)
 
 remove ($key)
 
 replace (array $data)
 
 set ($key, $value)
 
 setPath ($path, $value)
 
 toArray ()
 

Protected Attributes

 $structure
 
- Protected Attributes inherited from Guzzle\Common\Collection
 $data
 

Additional Inherited Members

- Static Public Member Functions inherited from Guzzle\Common\Collection
static fromConfig (array $config=array(), array $defaults=array(), array $required=array())
 

Detailed Description

Default model created when commands create service description model responses

Definition at line 11 of file Model.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Service\Resource\Model::__construct ( array  $data = array(),
Parameter  $structure = null 
)
Parameters
array$dataData contained by the model
Parameter$structureThe structure of the model

Definition at line 23 of file Model.php.

References Guzzle\Common\Collection\$data, and Guzzle\Service\Resource\Model\$structure.

Member Function Documentation

◆ __toString()

Guzzle\Service\Resource\Model::__toString ( )

Provides debug information about the model object

Returns
string

Definition at line 44 of file Model.php.

References Guzzle\Common\Collection\toArray().

◆ getStructure()

Guzzle\Service\Resource\Model::getStructure ( )

Get the structure of the model

Returns
Parameter

Definition at line 34 of file Model.php.

Field Documentation

◆ $structure

Parameter Guzzle\Service\Resource\Model::$structure
protected

Structure of the model

Definition at line 17 of file Model.php.

Referenced by Guzzle\Service\Resource\Model\__construct().


The documentation for this class was generated from the following file: