adding has and get method on injector