/** * Returns an instance of class (singleton pattern implementation). * * @return USEARCH_BOL_SearchDao */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * Class constructor */ private function __construct() { $this->listingDao = LOOVLISTING_BOL_ListingDao::getInstance(); }