it was created the Behavioral namespace and append its patterns

This commit is contained in:
Antonio Spinelli
2014-04-15 22:25:48 -03:00
parent 2f7837927f
commit 646e0e2fd9
47 changed files with 88 additions and 77 deletions

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Status;
namespace DesignPatterns\Behavioral\State;
/**
* Class CreateOrder

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Status;
namespace DesignPatterns\Behavioral\State;
/**
* Class OrderController

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Status;
namespace DesignPatterns\Behavioral\State;
/**
* Class OrderFactory
@@ -9,7 +9,7 @@ class OrderFactory
{
private function __construct()
{
throw Exception('Can not instance the OrderFactory class!');
throw new \Exception('Can not instance the OrderFactory class!');
}
/**

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Status;
namespace DesignPatterns\Behavioral\State;
/**
* Class OrderInterface

View File

@@ -1,6 +1,6 @@
<?php
namespace DesignPatterns\Status;
namespace DesignPatterns\Behavioral\State;
/**
* Class ShippingOrder