| 1 | <?php |
||
| 15 | trait FormattingTrait |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | static $formattingAttributes = ['font-style', 'font-family', 'font-weight', 'font-variant', 'text-decoration', 'vertical-align']; |
||
|
|
|||
| 22 | |||
| 23 | /** |
||
| 24 | * @var ArrayList |
||
| 25 | */ |
||
| 26 | private $formattingOptions; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var bool |
||
| 30 | */ |
||
| 31 | private $stripPeriods = false; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $format; |
||
| 37 | |||
| 38 | protected function initFormattingAttributes(\SimpleXMLElement $node) |
||
| 55 | |||
| 56 | |||
| 57 | protected function format($text) |
||
| 80 | } |
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.