mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 08:26:44 +02:00
improved Flyweight
This commit is contained in:
12
Structural/Flyweight/Text.php
Normal file
12
Structural/Flyweight/Text.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\Structural\Flyweight;
|
||||
|
||||
/**
|
||||
* This is the interface that all flyweights need to implement
|
||||
*/
|
||||
interface Text
|
||||
{
|
||||
public function render(string $extrinsicState): string;
|
||||
}
|
Reference in New Issue
Block a user