MultipleUrlsPurgeCommandsProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 16
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommandArray() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * File:MultipleUrlsPurgeCommandsProvider.php
7
 *
8
 * @author Maciej Sławik <[email protected]>
9
 * @copyright Copyright (C) 2019 Lizard Media (http://lizardmedia.pl)
10
 */
11
12
namespace LizardMedia\VarnishWarmer\Model\FormDataProvider;
13
14
/**
15
 * Class MultipleUrlsPurgeCommandsProvider
16
 * @package LizardMedia\VarnishWarmer\Model\FormDataProvider
17
 */
18
final class MultipleUrlsPurgeCommandsProvider
19
{
20
    /**
21
     * @return array
22
     */
23
    public function getCommandArray(): array
24
    {
25
        return [
26
            'lizardmediavarnish/purge/purgehomepage' => __('Varnish: purge HP'),
27
            'lizardmediavarnish/purge/purgegeneral' => __('Varnish: purge HP, Categories'),
28
            'lizardmediavarnish/purge/purgeall' => __('Varnish: purge HP, Categories, Products (long)'),
29
            'lizardmediavarnish/purge/purgewildcard' => __('Varnish: purge * (longest)'),
30
            'lizardmediavarnish/purge/purgewildcardforce' => __('Varnish: purge * (force)')
31
        ];
32
    }
33
}
34