Skip to content

Commit 1da5772

Browse files
author
Dominik Liebler
committed
removed superfluous Class comments
1 parent 95ad95c commit 1da5772

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1
-145
lines changed

Behavioral/ChainOfResponsibilities/Responsible/FastStorage.php

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
use DesignPatterns\Behavioral\ChainOfResponsibilities\Handler;
66
use DesignPatterns\Behavioral\ChainOfResponsibilities\Request;
77

8-
/**
9-
* Class FastStorage.
10-
*/
118
class FastStorage extends Handler
129
{
1310
/**

Behavioral/State/CreateOrder.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\State;
44

5-
/**
6-
* Class CreateOrder.
7-
*/
85
class CreateOrder implements OrderInterface
96
{
107
/**

Behavioral/State/OrderController.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\State;
44

5-
/**
6-
* Class OrderController.
7-
*/
85
class OrderController
96
{
107
/**

Behavioral/State/OrderFactory.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\State;
44

5-
/**
6-
* Class OrderFactory.
7-
*/
85
class OrderFactory
96
{
107
private function __construct()

Behavioral/State/OrderInterface.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\State;
44

5-
/**
6-
* Class OrderInterface.
7-
*/
85
interface OrderInterface
96
{
107
/**

Behavioral/State/ShippingOrder.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\State;
44

5-
/**
6-
* Class ShippingOrder.
7-
*/
85
class ShippingOrder implements OrderInterface
96
{
107
/**

Behavioral/Strategy/ComparatorInterface.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\Strategy;
44

5-
/**
6-
* Class ComparatorInterface.
7-
*/
85
interface ComparatorInterface
96
{
107
/**

Behavioral/Strategy/DateComparator.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\Strategy;
44

5-
/**
6-
* Class DateComparator.
7-
*/
85
class DateComparator implements ComparatorInterface
96
{
107
/**

Behavioral/Strategy/IdComparator.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\Strategy;
44

5-
/**
6-
* Class IdComparator.
7-
*/
85
class IdComparator implements ComparatorInterface
96
{
107
/**

Behavioral/Strategy/ObjectCollection.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Behavioral\Strategy;
44

5-
/**
6-
* Class ObjectCollection.
7-
*/
85
class ObjectCollection
96
{
107
/**

Creational/AbstractFactory/Html/Picture.php

-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
use DesignPatterns\Creational\AbstractFactory\Picture as BasePicture;
66

7-
/**
8-
* Class Picture.
9-
*
10-
* Picture is a concrete image for HTML rendering
11-
*/
127
class Picture extends BasePicture
138
{
149
/**

Creational/AbstractFactory/Html/Text.php

-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
use DesignPatterns\Creational\AbstractFactory\Text as BaseText;
66

7-
/**
8-
* Class Text.
9-
*
10-
* Text is a concrete text for HTML rendering
11-
*/
127
class Text extends BaseText
138
{
149
/**

Creational/AbstractFactory/HtmlFactory.php

-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
namespace DesignPatterns\Creational\AbstractFactory;
44

5-
/**
6-
* Class HtmlFactory.
7-
*
8-
* HtmlFactory is a concrete factory for HTML component
9-
*/
105
class HtmlFactory extends AbstractFactory
116
{
127
/**

Creational/AbstractFactory/Json/Picture.php

-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
use DesignPatterns\Creational\AbstractFactory\Picture as BasePicture;
66

7-
/**
8-
* Class Picture.
9-
*
10-
* Picture is a concrete image for JSON rendering
11-
*/
127
class Picture extends BasePicture
138
{
149
/**

Creational/AbstractFactory/Json/Text.php

-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
use DesignPatterns\Creational\AbstractFactory\Text as BaseText;
66

7-
/**
8-
* Class Text.
9-
*
10-
* Text is a text component with a JSON rendering
11-
*/
127
class Text extends BaseText
138
{
149
/**

Creational/AbstractFactory/JsonFactory.php

-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
namespace DesignPatterns\Creational\AbstractFactory;
44

5-
/**
6-
* Class JsonFactory.
7-
*
8-
* JsonFactory is a factory for creating a family of JSON component
9-
* (example for ajax)
10-
*/
115
class JsonFactory extends AbstractFactory
126
{
137
/**

Creational/AbstractFactory/Picture.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\AbstractFactory;
44

5-
/**
6-
* Class Picture.
7-
*/
85
abstract class Picture implements MediaInterface
96
{
107
/**

Creational/AbstractFactory/Text.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\AbstractFactory;
44

5-
/**
6-
* Class Text.
7-
*/
85
abstract class Text implements MediaInterface
96
{
107
/**

Creational/Builder/Parts/Door.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\Builder\Parts;
44

5-
/**
6-
* Class Door.
7-
*/
85
class Door
96
{
107
}

Creational/Builder/Parts/Engine.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\Builder\Parts;
44

5-
/**
6-
* Class Engine.
7-
*/
85
class Engine
96
{
107
}

Creational/Builder/Parts/Wheel.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\Builder\Parts;
44

5-
/**
6-
* Class Wheel.
7-
*/
85
class Wheel
96
{
107
}

Creational/Prototype/BarBookPrototype.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\Prototype;
44

5-
/**
6-
* Class BarBookPrototype.
7-
*/
85
class BarBookPrototype extends BookPrototype
96
{
107
/**

Creational/Prototype/FooBookPrototype.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\Prototype;
44

5-
/**
6-
* Class FooBookPrototype.
7-
*/
85
class FooBookPrototype extends BookPrototype
96
{
107
protected $category = 'Foo';

Creational/StaticFactory/FormatNumber.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\StaticFactory;
44

5-
/**
6-
* Class FormatNumber.
7-
*/
85
class FormatNumber implements FormatterInterface
96
{
107
}

Creational/StaticFactory/FormatString.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\StaticFactory;
44

5-
/**
6-
* Class FormatString.
7-
*/
85
class FormatString implements FormatterInterface
96
{
107
}

Creational/StaticFactory/FormatterInterface.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Creational\StaticFactory;
44

5-
/**
6-
* Class FormatterInterface.
7-
*/
85
interface FormatterInterface
96
{
107
}

More/Delegation/JuniorDeveloper.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\More\Delegation;
44

5-
/**
6-
* Class JuniorDeveloper.
7-
*/
85
class JuniorDeveloper
96
{
107
public function writeBadCode()

More/Delegation/TeamLead.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\More\Delegation;
44

5-
/**
6-
* Class TeamLead.
7-
*/
85
class TeamLead
96
{
107
/** @var JuniorDeveloper */

More/EAV/Attribute.php

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
use SplObjectStorage;
66

7-
/**
8-
* Class Attribute.
9-
*/
107
class Attribute implements ValueAccessInterface
118
{
129
/**

More/EAV/Entity.php

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
use SplObjectStorage;
66

7-
/**
8-
* Class Entity.
9-
*/
107
class Entity implements ValueAccessInterface
118
{
129
/**

More/EAV/Value.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\More\EAV;
44

5-
/**
6-
* Class Value.
7-
*/
85
class Value implements ValueInterface
96
{
107
/**

More/Repository/MemoryStorage.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\More\Repository;
44

5-
/**
6-
* Class MemoryStorage.
7-
*/
85
class MemoryStorage implements Storage
96
{
107
private $data;

More/Repository/Post.php

-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
namespace DesignPatterns\More\Repository;
44

5-
/**
6-
* Post represents entity for some post that user left on the site.
7-
*
8-
* Class Post
9-
*/
105
class Post
116
{
127
/**

More/Repository/PostRepository.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
namespace DesignPatterns\More\Repository;
44

55
/**
6-
* Repository for class Post
7-
* This class is between Entity layer(class Post) and access object layer(interface Storage).
6+
* This class is between Entity layer (class Post) and access object layer (interface Storage).
87
*
98
* Repository encapsulates the set of objects persisted in a data store and the operations performed over them
109
* providing a more object-oriented view of the persistence layer
1110
*
1211
* Repository also supports the objective of achieving a clean separation and one-way dependency
1312
* between the domain and data mapping layers
14-
*
15-
* Class PostRepository
1613
*/
1714
class PostRepository
1815
{

Structural/Composite/FormElement.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Structural\Composite;
44

5-
/**
6-
* Class FormElement.
7-
*/
85
abstract class FormElement
96
{
107
/**

Structural/Composite/InputElement.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Structural\Composite;
44

5-
/**
6-
* Class InputElement.
7-
*/
85
class InputElement extends FormElement
96
{
107
/**

Structural/Composite/TextElement.php

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace DesignPatterns\Structural\Composite;
44

5-
/**
6-
* Class TextElement.
7-
*/
85
class TextElement extends FormElement
96
{
107
/**

0 commit comments

Comments
 (0)