forked from GNUsocial/gnu-social
[ENTITY] Add Entity base class to all entities
This commit is contained in:
parent
d548dc9284
commit
c8e8f1f057
@ -19,6 +19,8 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
|
||||
/**
|
||||
* Entity for app configuration
|
||||
*
|
||||
@ -33,7 +35,7 @@ namespace App\Entity;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class Config
|
||||
class Config extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class ConfirmAddress
|
||||
class ConfirmAddress extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -33,7 +34,7 @@ use DateTimeInterface;
|
||||
* @copyright 2009-2014 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class Conversation
|
||||
class Conversation extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class FileThumbnail
|
||||
class FileThumbnail extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class FileToActivity
|
||||
class FileToNote extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class Follow
|
||||
class Follow extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
>>>>>>> e63aa4d971 ([TOOLS] Change autocode tag to allow editor folding)
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class FollowQueue
|
||||
class FollowQueue extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class GSActorBlock
|
||||
class GSActorBlock extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -17,6 +17,11 @@
|
||||
// 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
|
||||
*
|
||||
@ -31,12 +36,7 @@
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
class GSActorCircle
|
||||
class GSActorCircle extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class GSActorTagFollow
|
||||
class GSActorTagFollow extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class Group
|
||||
class Group extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class GroupAlias
|
||||
class GroupAlias extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class GroupBlock
|
||||
class GroupBlock extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class GroupInbox
|
||||
class GroupInbox extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class GroupJoinQueue
|
||||
class GroupJoinQueue extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class GroupMember
|
||||
class GroupMember extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class Invitation
|
||||
class Invitation extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class LocalGroup
|
||||
class LocalGroup extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class LocationService
|
||||
class LocationService extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -17,6 +17,11 @@
|
||||
// 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
|
||||
*
|
||||
@ -31,12 +36,7 @@
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use DateTimeInterface;
|
||||
|
||||
class NoteHashtag
|
||||
class NoteHashtag extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class NoteLocation
|
||||
class NoteLocation extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class NoteSource
|
||||
class NoteSource extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class Notification
|
||||
class Notification extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class RelatedGroup
|
||||
class RelatedGroup extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -33,7 +34,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class RememberMeToken
|
||||
class RememberMeToken extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class ReservedNickname
|
||||
class ReservedNickname extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class SmsCarrier
|
||||
class SmsCarrier extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -33,7 +34,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class UserLocationPrefs
|
||||
class UserLocationPrefs extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -31,7 +32,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class UserNotificationPrefs
|
||||
class UserNotificationPrefs extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Core\Entity;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ use DateTimeInterface;
|
||||
* @copyright 2020 Free Software Foundation, Inc http://www.fsf.org
|
||||
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
|
||||
*/
|
||||
class UserUrlShortenerPrefs
|
||||
class UserUrlShortenerPrefs extends Entity
|
||||
{
|
||||
// {{{ Autocode
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user