Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
PreviousNext
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2
3namespace GrowthExperiments\HomepageModules\SuggestedEditsComponents;
4
5use OOUI\ButtonWidget;
6
7class PreviousNext extends ButtonWidget {
8
9    /** @inheritDoc */
10    public function __construct( array $config = [] ) {
11        parent::__construct( array_merge(
12            $config,
13            [
14                'icon' => 'arrow' . $config['direction'],
15                'framed' => false,
16                'disabled' => true,
17                'invisibleLabel' => true,
18                'label' => $config['message'],
19                'classes' => $config['hidden'] ? [ 'oo-ui-element-hidden' ] : []
20            ]
21        ) );
22    }
23
24}