[REF][PHP8.2] Declare properties in CRM_Contribute_Form_ContributionPage_Widget
authorBradley Taylor <hello@brad-taylor.co.uk>
Fri, 8 Dec 2023 17:35:43 +0000 (17:35 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Fri, 8 Dec 2023 17:35:43 +0000 (17:35 +0000)
CRM/Contribute/Form/ContributionPage/Widget.php

index a8b838cbb4bce5400dd79304ea7b945e9bc13899..4cb6185c82079a6826b704b6a25b9a27ca1f66ad 100644 (file)
  * @copyright CiviCRM LLC https://civicrm.org/licensing
  */
 class CRM_Contribute_Form_ContributionPage_Widget extends CRM_Contribute_Form_ContributionPage {
-  protected $_colors;
 
+  /**
+   * Configuration for each form field
+   *
+   * @var array
+   * @internal
+   */
+  public $_fields = [];
+
+  /**
+   * Configuration for each color field
+   *
+   * @var array
+   * @internal
+   */
+  public $_colorFields = [];
+
+  /**
+   * @var CRM_Contribute_DAO_Widget
+   */
   protected $_widget;
 
+  /**
+   * Name of the refresh button,
+   * used to display the widget preview
+   *
+   * @var string
+   */
+  protected $_refreshButtonName;
+
   public function preProcess() {
     parent::preProcess();
     $this->setSelectedChild('widget');