| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class JbbCodeSmileyVisitor extends JbbCodeTextVisitor |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var \Saito\Smiley\SmileyRenderer |
||
| 25 | */ |
||
| 26 | protected $renderer; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritDoc} |
||
| 30 | */ |
||
| 31 | public function __construct(ParserHelper $Helper, MarkupSettings $_sOptions) |
||
| 32 | { |
||
| 33 | parent::__construct($Helper, $_sOptions); |
||
| 34 | |||
| 35 | $smiliesData = $Helper->getView()->get('smiliesData'); |
||
| 36 | $this->renderer = (new SmileyRenderer($smiliesData)) |
||
| 37 | ->setHelper($Helper->Html); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritDoc} |
||
| 42 | */ |
||
| 43 | protected function _processTextNode($string, $node) |
||
| 46 | } |
||
| 47 | } |
||
| 48 |