[ENTITY] Add Entity base class to all entities

This commit is contained in:
Hugo Sales 2020-08-15 06:18:23 +00:00 committed by Hugo Sales
parent d548dc9284
commit c8e8f1f057
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
30 changed files with 69 additions and 40 deletions

View File

@ -19,6 +19,8 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
/** /**
* Entity for app configuration * Entity for app configuration
* *
@ -33,7 +35,7 @@ namespace App\Entity;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class Config class Config extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class ConfirmAddress class ConfirmAddress extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -33,7 +34,7 @@ use DateTimeInterface;
* @copyright 2009-2014 Free Software Foundation, Inc http://www.fsf.org * @copyright 2009-2014 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class Conversation class Conversation extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class FileThumbnail class FileThumbnail extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class FileToActivity class FileToNote extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class Follow class Follow extends Entity
{ {
// {{{ Autocode // {{{ Autocode
>>>>>>> e63aa4d971 ([TOOLS] Change autocode tag to allow editor folding) >>>>>>> e63aa4d971 ([TOOLS] Change autocode tag to allow editor folding)

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class FollowQueue class FollowQueue extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class GSActorBlock class GSActorBlock extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -17,6 +17,11 @@
// along with GNU social. If not, see <http://www.gnu.org/licenses/>. // along with GNU social. If not, see <http://www.gnu.org/licenses/>.
// }}} // }}}
namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface;
/** /**
* Entity for List of gsactors * Entity for List of gsactors
* *
@ -31,12 +36,7 @@
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class GSActorCircle extends Entity
namespace App\Entity;
use DateTimeInterface;
class GSActorCircle
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class GSActorTagFollow class GSActorTagFollow extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class Group class Group extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class GroupAlias class GroupAlias extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class GroupBlock class GroupBlock extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class GroupInbox class GroupInbox extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class GroupJoinQueue class GroupJoinQueue extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class GroupMember class GroupMember extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class Invitation class Invitation extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class LocalGroup class LocalGroup extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class LocationService class LocationService extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -17,6 +17,11 @@
// along with GNU social. If not, see <http://www.gnu.org/licenses/>. // along with GNU social. If not, see <http://www.gnu.org/licenses/>.
// }}} // }}}
namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface;
/** /**
* Entity for Notice Tag * Entity for Notice Tag
* *
@ -31,12 +36,7 @@
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class NoteHashtag extends Entity
namespace App\Entity;
use DateTimeInterface;
class NoteHashtag
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class NoteLocation class NoteLocation extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class NoteSource class NoteSource extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class Notification class Notification extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class RelatedGroup class RelatedGroup extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -21,6 +21,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -33,7 +34,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class RememberMeToken class RememberMeToken extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class ReservedNickname class ReservedNickname extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class SmsCarrier class SmsCarrier extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -33,7 +34,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class UserLocationPrefs class UserLocationPrefs extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -31,7 +32,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class UserNotificationPrefs class UserNotificationPrefs extends Entity
{ {
// {{{ Autocode // {{{ Autocode

View File

@ -19,6 +19,7 @@
namespace App\Entity; namespace App\Entity;
use App\Core\Entity;
use DateTimeInterface; use DateTimeInterface;
/** /**
@ -35,7 +36,7 @@ use DateTimeInterface;
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/ */
class UserUrlShortenerPrefs class UserUrlShortenerPrefs extends Entity
{ {
// {{{ Autocode // {{{ Autocode