Skip to content

Commit dba45b8

Browse files
author
Dominik Liebler
committed
remove Interface-Suffix
1 parent 9cb7660 commit dba45b8

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Behavioral/Strategy/ComparatorInterface.php renamed to Behavioral/Strategy/Comparator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace DesignPatterns\Behavioral\Strategy;
55

6-
interface ComparatorInterface
6+
interface Comparator
77
{
88
/**
99
* @param mixed $a

Behavioral/Strategy/Context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
class Context
77
{
88
/**
9-
* @var ComparatorInterface
9+
* @var Comparator
1010
*/
1111
private $comparator;
1212

13-
public function __construct(ComparatorInterface $comparator)
13+
public function __construct(Comparator $comparator)
1414
{
1515
$this->comparator = $comparator;
1616
}

Behavioral/Strategy/DateComparator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace DesignPatterns\Behavioral\Strategy;
55

6-
class DateComparator implements ComparatorInterface
6+
class DateComparator implements Comparator
77
{
88
/**
99
* @param mixed $a

Behavioral/Strategy/IdComparator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace DesignPatterns\Behavioral\Strategy;
55

6-
class IdComparator implements ComparatorInterface
6+
class IdComparator implements Comparator
77
{
88
/**
99
* @param mixed $a

Behavioral/Strategy/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ Context.php
4040
:language: php
4141
:linenos:
4242

43-
ComparatorInterface.php
43+
Comparator.php
4444

45-
.. literalinclude:: ComparatorInterface.php
45+
.. literalinclude:: Comparator.php
4646
:language: php
4747
:linenos:
4848

Behavioral/Strategy/uml/uml.png

22 KB
Loading

0 commit comments

Comments
 (0)