mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-15 12:26:22 +02:00
removed superfluous Class comments
This commit is contained in:
Behavioral
ChainOfResponsibilities
Responsible
State
Strategy
Creational
AbstractFactory
Builder
Prototype
StaticFactory
More
Delegation
EAV
Repository
Structural
Composite
Decorator
DependencyInjection
Facade
@ -5,9 +5,6 @@ namespace DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible;
|
||||
use DesignPatterns\Behavioral\ChainOfResponsibilities\Handler;
|
||||
use DesignPatterns\Behavioral\ChainOfResponsibilities\Request;
|
||||
|
||||
/**
|
||||
* Class FastStorage.
|
||||
*/
|
||||
class FastStorage extends Handler
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\State;
|
||||
|
||||
/**
|
||||
* Class CreateOrder.
|
||||
*/
|
||||
class CreateOrder implements OrderInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\State;
|
||||
|
||||
/**
|
||||
* Class OrderController.
|
||||
*/
|
||||
class OrderController
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\State;
|
||||
|
||||
/**
|
||||
* Class OrderFactory.
|
||||
*/
|
||||
class OrderFactory
|
||||
{
|
||||
private function __construct()
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\State;
|
||||
|
||||
/**
|
||||
* Class OrderInterface.
|
||||
*/
|
||||
interface OrderInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\State;
|
||||
|
||||
/**
|
||||
* Class ShippingOrder.
|
||||
*/
|
||||
class ShippingOrder implements OrderInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\Strategy;
|
||||
|
||||
/**
|
||||
* Class ComparatorInterface.
|
||||
*/
|
||||
interface ComparatorInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\Strategy;
|
||||
|
||||
/**
|
||||
* Class DateComparator.
|
||||
*/
|
||||
class DateComparator implements ComparatorInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\Strategy;
|
||||
|
||||
/**
|
||||
* Class IdComparator.
|
||||
*/
|
||||
class IdComparator implements ComparatorInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Behavioral\Strategy;
|
||||
|
||||
/**
|
||||
* Class ObjectCollection.
|
||||
*/
|
||||
class ObjectCollection
|
||||
{
|
||||
/**
|
||||
|
@ -4,11 +4,6 @@ namespace DesignPatterns\Creational\AbstractFactory\Html;
|
||||
|
||||
use DesignPatterns\Creational\AbstractFactory\Picture as BasePicture;
|
||||
|
||||
/**
|
||||
* Class Picture.
|
||||
*
|
||||
* Picture is a concrete image for HTML rendering
|
||||
*/
|
||||
class Picture extends BasePicture
|
||||
{
|
||||
/**
|
||||
|
@ -4,11 +4,6 @@ namespace DesignPatterns\Creational\AbstractFactory\Html;
|
||||
|
||||
use DesignPatterns\Creational\AbstractFactory\Text as BaseText;
|
||||
|
||||
/**
|
||||
* Class Text.
|
||||
*
|
||||
* Text is a concrete text for HTML rendering
|
||||
*/
|
||||
class Text extends BaseText
|
||||
{
|
||||
/**
|
||||
|
@ -2,11 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\AbstractFactory;
|
||||
|
||||
/**
|
||||
* Class HtmlFactory.
|
||||
*
|
||||
* HtmlFactory is a concrete factory for HTML component
|
||||
*/
|
||||
class HtmlFactory extends AbstractFactory
|
||||
{
|
||||
/**
|
||||
|
@ -4,11 +4,6 @@ namespace DesignPatterns\Creational\AbstractFactory\Json;
|
||||
|
||||
use DesignPatterns\Creational\AbstractFactory\Picture as BasePicture;
|
||||
|
||||
/**
|
||||
* Class Picture.
|
||||
*
|
||||
* Picture is a concrete image for JSON rendering
|
||||
*/
|
||||
class Picture extends BasePicture
|
||||
{
|
||||
/**
|
||||
|
@ -4,11 +4,6 @@ namespace DesignPatterns\Creational\AbstractFactory\Json;
|
||||
|
||||
use DesignPatterns\Creational\AbstractFactory\Text as BaseText;
|
||||
|
||||
/**
|
||||
* Class Text.
|
||||
*
|
||||
* Text is a text component with a JSON rendering
|
||||
*/
|
||||
class Text extends BaseText
|
||||
{
|
||||
/**
|
||||
|
@ -2,12 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\AbstractFactory;
|
||||
|
||||
/**
|
||||
* Class JsonFactory.
|
||||
*
|
||||
* JsonFactory is a factory for creating a family of JSON component
|
||||
* (example for ajax)
|
||||
*/
|
||||
class JsonFactory extends AbstractFactory
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\AbstractFactory;
|
||||
|
||||
/**
|
||||
* Class Picture.
|
||||
*/
|
||||
abstract class Picture implements MediaInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\AbstractFactory;
|
||||
|
||||
/**
|
||||
* Class Text.
|
||||
*/
|
||||
abstract class Text implements MediaInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\Builder\Parts;
|
||||
|
||||
/**
|
||||
* Class Door.
|
||||
*/
|
||||
class Door
|
||||
{
|
||||
}
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\Builder\Parts;
|
||||
|
||||
/**
|
||||
* Class Engine.
|
||||
*/
|
||||
class Engine
|
||||
{
|
||||
}
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\Builder\Parts;
|
||||
|
||||
/**
|
||||
* Class Wheel.
|
||||
*/
|
||||
class Wheel
|
||||
{
|
||||
}
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\Prototype;
|
||||
|
||||
/**
|
||||
* Class BarBookPrototype.
|
||||
*/
|
||||
class BarBookPrototype extends BookPrototype
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\Prototype;
|
||||
|
||||
/**
|
||||
* Class FooBookPrototype.
|
||||
*/
|
||||
class FooBookPrototype extends BookPrototype
|
||||
{
|
||||
protected $category = 'Foo';
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\StaticFactory;
|
||||
|
||||
/**
|
||||
* Class FormatNumber.
|
||||
*/
|
||||
class FormatNumber implements FormatterInterface
|
||||
{
|
||||
}
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\StaticFactory;
|
||||
|
||||
/**
|
||||
* Class FormatString.
|
||||
*/
|
||||
class FormatString implements FormatterInterface
|
||||
{
|
||||
}
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Creational\StaticFactory;
|
||||
|
||||
/**
|
||||
* Class FormatterInterface.
|
||||
*/
|
||||
interface FormatterInterface
|
||||
{
|
||||
}
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\More\Delegation;
|
||||
|
||||
/**
|
||||
* Class JuniorDeveloper.
|
||||
*/
|
||||
class JuniorDeveloper
|
||||
{
|
||||
public function writeBadCode()
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\More\Delegation;
|
||||
|
||||
/**
|
||||
* Class TeamLead.
|
||||
*/
|
||||
class TeamLead
|
||||
{
|
||||
/** @var JuniorDeveloper */
|
||||
|
@ -4,9 +4,6 @@ namespace DesignPatterns\More\EAV;
|
||||
|
||||
use SplObjectStorage;
|
||||
|
||||
/**
|
||||
* Class Attribute.
|
||||
*/
|
||||
class Attribute implements ValueAccessInterface
|
||||
{
|
||||
/**
|
||||
|
@ -4,9 +4,6 @@ namespace DesignPatterns\More\EAV;
|
||||
|
||||
use SplObjectStorage;
|
||||
|
||||
/**
|
||||
* Class Entity.
|
||||
*/
|
||||
class Entity implements ValueAccessInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\More\EAV;
|
||||
|
||||
/**
|
||||
* Class Value.
|
||||
*/
|
||||
class Value implements ValueInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
/**
|
||||
* Class MemoryStorage.
|
||||
*/
|
||||
class MemoryStorage implements Storage
|
||||
{
|
||||
private $data;
|
||||
|
@ -2,11 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
/**
|
||||
* Post represents entity for some post that user left on the site.
|
||||
*
|
||||
* Class Post
|
||||
*/
|
||||
class Post
|
||||
{
|
||||
/**
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
/**
|
||||
* Repository for class Post
|
||||
* This class is between Entity layer (class Post) and access object layer (interface Storage).
|
||||
*
|
||||
* Repository encapsulates the set of objects persisted in a data store and the operations performed over them
|
||||
@ -11,8 +10,6 @@ namespace DesignPatterns\More\Repository;
|
||||
*
|
||||
* Repository also supports the objective of achieving a clean separation and one-way dependency
|
||||
* between the domain and data mapping layers
|
||||
*
|
||||
* Class PostRepository
|
||||
*/
|
||||
class PostRepository
|
||||
{
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Composite;
|
||||
|
||||
/**
|
||||
* Class FormElement.
|
||||
*/
|
||||
abstract class FormElement
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Composite;
|
||||
|
||||
/**
|
||||
* Class InputElement.
|
||||
*/
|
||||
class InputElement extends FormElement
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Composite;
|
||||
|
||||
/**
|
||||
* Class TextElement.
|
||||
*/
|
||||
class TextElement extends FormElement
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Decorator;
|
||||
|
||||
/**
|
||||
* Class RenderInJson.
|
||||
*/
|
||||
class RenderInJson extends Decorator
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Decorator;
|
||||
|
||||
/**
|
||||
* Class RenderInXml.
|
||||
*/
|
||||
class RenderInXml extends Decorator
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Decorator;
|
||||
|
||||
/**
|
||||
* Class RendererInterface.
|
||||
*/
|
||||
interface RendererInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Decorator;
|
||||
|
||||
/**
|
||||
* Class Webservice.
|
||||
*/
|
||||
class Webservice implements RendererInterface
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\DependencyInjection;
|
||||
|
||||
/**
|
||||
* Class Connection.
|
||||
*/
|
||||
class Connection
|
||||
{
|
||||
/**
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Facade;
|
||||
|
||||
/**
|
||||
* Class Facade.
|
||||
*/
|
||||
class Facade
|
||||
{
|
||||
/**
|
||||
|
Reference in New Issue
Block a user