Template Sloth
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
SlothStreamedResponse Class Reference

Inheritance diagram for SlothStreamedResponse

Public Member Functions

 __construct (Sloth $sloth, int $status=200, array $headers=[])
 
 getSloth ()
 
 setCallback (callable $callback)
 

Static Public Member Functions

static create ($callback=null, int $status=200, array $headers=[])
 

Protected Attributes

 $sloth
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Sloth  $sloth,
int  $status = 200,
array  $headers = [] 
)

Member Function Documentation

◆ getSloth()

getSloth ( )

Implements SlothBasedResponse.

◆ create()

static create (   $callback = null,
int  $status = 200,
array  $headers = [] 
)
static

◆ setCallback()

setCallback ( callable  $callback)

Member Data Documentation

◆ $sloth

$sloth
protected