public function width(): int
    {
        $lines = explode("\n", $this->value());
        $width = [];

        foreach ($lines as $line) {
            $raw = strip_tags($line);
            $width[] = strlen(trim($raw));
        }

        return max($width);
    }
public function width(): int
    {
        $lines = explode("\n", $this->value());
        $width = [];

        foreach ($lines as $line) {
            $raw = strip_tags($line);
            $width[] = strlen(trim($raw));
        }

        return max($width);
    }
public function width ( ) : int { $ lines = explode ( "\n" , $ this -> value ( ) ) ; $ width = [ ] ; foreach ( $ lines as $ line ) { $ raw = strip_tags ( $ line ) ; $ width [ ] = strlen ( trim ( $ raw ) ) ; } return max ( $ width ) ; }
Devuelve el ancho del token

@return int
Devuelve el ancho del token