PHP7 AbstractFactory

This commit is contained in:
Dominik Liebler
2016-09-22 15:19:18 +02:00
parent 370ce4dd93
commit f03c173eb9
17 changed files with 650 additions and 671 deletions

View File

@@ -2,18 +2,15 @@
namespace DesignPatterns\Creational\AbstractFactory;
abstract class Text implements MediaInterface
abstract class Text
{
/**
* @var string
*/
protected $text;
private $text;
/**
* @param string $text
*/
public function __construct($text)
public function __construct(string $text)
{
$this->text = (string) $text;
$this->text = $text;
}
}