2011-08-21 16:03:10 +02:00
|
|
|
<?php
|
|
|
|
|
2014-04-15 22:59:59 -03:00
|
|
|
namespace DesignPatterns\Creational\AbstractFactory;
|
2011-08-21 16:03:10 +02:00
|
|
|
|
2013-09-03 08:08:19 +01:00
|
|
|
/**
|
2015-12-21 07:28:20 -05:00
|
|
|
* Class Text.
|
2013-09-03 08:08:19 +01:00
|
|
|
*/
|
2013-09-09 10:39:41 +02:00
|
|
|
abstract class Text implements MediaInterface
|
2011-08-21 16:03:10 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2013-09-03 08:08:19 +01:00
|
|
|
protected $text;
|
2011-08-21 16:03:10 +02:00
|
|
|
|
2013-09-03 08:08:19 +01:00
|
|
|
/**
|
|
|
|
* @param string $text
|
|
|
|
*/
|
2011-08-21 16:03:10 +02:00
|
|
|
public function __construct($text)
|
|
|
|
{
|
2013-09-23 15:23:28 +03:00
|
|
|
$this->text = (string) $text;
|
2011-08-21 16:03:10 +02:00
|
|
|
}
|
|
|
|
}
|