Passed
Push — master ( 8a423f...9c95d4 )
by Joe Nilson
01:52
created

NCFVentas   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 14
dl 0
loc 67
rs 10
c 1
b 0
f 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A primaryColumn() 0 3 1
A tableName() 0 3 1
A install() 0 5 1
1
<?php
2
/**
3
 * Copyright (C) 2020 Joe Nilson <joenilson at gmail dot com>
4
 * 
5
 * fsRepublicaDominicana is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU Lesser General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 * 
10
 * fsRepublicaDominicana is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU Lesser General Public License for more details.
14
 * 
15
 * You should have received a copy of the GNU Lesser General Public License
16
 * along with fsRepublicaDominicana. If not, see <http://www.gnu.org/licenses/>.
17
 */
18
19
namespace FFacturaScripts\Plugins\fsRepublicaDominicana\Model;
20
21
use FacturaScripts\Core\Base\DataBase;
0 ignored issues
show
Bug introduced by
The type FacturaScripts\Core\Base\DataBase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
use FacturaScripts\Core\Model\Base;
0 ignored issues
show
Bug introduced by
The type FacturaScripts\Core\Model\Base was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
23
24
/**
25
 * Description of NCFVentas
26
 *
27
 * @author "Joe Nilson <joenilson at gmail dot com>"
28
 */
29
class NCFVentas extends Base\ModelClass
0 ignored issues
show
Bug introduced by
The type FacturaScripts\Core\Model\Base\ModelClass was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
30
{
31
    use Base\ModelTrait;
0 ignored issues
show
Bug introduced by
The type FacturaScripts\Core\Model\Base\ModelTrait was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
32
    
33
    /**
34
     * Movement Class can be sum or rest suma|resta
35
     * @var string
36
     */
37
    public $clasemovimiento;
38
    /**
39
     * If the NCF Type is about purchase movement then must to have an X as value
40
     * @var string
41
     */
42
    public $compras;
43
    /**
44
     * If the NCF Type is about regular sales or purchase movements then must to have an X as value
45
     * @var string
46
     */
47
    public $contribuyente;
48
    /**
49
     * The description of the NCF Type
50
     * @var string
51
     */
52
    public $descripcion;
53
    /**
54
     * The status of the record
55
     * @var bool 
56
     */
57
    public $estado;
58
    /**
59
     * If the NCF Type is about sales movement then must to have an X as value
60
     * @var string
61
     */
62
    public $ventas;
63
    /**
64
     * This is the key value that contains the two code type of document
65
     * @var string 
66
     */
67
    public $tipocomprobante;
68
    
69
    /**
70
     * 
71
     * @return string
72
     */
73
    public static function primaryColumn()
74
    {
75
        return 'ncf';
76
    }
77
    
78
    /**
79
     * 
80
     * @return string
81
     */
82
    public static function tableName()
83
    {
84
        return 'rd_ncfventas';
85
    }
86
    
87
    /**
88
     * 
89
     * @return string
90
     */
91
    public function install() 
92
    {
93
        parent::install();
94
        $sql = "";
95
        return($sql);
96
    }
97
}
98