Countries::getSource()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 2
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace Canvas\Models;
5
6
class Countries extends AbstractModel
7
{
8
    /**
9
     *
10
     * @var integer
11
     */
12
    public $id;
13
14
    /**
15
     *
16
     * @var string
17
     */
18
    public $name;
19
20
    /**
21
     *
22
     * @var string
23
     */
24
    public $flag;
25
26
27
    /**
28
     * Initialize method for model.
29
     */
30
    public function initialize()
31
    {
32
        $this->setSource('countries');
33
    }
34
35
    /**
36
     * Returns table name mapped in the model.
37
     *
38
     * @return string
39
     */
40
    public function getSource() : string
41
    {
42
        return 'countries';
43
    }
44
}
45