SilverWare\Flickr\API\FlickrResponse
Represents a response retrieved from the Flickr API.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2018 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class FlickrResponse
{
- // members
- protected $code;
- protected $error;
- protected $status;
- protected $message;
- protected $content;
- // methods
- public void __construct()
- public $this setCode()
- public integer getCode()
- public $this setError()
- public integer getError()
- public $this setStatus()
- public string getStatus()
- public $this setMessage()
- public string getMessage()
- public $this setContent()
- public array getContent()
- public void fromData()
- public mixed get()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Members
protected
- $code
—
integer
The status code returned by the remote API. - $content
—
array
The content of the response received from the remote API. - $error
—
integer
Any error code returned by the remote API. - $message
—
string
Any message received from the remote API. - $status
—
string
The status returned by the remote API.
Methods
public
- __construct() — Constructs the object upon instantiation.
- fromData() — Defines the receiver from the given data array.
- get() — Answers a named value from the content array.
- getCode() — Answers the value of the code attribute.
- getContent() — Answers the value of the content attribute.
- getError() — Answers the value of the error attribute.
- getMessage() — Answers the value of the message attribute.
- getStatus() — Answers the value of the status attribute.
- setCode() — Defines the value of the code attribute.
- setContent() — Defines the value of the content attribute.
- setError() — Defines the value of the error attribute.
- setMessage() — Defines the value of the message attribute.
- setStatus() — Defines the value of the status attribute.