condition; } public function setCondition(OperationInterface $condition): void { $this->condition = $condition; } public function hasCondition(): bool { return $this->condition instanceof OperationInterface; } }