mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-10-01 00:36:53 +02:00
more real example
This commit is contained in:
25
Adapter/Book.php
Normal file
25
Adapter/Book.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* DesignPatternPHP
|
||||
*/
|
||||
|
||||
namespace DesignPatterns\Adapter;
|
||||
|
||||
/**
|
||||
* Book is a concrete and standard paper book
|
||||
*/
|
||||
class Book implements PaperBookInterface
|
||||
{
|
||||
|
||||
public function open()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function turnPage()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user