Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Response Class Reference
Inheritance diagram for Response:
DataObject

Public Member Functions

 getOutput ()
 
 getExitCode ()
 
 getEscapedCommand ()
 
- Public Member Functions inherited from DataObject
 __construct (array $data=[])
 
 addData (array $arr)
 
 setData ($key, $value=null)
 
 unsetData ($key=null)
 
 getData ($key='', $index=null)
 
 getDataByPath ($path)
 
 getDataByKey ($key)
 
 setDataUsingMethod ($key, $args=[])
 
 getDataUsingMethod ($key, $args=null)
 
 hasData ($key='')
 
 toArray (array $keys=[])
 
 convertToArray (array $keys=[])
 
 toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true)
 
 convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true)
 
 toJson (array $keys=[])
 
 convertToJson (array $keys=[])
 
 toString ($format='')
 
 __call ($method, $args)
 
 isEmpty ()
 
 serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"')
 
 debug ($data=null, &$objects=[])
 
 offsetSet ($offset, $value)
 
 offsetExists ($offset)
 
 offsetUnset ($offset)
 
 offsetGet ($offset)
 

Additional Inherited Members

- Protected Member Functions inherited from DataObject
 _getData ($key)
 
 _underscore ($name)
 
- Protected Attributes inherited from DataObject
 $_data = []
 
- Static Protected Attributes inherited from DataObject
static $_underscoreCache = []
 

Detailed Description

Encapsulates output of shell command

Definition at line 13 of file Response.php.

Member Function Documentation

◆ getEscapedCommand()

getEscapedCommand ( )

Get escaped command

Returns
string @codeCoverageIgnore

Definition at line 43 of file Response.php.

44  {
45  return $this->getData('escaped_command');
46  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ getExitCode()

getExitCode ( )

Get exit code

Returns
int @codeCoverageIgnore

Definition at line 32 of file Response.php.

33  {
34  return $this->getData('exit_code');
35  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ getOutput()

getOutput ( )

Get output

Returns
string @codeCoverageIgnore

Definition at line 21 of file Response.php.

22  {
23  return $this->getData('output');
24  }
getData($key='', $index=null)
Definition: DataObject.php:119

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