mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 13:07:27 +02:00
PHP7 Builder
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace DesignPatterns\Creational\Pool\Tests;
|
|
||||||
|
|
||||||
class TestWorker
|
|
||||||
{
|
|
||||||
public $id = 1;
|
|
||||||
}
|
|
@@ -4,7 +4,9 @@ namespace DesignPatterns\Creational\Pool;
|
|||||||
|
|
||||||
class Pool
|
class Pool
|
||||||
{
|
{
|
||||||
private $instances = array();
|
private $instances = [];
|
||||||
|
|
||||||
|
|
||||||
private $class;
|
private $class;
|
||||||
|
|
||||||
public function __construct($class)
|
public function __construct($class)
|
Reference in New Issue
Block a user