text = $text; $this->width = \strlen($text); } /** * @param Excerpt $Excerpt * @param State $State * @return static */ public static function build(Excerpt $Excerpt, State $State) { return new self($Excerpt->text()); } /** @return string */ public function text() { return $this->text; } /** * @return Text */ public function stateRenderable() { return new Text($this->text()); } /** * @return Text */ public function bestPlaintext() { return new Text($this->text()); } }