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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 41
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A Attribuut.__init__() 0 14 1
A Attribuut.tel() 0 10 1
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