package Ġio . mock k . impl . recording . states Ċ Ċ import Ġio . mock k . Answer Ċ import Ġio . mock k . Invocation Ċ import Ġio . mock k . impl . log . Logger Ċ import Ġio . mock k . impl . recording . Common Call Recorder Ċ import Ġio . mock k . impl . stub . Additional Answer Opp ort unity Ċ Ċ class ĠAnswer ing Still Accept ing Answers State ( ĊĠĠĠ Ġrecorder : ĠCommon Call Recorder , ĊĠĠĠ Ġval Ġanswer Opp ort unity : ĠAdditional Answer Opp ort unity Ċ ) Ġ: ĠAnswer ing State ( recorder ) Ġ{ ĊĠĠĠ Ġoverride Ġval Ġlog Ġ= Ġrecorder . safe ToString ( Logger < Answer ing Still Accept ing Answers State >()) ĊĊĠĠĠ Ġoverride Ġfun Ġcall ( invocation : ĠInvocation ): ĠAny ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġres Ġ= Ġsuper . call ( invocation ) ĊĠĠĠĠĠĠĠ Ġrecorder . state Ġ= Ġrecorder . factories . answer ing State ( recorder ) ĊĠĠĠĠĠĠĠ Ġreturn Ġres ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġanswer ( answer : ĠAnswer <* >) Ġ{ ĊĠĠĠĠĠĠĠ Ġanswer Opp ort unity . add Answer ( answer ) ĊĠĠĠ Ġ} Ċ }