| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 11 | class CompoundCondition(Condition): |
||
| 12 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 13 | def __init__(self): |
||
| 14 | self._conditions = [] |
||
| 15 | """ |
||
| 16 | The list of conditions of this compound condition. |
||
| 17 | |||
| 18 | :type list[gdwh.map.Condition.Condition]: |
||
| 19 | """ |
||
| 20 | |||
| 21 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 22 | def append_condition(self, condition): |
||
| 23 | """ |
||
| 24 | Appends a child condition to the list of conditions of this compound condition. |
||
| 25 | |||
| 26 | :param gdwh.map.Condition.Condition condition: The child conditions. |
||
| 27 | """ |
||
| 28 | self._conditions.append(condition) |
||
| 29 | |||
| 31 |