Thiemo Mättig (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/191603

Change subject: Private by default in Summary class
......................................................................

Private by default in Summary class

And rename one of the nowprivate properties.

Change-Id: I9b794a2ef9861bef395ffff2e8f66cd2d539d0bc
---
M lib/includes/Summary.php
1 file changed, 9 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/03/191603/1

diff --git a/lib/includes/Summary.php b/lib/includes/Summary.php
index ab32b9b..541f9a5 100644
--- a/lib/includes/Summary.php
+++ b/lib/includes/Summary.php
@@ -19,32 +19,32 @@
        /**
         * @var string|null
         */
-       protected $moduleName;
+       private $moduleName;
 
        /**
         * @var string|null
         */
-       protected $actionName;
+       private $actionName;
 
        /**
         * @var string|null
         */
-       protected $language;
+       private $languageCode;
 
        /**
         * @var array
         */
-       protected $commentArgs;
+       private $commentArgs;
 
        /**
         * @var array
         */
-       protected $summaryArgs;
+       private $summaryArgs;
 
        /**
         * @var string
         */
-       protected $userSummary;
+       private $userSummary;
 
        /**
         * Indicates a specific type of formatting
@@ -71,7 +71,7 @@
        ) {
                $this->moduleName = $moduleName;
                $this->actionName = $actionName;
-               $this->language = $languageCode === null ? null : 
(string)$languageCode;
+               $this->languageCode = $languageCode === null ? null : 
(string)$languageCode;
                $this->commentArgs = $commentArgs;
                $this->summaryArgs = $summaryArgs;
        }
@@ -95,7 +95,7 @@
         * @param string|null $languageCode
         */
        public function setLanguage( $languageCode = null ) {
-               $this->language = $languageCode === null ? null : 
(string)$languageCode;
+               $this->languageCode = $languageCode === null ? null : 
(string)$languageCode;
        }
 
        /**
@@ -161,7 +161,7 @@
         * @return string|null
         */
        public function getLanguageCode() {
-               return $this->language;
+               return $this->languageCode;
        }
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/191603
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b794a2ef9861bef395ffff2e8f66cd2d539d0bc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to