ZipAssetsPlugin   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 7
Bugs 1 Features 2
Metric Value
wmc 4
c 7
b 1
f 2
lcom 0
cbo 0
dl 0
loc 42
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A getVersion() 0 4 1
A getDeveloper() 0 4 1
A getDeveloperUrl() 0 4 1
1
<?php
2
3
namespace Craft;
4
5
/**
6
 * Zip Assets Plugin.
7
 *
8
 * Zips up given assets for download.
9
 *
10
 * @author    Bob Olde Hampsink <[email protected]>
11
 * @copyright Copyright (c) 2015, author
12
 * @license   http://buildwithcraft.com/license Craft License Agreement
13
 *
14
 * @link      http://github.com/boboldehampsink
15
 */
16
class ZipAssetsPlugin extends BasePlugin
17
{
18
    /**
19
     * Get plugin name.
20
     *
21
     * @return string
22
     */
23
    public function getName()
24
    {
25
        return Craft::t('Zip Assets');
26
    }
27
28
    /**
29
     * Get plugin version.
30
     *
31
     * @return string
32
     */
33
    public function getVersion()
34
    {
35
        return '1.5.0';
36
    }
37
38
    /**
39
     * Get plugin developer.
40
     *
41
     * @return string
42
     */
43
    public function getDeveloper()
44
    {
45
        return 'Bob Olde Hampsink';
46
    }
47
48
    /**
49
     * Get plugin developer url.
50
     *
51
     * @return string
52
     */
53
    public function getDeveloperUrl()
54
    {
55
        return 'http://www.itmundi.nl';
56
    }
57
}
58