Equivalent for addLineClass in CM6

Hi,

I could not find an equivalent for addLineClass in the migration guide. What can I use in CM6 to have the same behavior?

Line decorations are used for this.

Ah perfect, thank you very much!