Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
RestError Class Reference

Public Member Functions

 __construct ($code, $title, $detail=null, $source=null, $status=null)
 
 getStatus ()
 
 getCode ()
 
 getSource ()
 
 getTitle ()
 
 getDetail ()
 
 setStatus ($status)
 
 setCode ($code)
 
 setSource ($source)
 
 setTitle ($title)
 
 setDetail ($detail)
 
 asArray ()
 

Static Public Member Functions

static notFound ($keyValues, $source=null)
 

Private Attributes

 $status
 
 $code
 
 $source
 
 $title
 
 $detail
 

Detailed Description

Definition at line 5 of file RestError.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $code,
  $title,
  $detail = null,
  $source = null,
  $status = null 
)

Definition at line 12 of file RestError.php.

Member Function Documentation

◆ asArray()

asArray ( )

Definition at line 100 of file RestError.php.

◆ getCode()

getCode ( )
Returns
mixed

Definition at line 32 of file RestError.php.

◆ getDetail()

getDetail ( )
Returns
string

Definition at line 56 of file RestError.php.

◆ getSource()

getSource ( )
Returns
string

Definition at line 40 of file RestError.php.

◆ getStatus()

getStatus ( )
Returns
string

Definition at line 24 of file RestError.php.

◆ getTitle()

getTitle ( )
Returns
mixed

Definition at line 48 of file RestError.php.

◆ notFound()

static notFound (   $keyValues,
  $source = null 
)
static

Definition at line 120 of file RestError.php.

◆ setCode()

setCode (   $code)
Parameters
mixed$code

Definition at line 72 of file RestError.php.

◆ setDetail()

setDetail (   $detail)
Parameters
string$detail

Definition at line 96 of file RestError.php.

◆ setSource()

setSource (   $source)
Parameters
string$source

Definition at line 80 of file RestError.php.

◆ setStatus()

setStatus (   $status)
Parameters
string$status

Definition at line 64 of file RestError.php.

◆ setTitle()

setTitle (   $title)
Parameters
mixed$title

Definition at line 88 of file RestError.php.

Field Documentation

◆ $code

$code
private

Definition at line 7 of file RestError.php.

◆ $detail

$detail
private

Definition at line 10 of file RestError.php.

◆ $source

$source
private

Definition at line 8 of file RestError.php.

◆ $status

$status
private

Definition at line 6 of file RestError.php.

◆ $title

$title
private

Definition at line 9 of file RestError.php.


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