From 47a2e31c93b2c172bcc9ce84a3ebb9904b0fd612 Mon Sep 17 00:00:00 2001
From: Oliver Gasser <oliver@flowriver.net>
Date: Wed, 27 Aug 2014 13:28:04 +0200
Subject: [PATCH] Make Entity properties ```protected``` as in docs

Entity properties are marked as ```protected``` to correctly reflect the
documentation.

See also owncloud/documentation@644f2eedac8e912c3019366b29ecdfbd9a15c5d9
---
 tests/lib/appframework/db/EntityTest.php | 10 +++++-----
 tests/lib/appframework/db/mappertest.php |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/lib/appframework/db/EntityTest.php b/tests/lib/appframework/db/EntityTest.php
index 9de44b9b3b..d98cb54942 100644
--- a/tests/lib/appframework/db/EntityTest.php
+++ b/tests/lib/appframework/db/EntityTest.php
@@ -37,10 +37,10 @@ namespace OCP\AppFramework\Db;
  * @method void setPreName(string $preName)
  */
 class TestEntity extends Entity {
-	public $name;
-	public $email;
-	public $testId;
-	public $preName;
+	protected $name;
+	protected $email;
+	protected $testId;
+	protected $preName;
 
 	public function __construct($name=null){
 		$this->addType('testId', 'integer');		
@@ -220,4 +220,4 @@ class EntityTest extends \PHPUnit_Framework_TestCase {
 	}
 
 
-}
\ No newline at end of file
+}
diff --git a/tests/lib/appframework/db/mappertest.php b/tests/lib/appframework/db/mappertest.php
index 42aa1ade81..fd1acd0367 100644
--- a/tests/lib/appframework/db/mappertest.php
+++ b/tests/lib/appframework/db/mappertest.php
@@ -36,8 +36,8 @@ use Test\AppFramework\Db\MapperTestUtility;
  * @method void setPreName(string $preName)
  */
 class Example extends Entity {
-	public $preName;
-	public $email;
+	protected $preName;
+	protected $email;
 };
 
 
-- 
GitLab