it was created the Structural namespace and append its patterns

This commit is contained in:
Antonio Spinelli
2014-04-15 23:14:39 -03:00
parent 7bf6593e3f
commit 113f63a54f
37 changed files with 77 additions and 69 deletions

View File

@@ -1,8 +1,8 @@
<?php
namespace DesignPatterns\Tests\FluentInterface;
namespace DesignPatterns\Structural\FluentInterface;
use DesignPatterns\FluentInterface\SQL;
use DesignPatterns\Structural\FluentInterface\Sql;
/**
* FluentInterfaceTest tests the fluent interface SQL
@@ -12,7 +12,7 @@ class FluentInterfaceTest extends \PHPUnit_Framework_TestCase
public function testBuildSQL()
{
$instance = new SQL();
$instance = new Sql();
$query = $instance->select(array('foo', 'bar'))
->from('foobar', 'f')
->where('f.bar = ?')

View File

@@ -1,11 +1,11 @@
<?php
namespace DesignPatterns\FluentInterface;
namespace DesignPatterns\Structural\FluentInterface;
/**
* class SQL
*/
class SQL
class Sql
{
/**
* @var array