Merge pull request #15826 from seamuslee001/dev_core_183_dedupe
[civicrm-core.git] / CRM / Utils / Geocode.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 */
17
18 /**
19 * Class CRM_Utils_Geocode
20 */
21 class CRM_Utils_Geocode {
22
23 /**
24 * @deprecated
25 *
26 * @todo Remove this method. In case people are calling this downstream (which
27 * is unsupported usage), we'll deprecate it for a few releases before
28 * removing it altogether.
29 *
30 * @return string|''
31 * Class name, or empty.
32 */
33 public static function getProviderClass() {
34 Civi::log()->warning(
35 'CRM_Utils_Geocode is deprecated and will be removed from core soon, use CRM_Utils_GeocodeProvider::getUsableClassName()',
36 ['civi.tag' => 'deprecated']
37 );
38
39 return (string) CRM_Utils_GeocodeProvider::getUsableClassName();
40 }
41
42 }