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.

ZorgInstelling.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 8
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 8
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
from kerapu import clean_code, LEN_ZORG_INSTELLING_CODE
2
3
4 1
class ZorgInstelling:
5
    """
6
    Klasse voor zorginstellingen.
7 1
    """
8
9
    # ------------------------------------------------------------------------------------------------------------------
10
    def __init__(self, zorg_instelling_code: str):
11
        """
12
        Object constructor.
13 1
14
        :param str zorg_instelling_code: De code van deze zorginstelling.
15
        """
16
        self.__zorg_instelling_code: str = clean_code(zorg_instelling_code, LEN_ZORG_INSTELLING_CODE)
17
        """
18
        De code van deze zorginstelling.
19 1
        """
20 1
21
    # ------------------------------------------------------------------------------------------------------------------
22
    def zorg_instelling_aantal(self, zorg_instelling_code: str) -> int:
23
        """
24
        Geeft het aantal malen (met inachtneming van weegfactor) dat deze zorginstelling voldoet aan een
25
        zorginstellingcode.
26
27 1
        :param str zorg_instelling_code: De AGB-code van de zorginstelling.
28
29
        :rtype: int
30
        """
31
        return 1 if self.__zorg_instelling_code == clean_code(zorg_instelling_code, LEN_ZORG_INSTELLING_CODE) else 0
32
33
    # ----------------------------------------------------------------------------------------------------------------------
34