inliner = CssInliner::fromHtml($unprocessed_html); return $that; } public function inline_css(string $css = ''): self {// phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps -- we need to match the interface if (!isset($this->inliner)) { throw new \LogicException('You must call from_html before calling inline_css'); } $this->inliner->inlineCss($css); return $this; } public function render(): string { if (!isset($this->inliner)) { throw new \LogicException('You must call from_html before calling inline_css'); } return $this->inliner->render(); } }