content($content); $this->class('dump'); } /** * @param string $command * @param array $parameters * * @return static */ public static function call(string $command, array $parameters = []) { $output = new StringOutput(); Artisan::call($command, $parameters, $output); return static::make($output); } public function dark() { return $this->style('background:#333;color:#fff;'); } public function transparent() { return $this->style('background:transparent!important;color:#fff;'); } public function content($content) { if ($content instanceof StringOutput) { $content = $content->getContent(); } $this->content = &$content; return $this; } public function render() { $style = static::$style; static::$style = null; return <<{$style}
formatHtmlAttributes()}>{$this->content}
EOF; } }