mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-13 18:34:06 +02:00
it was created the More namespace and append its patterns
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Tests\Delegation;
|
||||
namespace DesignPatterns\More\Delegation;
|
||||
|
||||
use DesignPatterns\Delegation;
|
||||
use DesignPatterns\More\Delegation;
|
||||
|
||||
/**
|
||||
* DelegationTest tests the delegation pattern
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Delegation;
|
||||
namespace DesignPatterns\More\Delegation;
|
||||
|
||||
/**
|
||||
* Class JuniorDeveloper
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Delegation;
|
||||
namespace DesignPatterns\More\Delegation;
|
||||
|
||||
/**
|
||||
* Class TeamLead
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Delegation;
|
||||
namespace DesignPatterns\More\Delegation;
|
||||
|
||||
// instantiate TeamLead and appoint to assistants JuniorDeveloper
|
||||
$teamLead = new TeamLead(new JuniorDeveloper());
|
||||
|
Reference in New Issue
Block a user