| 1 | <?php |
||
| 8 | trait FormattingTrait |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | static $formattingAttributes = ['font-style', 'font-family', 'font-weight', 'font-variant', 'text-decoration', 'vertical-align']; |
||
|
|
|||
| 15 | |||
| 16 | /** |
||
| 17 | * @var ArrayList |
||
| 18 | */ |
||
| 19 | private $formattingOptions; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var bool |
||
| 23 | */ |
||
| 24 | private $stripPeriods = false; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $format; |
||
| 30 | |||
| 31 | protected function initFormattingAttributes(\SimpleXMLElement $node) |
||
| 48 | |||
| 49 | |||
| 50 | protected function format($text) |
||
| 74 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.