classes[$key] = $instance; return $instance; } //For back-compat public function add($key, $instance) { return $this; } public function has($id) { if (!array_key_exists($id, $this->classes)) { return true; } return false; } //For back-compat public function withArguments() { //NoOp } //For back-compat public function register() { //NoOp } }