blob: c606cfedecf878b260f4f80653c69273a2217934 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
class PerlSingleton {
private static $instance = null;
private function __construct() {
$this->perl = new Perl();
}
public static function getInstance() {
if(self::$instance == null) {
self::$instance = new self;
}
return self::$instance->perl;
}
}
|