Skip to content

You can find how we can use adapter design pattern in php. Adapter allows objects with incompatible interfaces to collaborate with each other

Notifications You must be signed in to change notification settings

majidkarimizadeh/adapter-design-pattern-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adapter Design Pattern in PHP

Adapter design pattern allows objects with incompatible interfaces to collaborate with each other


File

  • write(string $file_name, string $data) : string
  • read(string $file_name) : string

Redis

  • set(string $key, string $value) : string
  • get(string $key) : string

Redis Adapter

This class is responsible for adapting Redis functionality into the File interface.


YouTube Link:

https://youtu.be/RpzIuPOF4SM

About

You can find how we can use adapter design pattern in php. Adapter allows objects with incompatible interfaces to collaborate with each other

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages