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

Inheritance diagram for SlothResponse

Public Member Functions

 __construct (Sloth $sloth, int $status=200, array $headers=[])
 
 getSloth ()
 
 setContent (?string $content)
 
 getContent ()
 
 sendContent ()
 

Protected Attributes

 $sloth
 
 $isRendered = false
 

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getSloth()

getSloth ( )

Implements SlothBasedResponse.

◆ setContent()

setContent ( ?string  $content)

◆ getContent()

getContent ( )

◆ sendContent()

sendContent ( )

Member Data Documentation

◆ $sloth

$sloth
protected

◆ $isRendered

$isRendered = false
protected