CommandInterface.execute()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
from abc import ABC, abstractmethod
2
3
4
class CommandInterface(ABC):
5
    """Standalone command, encapsulating all logic and data needed, required for execution."""
6
    @abstractmethod
7
    def execute(self) -> None:
8
        """Execute the command; run the commands logic."""
9
        raise NotImplementedError
10