Basic php dependency injector (by constructor)