mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-01 20:50:15 +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
|
||||
{
|
||||
private $instances = array();
|
||||
private $instances = [];
|
||||
|
||||
|
||||
private $class;
|
||||
|
||||
public function __construct($class)
|
Reference in New Issue
Block a user