Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update from original #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 20, 2014
2 changes: 1 addition & 1 deletion Behavioral/ChainOfResponsibilities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Purpose:

To build a chain of objects to handle a call. If one object cannot handle a call, it delegates the call to the next in the chain and so forth.
To build a chain of objects to handle a call in sequential order. If one object cannot handle a call, it delegates the call to the next in the chain and so forth.

## Examples:

Expand Down
2 changes: 1 addition & 1 deletion Behavioral/Observer/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function detach(\SplObserver $observer)
*/
public function notify()
{
/** @var SplObserver $observer */
/** @var \SplObserver $observer */
foreach ($this->observers as $observer) {
$observer->update($this);
}
Expand Down
2 changes: 1 addition & 1 deletion Creational/Pool/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function process($image)
if ($this->processing++ < $this->maxProcesses) {
$this->createWorker($image);
} else {
$this->pushToWaitingQueue($worker);
$this->pushToWaitingQueue($image);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Creational/Prototype/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Purpose

To avoid the cost of creating objects the standard way (new Foo()) and instead create a prototype and clone it
To avoid the cost of creating objects the standard way (new Foo()) and instead create a prototype and clone it.

## Examples

* Large amounts of data (e.g. create 1,000,000 rows in a database at once via a ORM)
* Large amounts of data (e.g. create 1,000,000 rows in a database at once via a ORM).
2 changes: 1 addition & 1 deletion Creational/SimpleFactory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ ConcreteFactory is a simple factory pattern.

It differs from the static factory because it is NOT static and as you know: static => global => evil!

Therefore, you can haZ multiple factories, differently parametrized, you can subclass it and you can mock-up it.
Therefore, you can have multiple factories, differently parametrized, you can subclass it and you can mock-up it.
3 changes: 2 additions & 1 deletion More/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# More

* [Delegation](Delegation) [:notebook:](http://en.wikipedia.org/wiki/Delegation_pattern)
* [ServiceLocator](ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern)
* [ServiceLocator](ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern)
* [Repository](Repository)