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.

Attribuut12.tel()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 9
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 2
dl 0
loc 9
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
from kerapu.boom.attribuut.Attribuut import Attribuut
2
from kerapu.lbz.Subtraject import Subtraject
3
4 1
5 1
class Attribuut12(Attribuut):
6
    """
7
    Klasse voor attributen met toetswijze 1 (gelijk) en waarde type 2 (alfanumeriek).
8 1
    """
9
10
    # ------------------------------------------------------------------------------------------------------------------
11
    def __init__(self, attribuut_id: int, boom_parameter_nummer: int, filter_waarde: str):
12
        """
13
        Object constructor.
14 1
15
        :param int attribuut_id: Het ID van dit attribuut.
16
        :param int boom_parameter_nummer: Het ID van de boomparameter van dit attribuut.
17
        :param str filter_waarde: De filter waarde.
18
        """
19
        Attribuut.__init__(self, attribuut_id, boom_parameter_nummer)
20
21
        self._filter_waarde: str = filter_waarde
22 1
        """
23
        De waarde om dit attribuut the laten vuren.
24 1
        """
25 1
26
    # ------------------------------------------------------------------------------------------------------------------
27
    def tel(self, subtraject: Subtraject) -> int:
28
        """
29
        Geeft het aantal malen dat de boomparameter voldoet aan de voorwaarde van dit attribuut.
30
31
        :param Subtraject subtraject: Het subtraject.
32 1
33
        :rtype: int
34
        """
35
        return self._boom_parameter.tel(self._filter_waarde, subtraject)
36
37
# ----------------------------------------------------------------------------------------------------------------------
38