/**
* Set Heading size
*
* @param int $value Heading size.
*
* @return self Returns instance of the Heading class.
*
* @access public
*/
public function size(int $value): self
Examples
Set Heading size using fluent interface
use function Thermage\heading;
use function Thermage\render;
// ...
render(
heading('Stay RAD!')->size(1)
);
Set Heading size using magic method fluent interface
use function Thermage\heading;
use function Thermage\render;
// ...
render(
heading('Stay RAD!')->size1()
);
Set Heading width using magic classes pipeline
use function Thermage\heading;
use function Thermage\render;
// ...
render(
heading('Stay RAD!', 'size-1')
);
Terminal
$ php thermage.php
Stay RAD!
Getting Started
Methods
- d Set Heading element display style.
- getShortcodes Get Heading element shortcodes instance.
- getTheme Get Heading element theme.
- getValue Get Heading element value.
- render Render Heading element.
- setShortcodes Set Heading element shortcodes instance.
- setTheme Set Heading element theme instance.
- size Set Heading size.
- textAlign Set Heading element text align.
- value Set Heading element value.