add has methods
first working version for __constructor and method injection