mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 15:06:31 +02:00
cs AbstractFactory
This commit is contained in:
@@ -11,7 +11,6 @@ use DesignPatterns\AbstractFactory\Picture as BasePicture;
|
||||
*/
|
||||
class Picture extends BasePicture
|
||||
{
|
||||
|
||||
/**
|
||||
* some crude rendering from HTML output
|
||||
*
|
||||
@@ -19,7 +18,6 @@ class Picture extends BasePicture
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return sprintf('<img src="%s" title="$s"/>', $this->_path, $this->_name);
|
||||
return sprintf('<img src="%s" title="$s"/>', $this->path, $this->name);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -11,7 +11,6 @@ use DesignPatterns\AbstractFactory\Text as BaseText;
|
||||
*/
|
||||
class Text extends BaseText
|
||||
{
|
||||
|
||||
/**
|
||||
* some crude rendering from HTML output
|
||||
*
|
||||
@@ -19,7 +18,6 @@ class Text extends BaseText
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return '<div>' . htmlspecialchars($this->_text) . '</div>';
|
||||
return '<div>' . htmlspecialchars($this->text) . '</div>';
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user