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.

AttribuutGroepKoppeling.test()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 2
dl 0
loc 10
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
import abc
2
3
from kerapu.boom.attribuut.Attribuut import Attribuut
4 1
from kerapu.lbz.Subtraject import Subtraject
5
6 1
7 1
class AttribuutGroepKoppeling:
8
    """
9
    Abstract klasse voor attribuutgroepkoppelingen.
10 1
    """
11
12
    # ------------------------------------------------------------------------------------------------------------------
13
    def __init__(self, attribute_groep_id: int, attribuut: Attribuut):
14
        """
15
        Object constructor.
16 1
17
        :param int attribute_groep_id: Het ID van deze koppeling.
18
        :param Attribuut attribuut: Het attribuut van deze koppeling.
19
        """
20
        self._attribute_groep_id: int = attribute_groep_id
21
        """
22
        Het ID van deze attribuutgroepkoppeling.
23 1
        """
24
25
        self._attribuut: Attribuut = attribuut
26
        """
27
        Het attribuut van deze koppeling.
28
        """
29
30 1
    # ------------------------------------------------------------------------------------------------------------------
31 1
    @abc.abstractmethod
32
    def test(self, subtraject: Subtraject) -> bool:
33
        """
34
        Test of een subtraject voldoet aan een attribuutgroepkoppeling.
35
36
        :param Subtraject subtraject: Het subtraject.
37
38 1
        :rtype: bool
39 1
        """""
40
        pass
41
42
# ----------------------------------------------------------------------------------------------------------------------
43