'PhpSpreadsheet: How can I set cell text orientation?

I'm finding a way to set the text orientation while using PhpSpreadsheet.

Like this https://i.stack.imgur.com/SvQnz.png

But the only thing I found is setTextRotation. When I use this method. The result will be https://i.stack.imgur.com/jFUyH.png

How can I set the text orientation like the first image? Thanks for reading!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source