/**
 * Set Paragraph element width
 *
 * @param int $value Paragraph element width.
 *
 * @return self Returns instance of the Paragraph element class.
 *
 * @access public
 */
public function w(int $value): self

Examples

Set Paragraph element width using fluent interface

use function Thermage\paragraph;
use function Thermage\render;

// ...

render( 
  paragraph('Stay RAD!')->w(70)->bgRed()
);

Set Paragraph element width using magic method fluent interface

use function Thermage\paragraph;
use function Thermage\render;

// ...

render( 
  paragraph('Stay RAD!')->w70()->bgRed()
);

Set Paragraph element width using magic classes pipeline

use function Thermage\paragraph;
use function Thermage\render;

// ...

render( 
  paragraph('Stay RAD!', 'w-70 bg-red')
);
Terminal
$ php thermage.php
Stay RAD!

Getting Started

Methods