TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Mvc\Cli\Response Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Cli\Response:
TYPO3\CMS\Extbase\Mvc\Response TYPO3\CMS\Extbase\Mvc\ResponseInterface

Public Member Functions

 setExitCode ($exitCode)
 
 getExitCode ()
 
 send ()
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Mvc\Response
 setContent ($content)
 
 appendContent ($content)
 
 getContent ()
 
 shutdown ()
 
 __toString ()
 

Private Attributes

 $exitCode = 0
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Extbase\Mvc\Response
 $content = null
 

Detailed Description

A CLI specific response implementation

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

Definition at line 22 of file Response.php.

Member Function Documentation

◆ getExitCode()

TYPO3\CMS\Extbase\Mvc\Cli\Response::getExitCode ( )

Rets the numerical exit code which should be returned when exiting this application.

Returns
int

Definition at line 51 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Response\$exitCode.

◆ send()

TYPO3\CMS\Extbase\Mvc\Cli\Response::send ( )

Renders and sends the whole web response

Returns
void

Definition at line 62 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Response\shutdown().

◆ setExitCode()

TYPO3\CMS\Extbase\Mvc\Cli\Response::setExitCode (   $exitCode)

Sets the numerical exit code which should be returned when exiting this application.

Parameters
int$exitCode
Exceptions

Definition at line 37 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Cli\Response\$exitCode.

Member Data Documentation

◆ $exitCode

TYPO3\CMS\Extbase\Mvc\Cli\Response::$exitCode = 0
private