TYPO3 CMS  TYPO3_6-2
Response.php
Go to the documentation of this file.
1 <?php
3 
22 
26  private $exitCode = 0;
27 
36  public function setExitCode($exitCode) {
37  if (!is_integer($exitCode)) {
38  throw new \InvalidArgumentException(sprintf('Tried to set invalid exit code. The value must be integer, %s given.', gettype($exitCode)), 1312222064);
39  }
40  $this->exitCode = $exitCode;
41  }
42 
49  public function getExitCode() {
50  return $this->exitCode;
51  }
52 
59  public function send() {
60  if ($this->content !== NULL) {
61  echo $this->shutdown();
62  }
63  }
64 }