Completed
Push — master ( 755bea...f3c405 )
by Andrés
03:44
created

Divipola   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getColumns() 0 9 1
A getDatasetIdentifier() 0 4 1
1
<?php
2
3
namespace Andreshg112\DatosAbiertos\Datasets;
4
5
/**
6
 * https://www.datos.gov.co/Mapas-Nacionales/DIVIPOLA-Codigos-municipios/gdxc-w37w
7
 *
8
 * @method array|null getByCodMpio(string $value) Consulta los datos de un municipio por su código.
9
 */
10
class Divipola extends BaseDataset
11
{
12
    public function getColumns()
13
    {
14
        return [
15
            ['name' => 'cod_depto'],
16
            ['name' => 'cod_mpio', 'unique' => true],
17
            ['name' => 'dpto'],
18
            ['name' => 'nom_mpio'],
19
        ];
20
    }
21
22
    protected function getDatasetIdentifier()
23
    {
24
        return 'gdxc-w37w';
25
    }
26
}
27