1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 10:18:48 +02:00
phorge-phorge/src/aphront/response/AphrontPlainTextResponse.php

26 lines
435 B
PHP
Raw Normal View History

<?php
/**
* @group aphront
*/
final class AphrontPlainTextResponse extends AphrontResponse {
public function setContent($content) {
$this->content = $content;
return $this;
}
public function buildResponseString() {
return $this->content;
}
public function getHeaders() {
$headers = array(
array('Content-Type', 'text/plain'),
);
return array_merge(parent::getHeaders(), $headers);
}
}