The adapter design pattern allows us to cope with differences between the required interface and the one that was implemented. The following video clip explains it using a code sample in PHP.
You can find the source code available for free download in my ‘PHP Design Patterns’ course, which is available for free personal usage at www.abelski.com.