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.

kerapu.boom.attribuut.Attribuut.Attribuut.tel()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 2
dl 0
loc 10
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
import abc
2
3
from kerapu.boom.boom_parameter import create_boom_parameter, BoomParameter
4 1
from kerapu.lbz.Subtraject import Subtraject
5
6 1
7 1
class Attribuut:
8
    """
9
    Abstract klasse voor attributen.
10 1
    """
11
12
    # ------------------------------------------------------------------------------------------------------------------
13
    def __init__(self, attribuut_id: int, boom_parameter_nummer: int):
14
        """
15
        Object constructor.
16 1
17
        :param int attribuut_id: Het ID van dit attribuut.
18
        :param int boom_parameter_nummer: Het ID van de boomparameter va dit attribuut.
19
        """
20
        self._attribuut_id: int = attribuut_id
21
        """
22
        Het ID van dit attribuut.
23 1
        """
24
25
        self._boom_parameter: BoomParameter = create_boom_parameter(boom_parameter_nummer)
26
        """
27
        De boomparameter van dit attribuut.
28
        """
29 1
30 1
    # ------------------------------------------------------------------------------------------------------------------
31
    @abc.abstractmethod
32
    def tel(self, subtraject: Subtraject) -> int:
33
        """
34
        Geeft het aantal malen dat de boomparameter voldoet aan de voorwaarde van dit attribuut.
35
36
        :param Subtraject subtraject: Het subtraject.
37 1
38 1
        :rtype: int
39
        """
40
        pass
41
42
# ----------------------------------------------------------------------------------------------------------------------
43