Passed
Push — master ( cc7a4b...4d42d8 )
by Konstantinos
43s queued 14s
created

so_magic.utils.command_interface   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A CommandInterface.execute() 0 4 1
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