demo/core/steps/step.ps1

class ConfigInput {

    [string] $namespace
    [string] $releaseName

    [int] $replicaCount
    [int] $binaryLogExpirationSeconds

    [bool]IsReplicationEnabled() {
        return $this.replicaCount -gt 0
    }
}

class Step : GuidedSetupStep {

    [ConfigInput] $config

    Step([string]      $name, 
         [ConfigInput] $config,
         [string]      $title,
         [string]      $message,
         [string]      $prompt) : base($name, $title, $message, $prompt) {

        $this.config = $config
    }
}