mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 06:57:25 +02:00
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
This commit is contained in:
@@ -2,16 +2,23 @@
|
||||
|
||||
namespace DesignPatterns\AbstractFactory;
|
||||
|
||||
/**
|
||||
* Class Text
|
||||
*
|
||||
* @package DesignPatterns\AbstractFactory
|
||||
*/
|
||||
abstract class Text implements Media
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_text;
|
||||
protected $text;
|
||||
|
||||
/**
|
||||
* @param string $text
|
||||
*/
|
||||
public function __construct($text)
|
||||
{
|
||||
$this->_text = $text;
|
||||
$this->_text = (string) $text;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user