/** * Singleton function */ public function getInstance() { if (!self::$instancia instanceof self) { self::$instancia = new self(); } return self::$instancia; }
/** * Construct of the class */ function __construct() { $this->_objError = ServiceErrors::getInstance(); $this->serviceConfig = new ServiceConfig(); }