Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 23
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
LinkRecommendationTipTree
0.00% covered (danger)
0.00%
0 / 23
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 getTree
0.00% covered (danger)
0.00%
0 / 22
0.00% covered (danger)
0.00%
0 / 1
2
 getTaskTypeId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace GrowthExperiments\HelpPanel\Tips;
4
5class LinkRecommendationTipTree extends TipTree {
6
7    /** @inheritDoc */
8    public function getTree(): array {
9        $steps = [
10            'value' => [
11                'header' => [],
12                'main' => [],
13                'example' => [ [
14                    'type' => self::TIP_DATA_TYPE_PLAIN_MESSAGE,
15                    'data' => [ 'labelKey' =>
16                        'growthexperiments-help-panel-suggestededits-tips-link-recommendation-example-label'
17                    ]
18                ] ],
19                'text' => []
20            ],
21            'calm' => [
22                'header' => [],
23                'main' => []
24            ],
25            'rules1' => [
26                'header' => [],
27                'main' => []
28            ]
29        ];
30        return $this->maybeAddLearnMoreLinkTipNode( $steps, 'calm' );
31    }
32
33    /** @inheritDoc */
34    protected function getTaskTypeId(): string {
35        return 'link-recommendation';
36    }
37}