mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-05-03 21:18:11 +02:00
13 lines
317 B
PHP
13 lines
317 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\AbstractFactory;
|
|
|
|
/**
|
|
* In this case, the abstract factory is a contract for creating some components
|
|
* for the web. There are two ways of rendering text: HTML and JSON
|
|
*/
|
|
abstract class AbstractFactory
|
|
{
|
|
abstract public function createText(string $content): Text;
|
|
}
|