Completed
Push — 1.10.x ( 6662c6...ba75a2 )
by Angel Fernando Quiroz
43:43
created

Skype::install()   B

Complexity

Conditions 2
Paths 2

Size

Total Lines 27
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 17
nc 2
nop 0
dl 0
loc 27
rs 8.8571
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
/**
5
 * Create Skype user field
6
 *
7
 * @author Imanol Losada Oriol <[email protected]>
8
 * @package chamilo.plugin.skype
9
 */
10
class Skype extends Plugin
11
{
12
13
    /**
14
     * Class constructor
15
     */
16
    protected function __construct()
17
    {
18
        parent::__construct(
19
            '0.2',
20
            'Imanol Losada Oriol',
21
            [$this->get_lang('ReadTheReadmeFile') => 'html']
22
        );
23
    }
24
25
    /**
26
     * Instance the plugin
27
     * @staticvar null $result
28
     * @return Skype
29
     */
30
    static function create()
31
    {
32
        static $result = null;
33
34
        return $result ? $result : $result = new self();
35
    }
36
}
37