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