mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #10666 from ogasser/appframework_db_tests
Make Entity properties ```protected``` as in docs
This commit is contained in:
commit
13012fb5f7
2 changed files with 7 additions and 7 deletions
|
|
@ -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 {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue