Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F427049
HTTPError.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
602 B
Referenced Files
None
Subscribers
None
HTTPError.php
View Options
<?php
namespace
RESTful\Exceptions
;
/**
* Indicates an HTTP level error has occurred. The underlying HTTP response is
* stored as response member. The response payload fields if any are stored as
* members of the same name.
*
* @see \Httpful\Response
*/
class
HTTPError
extends
Base
{
public
$response
;
public
function
__construct
(
$response
)
{
$this
->
response
=
$response
;
$this
->
_objectify
(
$this
->
response
->
body
);
}
protected
function
_objectify
(
$fields
)
{
foreach
(
$fields
as
$key
=>
$val
)
{
$this
->
$key
=
$val
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 3:50 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
58423
Default Alt Text
HTTPError.php (602 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment