PHPnews.io

Overview for 'yegor256'


Decorating Envelopes

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

Sometimes Very often I need aclass that implements aninterface by making an instance of another class. Sound weird? Let me showyou an example. There are many classes of that kind in theTakes Framework,and they all are named like *Wrap. It's a convenient design concept that,unfortunately, looks rath…