mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-25 17:21:19 +02:00
remove Interface-Suffix
This commit is contained in:
@@ -3,7 +3,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\Behavioral\Strategy;
|
||||
|
||||
interface ComparatorInterface
|
||||
interface Comparator
|
||||
{
|
||||
/**
|
||||
* @param mixed $a
|
@@ -6,11 +6,11 @@ namespace DesignPatterns\Behavioral\Strategy;
|
||||
class Context
|
||||
{
|
||||
/**
|
||||
* @var ComparatorInterface
|
||||
* @var Comparator
|
||||
*/
|
||||
private $comparator;
|
||||
|
||||
public function __construct(ComparatorInterface $comparator)
|
||||
public function __construct(Comparator $comparator)
|
||||
{
|
||||
$this->comparator = $comparator;
|
||||
}
|
||||
|
@@ -3,7 +3,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\Behavioral\Strategy;
|
||||
|
||||
class DateComparator implements ComparatorInterface
|
||||
class DateComparator implements Comparator
|
||||
{
|
||||
/**
|
||||
* @param mixed $a
|
||||
|
@@ -3,7 +3,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\Behavioral\Strategy;
|
||||
|
||||
class IdComparator implements ComparatorInterface
|
||||
class IdComparator implements Comparator
|
||||
{
|
||||
/**
|
||||
* @param mixed $a
|
||||
|
@@ -40,9 +40,9 @@ Context.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
ComparatorInterface.php
|
||||
Comparator.php
|
||||
|
||||
.. literalinclude:: ComparatorInterface.php
|
||||
.. literalinclude:: Comparator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 33 KiB |
Reference in New Issue
Block a user