mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 08:26:44 +02:00
start a restructure
This commit is contained in:
22
Creational/AbstractFactory/Text.php
Normal file
22
Creational/AbstractFactory/Text.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\AbstractFactory;
|
||||
|
||||
/**
|
||||
* Class Text
|
||||
*/
|
||||
abstract class Text implements MediaInterface
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $text;
|
||||
|
||||
/**
|
||||
* @param string $text
|
||||
*/
|
||||
public function __construct($text)
|
||||
{
|
||||
$this->text = (string) $text;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user