ConstantWorker.execute()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
from abc import ABC
2
3
4
class ConstantWorker(ABC):
5
    """
6
    Interface for classes that implement the actual execution of the constant command.
7
    """
8
9
    # ------------------------------------------------------------------------------------------------------------------
10
    def execute(self) -> int:
11
        """
12
        Does the actual execution of the constant command for the backend. Returns 0 on success. Otherwise, returns
13
        nonzero.
14
        """
15
        pass
16
17
# ----------------------------------------------------------------------------------------------------------------------
18