Ferreteria/v0.6/clade/Sys/Events/has/ItWent
< Ferreteria | v0.6 | clade | Sys | Events
Jump to navigation
Jump to search
| Clade Family | ||||||||
|---|---|---|---|---|---|---|---|---|
| (root) | → ItWent [i,t] | → InputRq | ||||||
| ||||||||
Purpose
The tItWent trait automatically creates & caches an ItWent (action-status) object, whose class can be overridden.
The object is always available from the HowItWent() function.
Code
as of 2025-10-01
interface iItWent {
function HowItWent() : StatusIface;
}
trait tItWent {
// ++ CONFIG ++ //
// DEFAULT
protected function StatusClass() : string { return StatusClass::class; }
// -- CONFIG -- //
// ++ RESULT ++ //
private $oStat = NULL;
public function HowItWent() : StatusIface { return $this->oStat ?? ($this->oStat = new ($this->StatusClass())); }
// -- RESULT -- //
}