Make Entity properties ```protected``` as in docs
Entity properties are marked as ```protected``` to correctly reflect the documentation. See also owncloud/documentation@644f2eedac
This commit is contained in:
parent
c35d60f6d8
commit
47a2e31c93
|
@ -37,10 +37,10 @@ namespace OCP\AppFramework\Db;
|
||||||
* @method void setPreName(string $preName)
|
* @method void setPreName(string $preName)
|
||||||
*/
|
*/
|
||||||
class TestEntity extends Entity {
|
class TestEntity extends Entity {
|
||||||
public $name;
|
protected $name;
|
||||||
public $email;
|
protected $email;
|
||||||
public $testId;
|
protected $testId;
|
||||||
public $preName;
|
protected $preName;
|
||||||
|
|
||||||
public function __construct($name=null){
|
public function __construct($name=null){
|
||||||
$this->addType('testId', 'integer');
|
$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)
|
* @method void setPreName(string $preName)
|
||||||
*/
|
*/
|
||||||
class Example extends Entity {
|
class Example extends Entity {
|
||||||
public $preName;
|
protected $preName;
|
||||||
public $email;
|
protected $email;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue