23 lines
322 B
PHP

<?php
namespace DesignPatterns\Creational\AbstractFactory;
/**
* Class Text
*/
abstract class Text implements MediaInterface
{
/**
* @var string
*/
protected $text;
/**
* @param string $text
*/
public function __construct($text)
{
$this->text = (string) $text;
}
}