singleton pdo class with static methods in MySQL Help Posted September 28, 2015 hi is it really a good practice to have a pdo class with singleton patterns? i read about this issue a lot and understand is not a proper way to make a database class because it makes unit test hard ! the second question is about static form to write php codes. is it necessary to use static methods in our project cause it makes hard for me to write? when we should use static methods in our projects ? thanks.
singleton pdo class with static methods
in MySQL Help
Posted
hi
is it really a good practice to have a pdo class with singleton patterns?
i read about this issue a lot and understand is not a proper way to make a database class because it makes unit test hard !
the second question is about static form to write php codes.
is it necessary to use static methods in our project cause it makes hard for me to write?
when we should use static methods in our projects ?
thanks.