| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from pystratum_backend.ConstantWorker import ConstantWorker |
||
| 2 | from pystratum_backend.StratumStyle import StratumStyle |
||
| 3 | |||
| 4 | |||
| 5 | class VoidConstantWorker(ConstantWorker): |
||
| 6 | """ |
||
| 7 | Constant worker that does nothing. |
||
| 8 | """ |
||
| 9 | |||
| 10 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 11 | def __init__(self, io: StratumStyle): |
||
| 12 | """ |
||
| 13 | Object constructor. |
||
| 14 | |||
| 15 | :param io: The Output decorator. |
||
| 16 | """ |
||
| 17 | self._io: StratumStyle = io |
||
| 18 | |||
| 19 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 20 | def execute(self) -> int: |
||
| 21 | """ |
||
| 22 | Does the actual execution of the constant command for the backend. Returns 0 on success. Otherwise returns |
||
| 23 | nonzero. |
||
| 24 | |||
| 25 | :rtype: int |
||
| 26 | """ |
||
| 27 | self._io.title('Constants') |
||
| 28 | |||
| 29 | return 0 |
||
| 30 | |||
| 32 |