| 1 | <?php |
||
| 18 | class ClusterFactory |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * This class should not be initialized, |
||
| 22 | * so set the __construct as private |
||
| 23 | */ |
||
| 24 | private function __construct() |
||
| 25 | { |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param \Deployer\Deployer $deployer |
||
| 30 | * @param string $name |
||
| 31 | * @param array $nodes |
||
| 32 | * @param int $port |
||
| 33 | * |
||
| 34 | * @return \Deployer\Cluster\Cluster |
||
| 35 | */ |
||
| 36 | 3 | public static function create(Deployer $deployer, $name, $nodes, $port = 22) |
|
| 41 | } |
||
| 42 |