public function setBody($text)
    {
        if (is_string($text)) {
            $this->lines = explode("\n", $text);
        } elseif (is_array($text)) {
            $this->lines = $text;
        } else {
            throw new InvalidArgumentTypeException('Invalid body type', $text, array('string', 'array'));
        }
    }
public function setBody($text)
    {
        if (is_string($text)) {
            $this->lines = explode("\n", $text);
        } elseif (is_array($text)) {
            $this->lines = $text;
        } else {
            throw new InvalidArgumentTypeException('Invalid body type', $text, array('string', 'array'));
        }
    }
public function setBody ( $ text ) { if ( is_string ( $ text ) ) { $ this -> lines = explode ( "\n" , $ text ) ; } elseif ( is_array ( $ text ) ) { $ this -> lines = $ text ; } else { throw new InvalidArgumentTypeException ( 'Invalid body type' , $ text , array ( 'string' , 'array' ) ) ; } }
Allow text can be set with array
Allow text can be set with array