mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-01-18 05:58:16 +01:00
12 lines
212 B
PHP
12 lines
212 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Creational\AbstractFactory;
|
|
|
|
class HtmlFactory extends AbstractFactory
|
|
{
|
|
public function createText(string $content): Text
|
|
{
|
|
return new HtmlText($content);
|
|
}
|
|
}
|