Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 20
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
ExpandTipTree
0.00% covered (danger)
0.00%
0 / 20
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 / 19
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 ExpandTipTree extends TipTree {
6
7    /** @inheritDoc */
8    public function getTree(): array {
9        $steps = [
10            'value' => [ 'main' => [], ],
11            'calm' => [ 'main' => [], ],
12            'rules1' => [ 'main' => [], ],
13            'step1' => [ 'main' => [ $this->getEditMessageTipConfigData() ] ],
14            'step2' => [
15                'main' => [
16                    [
17                        'type' => self::TIP_DATA_TYPE_TITLE,
18                        'data' => [
19                            'title' => $this->extraData['references']['learnMoreLink'] ?? null,
20                            'messageKeyVariant' => '-no-link'
21                        ]
22                    ]
23                ],
24            ],
25            'publish' => [ 'main' => [ $this->getPublishMessageTipConfigData() ], ]
26        ];
27        return $this->maybeAddLearnMoreLinkTipNode( $steps );
28    }
29
30    /** @inheritDoc */
31    protected function getTaskTypeId(): string {
32        return 'expand';
33    }
34}