]> git.mxchange.org Git - friendica.git/blob - src/Api/BaseEntity.php
Remove duplicate profile_uid key in App->profile array
[friendica.git] / src / Api / BaseEntity.php
1 <?php
2
3 namespace Friendica\Api;
4
5 /**
6  * The API entity classes are meant as data transfer objects. As such, their member should be protected.
7  * Then the JsonSerializable interface ensures the protected members will be included in a JSON encode situation.
8  *
9  * Constructors are supposed to take as arguments the Friendica dependencies/model/collection/data it needs to
10  * populate the class members.
11  */
12 abstract class BaseEntity implements \JsonSerializable
13 {
14         public function jsonSerialize()
15         {
16                 return get_object_vars($this);
17         }
18 }