/**
 * Set Paragraph element border style.
 *
 * @param string $value Paragraph border style value.
 *
 * @return self Returns instance of the Paragraph element class.
 *
 * @access public
 */
public function border(string $value): self

Examples

Set border style using fluent interface

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

// ...

render( 
  paragraph('Stay RAD!')->border('square')
);

Set border style using magic method fluent interface

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

// ...

render( 
  paragraph('Stay RAD!')->borderSquare()
);

Set border style using magic classes pipeline

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

// ...

render( 
  paragraph('Stay RAD!', 'border-square')
);
Terminal
$ php thermage.php
Stay RAD!

You can set border style square, rounded, double, heavy.

Getting Started

Methods