Phly\Conduit\Http\Response::end PHP Method

end() public method

A completed response should no longer allow manipulation of either headers or the content body. If $data is passed, that data should be written to the response body prior to marking the response as complete.
public end ( string $data = null )
$data string
    public function end($data = null)
    {
        if ($this->complete) {
            return $this;
        }
        if ($data) {
            $this->write($data);
        }
        $new = clone $this;
        $new->complete = true;
        return $new;
    }