think\Response::content PHP 메소드

content() 공개 메소드

设置页面输出内容
public content ( $content )
$content
    public function content($content)
    {
        if (null !== $content && !is_string($content) && !is_numeric($content) && !is_callable([$content, '__toString'])) {
            throw new \InvalidArgumentException(sprintf('variable type error: %s', gettype($content)));
        }
        $this->content = (string) $content;
        return $this;
    }