Passed
Push — master ( b8186e...ae1300 )
by Julito
08:51
created

Mobidico::install()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
class Mobidico extends Plugin
4
{
5
    public $isCoursePlugin = true;
6
7
    // When creating a new course this settings are added to the course
8
    public $course_settings = [];
9
10
    protected function __construct()
11
    {
12
        parent::__construct(
13
            'O.1',
14
            'Julio Montoya',
15
            [
16
                'tool_enable' => 'boolean',
17
                'api_key' => 'text',
18
                'mobidico_url' => 'text',
19
            ]
20
        );
21
    }
22
23
    /**
24
     * @return Mobidico|null
25
     */
26
    public static function create()
27
    {
28
        static $result = null;
29
30
        return $result ? $result : $result = new self();
31
    }
32
33
    public function install()
34
    {
35
    }
36
37
    public function uninstall()
38
    {
39
    }
40
}
41