mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-01-17 13:38:18 +01:00
remove Interface-Suffix
This commit is contained in:
parent
d102f7d173
commit
0582f2fb57
@ -5,7 +5,7 @@ namespace DesignPatterns\Creational\Builder;
|
||||
|
||||
use DesignPatterns\Creational\Builder\Parts\Vehicle;
|
||||
|
||||
interface BuilderInterface
|
||||
interface Builder
|
||||
{
|
||||
public function createVehicle();
|
||||
|
@ -5,7 +5,7 @@ namespace DesignPatterns\Creational\Builder;
|
||||
|
||||
use DesignPatterns\Creational\Builder\Parts\Vehicle;
|
||||
|
||||
class CarBuilder implements BuilderInterface
|
||||
class CarBuilder implements Builder
|
||||
{
|
||||
/**
|
||||
* @var Parts\Car
|
||||
|
@ -13,7 +13,7 @@ use DesignPatterns\Creational\Builder\Parts\Vehicle;
|
||||
*/
|
||||
class Director
|
||||
{
|
||||
public function build(BuilderInterface $builder): Vehicle
|
||||
public function build(Builder $builder): Vehicle
|
||||
{
|
||||
$builder->createVehicle();
|
||||
$builder->addDoors();
|
||||
|
@ -38,9 +38,9 @@ Director.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
BuilderInterface.php
|
||||
Builder.php
|
||||
|
||||
.. literalinclude:: BuilderInterface.php
|
||||
.. literalinclude:: Builder.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
@ -5,7 +5,7 @@ namespace DesignPatterns\Creational\Builder;
|
||||
|
||||
use DesignPatterns\Creational\Builder\Parts\Vehicle;
|
||||
|
||||
class TruckBuilder implements BuilderInterface
|
||||
class TruckBuilder implements Builder
|
||||
{
|
||||
/**
|
||||
* @var Parts\Truck
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 54 KiB |
Loading…
x
Reference in New Issue
Block a user