thephpleague / climate

PHP's best friend for the terminal.
http://climate.thephpleague.com
MIT License
1.87k stars 123 forks source link

The boldDraw() referenced in the doc, is an unknown method #184

Closed borgogelli closed 2 years ago

borgogelli commented 2 years ago

The doc at https://climate.thephpleague.com/terminal-objects/draw/ shows the following example: $climate->boldDraw('mug'); but that method is missing Regards

mxdpeep commented 2 years ago

$climate->bold()

duncan3dc commented 2 years ago

@borgogelli Almost every method is "missing" as they're dynamically called, the main ones are declared in docblocks (using @method) but for compound ones (like boldDraw) there are far too many possible combinations to define them all. If you want to use the declared methods then you could do $climate->bold()->draw('mug') instead