mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 20:20:15 +02:00
Refactored example of Proxy pattern
This commit is contained in:
10
Structural/Proxy/BankAccount.php
Normal file
10
Structural/Proxy/BankAccount.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Structural\Proxy;
|
||||
|
||||
interface BankAccount
|
||||
{
|
||||
public function deposit(int $amount);
|
||||
|
||||
public function getBalance(): int;
|
||||
}
|
Reference in New Issue
Block a user