GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

SpecialismeCode.tel()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 11
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 3
dl 0
loc 11
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
from kerapu.boom.boom_parameter.BoomParameter import BoomParameter
2
from kerapu.lbz.Subtraject import Subtraject
3
4 1
5 1
class SpecialismeCode(BoomParameter):
6
    """
7
    Klasse voor boomparameter specialismecode.
8 1
9
    Boomparameternummer: 200.
10
    """
11
12
    # ------------------------------------------------------------------------------------------------------------------
13
    def tel(self, specialisme_code: str, subtraject: Subtraject) -> int:
14
        """
15
        Geeft het aantal malen (d.w.z. 0 of 1) dat het uitvoerend specialisme van een subtraject voldoet aan een
16 1
        specialismecode.
17
18
        :param str specialisme_code: De specialismecode.
19
        :param Subtraject subtraject: Het subtraject.
20
21
        :rtype: int
22
        """
23
        return subtraject.telling_specialisme(specialisme_code)
24
25
# ----------------------------------------------------------------------------------------------------------------------
26