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_groep_koppeling.AttribuutGroepKoppeling   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 12
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 AttribuutGroepKoppeling.__init__() 0 14 1
A AttribuutGroepKoppeling.test() 0 10 1
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