Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 22
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
UpdateTipTree
0.00% covered (danger)
0.00%
0 / 22
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 / 21
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 UpdateTipTree extends TipTree {
6
7    /** @inheritDoc */
8    public function getTree(): array {
9        $steps = [
10            'value' => [ 'main' => [], 'example' => [] ],
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' => [
26                'main' => [ $this->getPublishMessageTipConfigData() ],
27            ]
28        ];
29        return $this->maybeAddLearnMoreLinkTipNode( $steps );
30    }
31
32    /** @inheritDoc */
33    protected function getTaskTypeId(): string {
34        return 'update';
35    }
36}