PHPnews.io

Overview for 'yegor256'


Decorating Envelopes

Written by Yegor Bugayenko / Original link on Jan. 30, 2017

Sometimes Very often I need a class that implements an interface by making an instance of another class. Sound weird? Let me show you an example. There are many classes of that kind in the Takes Framework, and they all are named like *Wrap. It's a convenient design concept that, unfortunately, look…