3
votes
3answers
182 views

PHP Simple OOP Class

I am still learning OOP and I need a little help, I don't really know how to properly make this not look so terrible. Any thoughts? <?php class Noti { public static $app; public static ...
3
votes
1answer
276 views

How to convert my classes to Dependency injection?

I am still learning to develop my skills in OOP. It uses a combination of the factory and its real singletons? As I did more research, I have realized this design pattern is bad because of global ...
5
votes
2answers
120 views

When an object has different representations… what's the OO pattern?

I've an AbstractMessage object (a hierarchy, actually). It represents a small text message and can be sent using different transport methods: HTTP, REST and a "mailer" transport. Each transport relies ...