public final function getState($key) { return isset($this->registry[$key]) ? $this->registry[$key] : null; }