PHP7 Builder

This commit is contained in:
Dominik Liebler
2016-09-22 13:51:35 +02:00
parent 9f42521e8f
commit 7beb1420b4
3 changed files with 3 additions and 9 deletions

View File

@@ -1,8 +0,0 @@
<?php
namespace DesignPatterns\Creational\Pool\Tests;
class TestWorker
{
public $id = 1;
}

View File

@@ -4,7 +4,9 @@ namespace DesignPatterns\Creational\Pool;
class Pool
{
private $instances = array();
private $instances = [];
private $class;
public function __construct($class)