public function __construct() { if (false === self::$_client instanceof GearmanClient) { self::$_client = new GearmanClient(); $this->_setupGearmanClient(); } }