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