Passed
Push — main ( 9a81fe...875825 )
by Rafael
41:55
created

AvailabilitiesLine   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/* Copyright (C) 2017       Laurent Destailleur     <[email protected]>
4
 * Copyright (C) 2022       Alice Adminson          <[email protected]>
5
 * Copyright (C) 2024       Frédéric France         <[email protected]>
6
 * Copyright (C) 2024		MDW						<[email protected]>
7
 * Copyright (C) 2024       Rafael San José         <[email protected]>
8
 *
9
 * This program is free software; you can redistribute it and/or modify
10
 * it under the terms of the GNU General Public License as published by
11
 * the Free Software Foundation; either version 3 of the License, or
12
 * (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21
 */
22
23
namespace DoliModules\BookCal\Model;
24
25
use DoliCore\Base\GenericDocumentLine;
26
use DoliDB;
27
28
/**
29
 * Class AvailabilitiesLine. You can also remove this and generate a CRUD class for lines objects.
30
 */
31
class AvailabilitiesLine extends GenericDocumentLine
32
{
33
    // To complete with content of an object AvailabilitiesLine
34
    // We should have a field rowid, fk_availabilities and position
35
36
    /**
37
     * @var int  Does object support extrafields ? 0=No, 1=Yes
38
     */
39
    public $isextrafieldmanaged = 0;
40
41
    /**
42
     * Constructor
43
     *
44
     * @param DoliDB $db Database handler
45
     */
46
    public function __construct(DoliDB $db)
47
    {
48
        $this->db = $db;
49
    }
50
}
51