remove Interface-Suffix

This commit is contained in:
Dominik Liebler 2019-08-19 17:00:34 +02:00
parent d102f7d173
commit 0582f2fb57
No known key found for this signature in database
GPG Key ID: DCE4AADEA26FD47B
6 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ namespace DesignPatterns\Creational\Builder;
use DesignPatterns\Creational\Builder\Parts\Vehicle;
interface BuilderInterface
interface Builder
{
public function createVehicle();

View File

@ -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

View File

@ -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();

View File

@ -38,9 +38,9 @@ Director.php
:language: php
:linenos:
BuilderInterface.php
Builder.php
.. literalinclude:: BuilderInterface.php
.. literalinclude:: Builder.php
:language: php
:linenos:

View File

@ -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