eddiejaoude cee1dd1da5 Cleaned up code to be consistent, inc. adding docblocs, using PSR naming conventions & typos
Docblocs benefits:
- IDE auto complete gives info on type etc
- Auto documentation on CI
2013-09-03 08:08:19 +01:00

25 lines
349 B
PHP

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