APIv4 - add descriptions to sql functions
[civicrm-core.git] / Civi / Api4 / Query / SqlFunctionYEAR.php
index 81b0ae52a57d0a308abfe0d35a90512e8e507dc2..f655000c437659aa195f85e6db8bb1ec9a393a30 100644 (file)
@@ -36,4 +36,11 @@ class SqlFunctionYEAR extends SqlFunction {
     return ts('Year Only');
   }
 
+  /**
+   * @return string
+   */
+  public static function getDescription(): string {
+    return ts('Only the year of a date.');
+  }
+
 }