I am trying to understand how do I choose and implement a design pattern in php. I know Factory a little bit.
I would like to explain the problem.
I have 3 internet cameras . Each of camera can be located in 3 sides . Front , back and sides each camera has different api but from all of them I can get front image , back image and side image (image of objects or people) and get id , and result number. Maybe in the future I would like to get more properties. Every camera has specific config parents that I need to configure in yml or in file( this is a 1 file for all of them and including another params to my app)
I try to think how can I implement it but I am confused . I read about FActoy . What do you think with abstract class that include the logger, config(specific config class I guess) , so all classes could be use it.
Could you please give me an example how to build that , even a sample code of the classes . It would be great
Thanks
Aucun commentaire:
Enregistrer un commentaire