lithium\net\Message::body PHP Method

body() public method

Add body parts and compile the message body.
public body ( mixed $data = null, array $options = [] ) : array
$data mixed
$options array - `'buffer'` _integer_: split the body string
return array
    public function body($data = null, $options = array())
    {
        $default = array('buffer' => null);
        $options += $default;
        $this->body = array_merge((array) $this->body, (array) $data);
        $body = join("\r\n", $this->body);
        return $options['buffer'] ? str_split($body, $options['buffer']) : $body;
    }