mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-13 03:16:21 +02:00
removed @package annotations
This commit is contained in:
@ -8,8 +8,6 @@ use DesignPatterns\AbstractFactory\Picture as BasePicture;
|
|||||||
* Class Picture
|
* Class Picture
|
||||||
*
|
*
|
||||||
* Picture is a concrete image for HTML rendering
|
* Picture is a concrete image for HTML rendering
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory\Html
|
|
||||||
*/
|
*/
|
||||||
class Picture extends BasePicture
|
class Picture extends BasePicture
|
||||||
{
|
{
|
||||||
@ -24,4 +22,4 @@ class Picture extends BasePicture
|
|||||||
return sprintf('<img src="%s" title="$s"/>', $this->_path, $this->_name);
|
return sprintf('<img src="%s" title="$s"/>', $this->_path, $this->_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,6 @@ use DesignPatterns\AbstractFactory\Text as BaseText;
|
|||||||
* Class Text
|
* Class Text
|
||||||
*
|
*
|
||||||
* Text is a concrete text for HTML rendering
|
* Text is a concrete text for HTML rendering
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory\Html
|
|
||||||
*/
|
*/
|
||||||
class Text extends BaseText
|
class Text extends BaseText
|
||||||
{
|
{
|
||||||
@ -24,4 +22,4 @@ class Text extends BaseText
|
|||||||
return '<div>' . htmlspecialchars($this->_text) . '</div>';
|
return '<div>' . htmlspecialchars($this->_text) . '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6,8 +6,6 @@ namespace DesignPatterns\AbstractFactory;
|
|||||||
* Class HtmlFactory
|
* Class HtmlFactory
|
||||||
*
|
*
|
||||||
* HtmlFactory is a concrete factory for HTML component
|
* HtmlFactory is a concrete factory for HTML component
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory
|
|
||||||
*/
|
*/
|
||||||
class HtmlFactory extends AbstractFactory
|
class HtmlFactory extends AbstractFactory
|
||||||
{
|
{
|
||||||
@ -35,4 +33,4 @@ class HtmlFactory extends AbstractFactory
|
|||||||
return new Html\Text($content);
|
return new Html\Text($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,6 @@ use DesignPatterns\AbstractFactory\Picture as BasePicture;
|
|||||||
* Class Picture
|
* Class Picture
|
||||||
*
|
*
|
||||||
* Picture is a concrete image for JSON rendering
|
* Picture is a concrete image for JSON rendering
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory\Json
|
|
||||||
*/
|
*/
|
||||||
class Picture extends BasePicture
|
class Picture extends BasePicture
|
||||||
{
|
{
|
||||||
@ -24,4 +22,4 @@ class Picture extends BasePicture
|
|||||||
return json_encode(array('title' => $this->_name, 'path' => $this->_path));
|
return json_encode(array('title' => $this->_name, 'path' => $this->_path));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,6 @@ use DesignPatterns\AbstractFactory\Text as BaseText;
|
|||||||
* Class Text
|
* Class Text
|
||||||
*
|
*
|
||||||
* Text is a text component with a JSON rendering
|
* Text is a text component with a JSON rendering
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory\Json
|
|
||||||
*/
|
*/
|
||||||
class Text extends BaseText
|
class Text extends BaseText
|
||||||
{
|
{
|
||||||
@ -24,4 +22,4 @@ class Text extends BaseText
|
|||||||
return json_encode(array('content' => $this->_text));
|
return json_encode(array('content' => $this->_text));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,6 @@ namespace DesignPatterns\AbstractFactory;
|
|||||||
*
|
*
|
||||||
* JsonFactory is a factory for creating a family of JSON component
|
* JsonFactory is a factory for creating a family of JSON component
|
||||||
* (example for ajax)
|
* (example for ajax)
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory
|
|
||||||
*/
|
*/
|
||||||
class JsonFactory extends AbstractFactory
|
class JsonFactory extends AbstractFactory
|
||||||
{
|
{
|
||||||
@ -37,4 +35,4 @@ class JsonFactory extends AbstractFactory
|
|||||||
return new Json\Text($content);
|
return new Json\Text($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,6 @@ namespace DesignPatterns\AbstractFactory;
|
|||||||
*
|
*
|
||||||
* This contract is not part of the pattern, in general case, each component
|
* This contract is not part of the pattern, in general case, each component
|
||||||
* are not related
|
* are not related
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory
|
|
||||||
*/
|
*/
|
||||||
interface Media
|
interface Media
|
||||||
{
|
{
|
||||||
|
@ -4,8 +4,6 @@ namespace DesignPatterns\AbstractFactory;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Picture
|
* Class Picture
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory
|
|
||||||
*/
|
*/
|
||||||
abstract class Picture implements Media
|
abstract class Picture implements Media
|
||||||
{
|
{
|
||||||
|
@ -4,8 +4,6 @@ namespace DesignPatterns\AbstractFactory;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Text
|
* Class Text
|
||||||
*
|
|
||||||
* @package DesignPatterns\AbstractFactory
|
|
||||||
*/
|
*/
|
||||||
abstract class Text implements Media
|
abstract class Text implements Media
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user