RecurringEdit - Typehint getters/setters. Make property name conformant.
authorTim Otten <totten@civicrm.org>
Wed, 15 Sep 2021 23:07:58 +0000 (16:07 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 15 Sep 2021 23:25:03 +0000 (16:25 -0700)
CRM/Contribute/WorkflowMessage/RecurringEdit.php

index 3af455351e9f99c6a78d9389661336e7c09a8106..c736686cf4b02f15b9a8f25f2372770cb9c308cd 100644 (file)
@@ -1,5 +1,11 @@
 <?php
 
+/**
+ * @method array getContact()
+ * @method $this setContact(array $contact)
+ * @method array getContributionRecur()
+ * @method $this setContributionRecur(array $contributionRecur)
+ */
 class CRM_Contribute_WorkflowMessage_RecurringEdit extends Civi\WorkflowMessage\GenericWorkflowMessage {
   const WORKFLOW = 'contribution_recurring_edit';
 
@@ -19,11 +25,11 @@ class CRM_Contribute_WorkflowMessage_RecurringEdit extends Civi\WorkflowMessage\
    *
    * @var array|null
    *
-   * @scope tokenContext
+   * @scope tokenContext as contribution_recur
    *
    * @required
    */
-  public $contribution_recur;
+  public $contributionRecur;
 
   protected function exportExtraTokenContext(array &$export): void {
     $export['smartyTokenAlias']['installments'] = 'contribution_recur.installments';