Fixed coding conventions in entities
This commit is contained in:
parent
4174cc05d5
commit
3cb9955ec6
8 changed files with 35 additions and 35 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Szurubooru\Entities;
|
namespace Szurubooru\Entities;
|
||||||
|
|
||||||
class Comment extends Entity
|
final class Comment extends Entity
|
||||||
{
|
{
|
||||||
private $postId;
|
private $postId;
|
||||||
private $userId;
|
private $userId;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Szurubooru\Entities;
|
namespace Szurubooru\Entities;
|
||||||
|
|
||||||
class Favorite extends Entity
|
final class Favorite extends Entity
|
||||||
{
|
{
|
||||||
private $postId;
|
private $postId;
|
||||||
private $userId;
|
private $userId;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Szurubooru\Entities;
|
namespace Szurubooru\Entities;
|
||||||
|
|
||||||
class GlobalParam extends Entity
|
final class GlobalParam extends Entity
|
||||||
{
|
{
|
||||||
const KEY_FEATURED_POST = 'featuredPost';
|
const KEY_FEATURED_POST = 'featuredPost';
|
||||||
const KEY_POST_SIZE = 'postSize';
|
const KEY_POST_SIZE = 'postSize';
|
||||||
|
|
|
@ -23,21 +23,21 @@ final class Post extends Entity
|
||||||
const META_COMMENT_COUNT = 'commentCount';
|
const META_COMMENT_COUNT = 'commentCount';
|
||||||
const META_SCORE = 'score';
|
const META_SCORE = 'score';
|
||||||
|
|
||||||
protected $name;
|
private $name;
|
||||||
protected $userId;
|
private $userId;
|
||||||
protected $uploadTime;
|
private $uploadTime;
|
||||||
protected $lastEditTime;
|
private $lastEditTime;
|
||||||
protected $safety;
|
private $safety;
|
||||||
protected $contentType;
|
private $contentType;
|
||||||
protected $contentChecksum;
|
private $contentChecksum;
|
||||||
protected $contentMimeType;
|
private $contentMimeType;
|
||||||
protected $source;
|
private $source;
|
||||||
protected $imageWidth;
|
private $imageWidth;
|
||||||
protected $imageHeight;
|
private $imageHeight;
|
||||||
protected $originalFileSize;
|
private $originalFileSize;
|
||||||
protected $originalFileName;
|
private $originalFileName;
|
||||||
protected $featureCount = 0;
|
private $featureCount = 0;
|
||||||
protected $lastFeatureTime;
|
private $lastFeatureTime;
|
||||||
|
|
||||||
public function getIdMarkdown()
|
public function getIdMarkdown()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Szurubooru\Entities;
|
namespace Szurubooru\Entities;
|
||||||
|
|
||||||
class Score extends Entity
|
final class Score extends Entity
|
||||||
{
|
{
|
||||||
private $postId;
|
private $postId;
|
||||||
private $userId;
|
private $userId;
|
||||||
|
|
|
@ -3,7 +3,7 @@ namespace Szurubooru\Entities;
|
||||||
|
|
||||||
final class Tag extends Entity
|
final class Tag extends Entity
|
||||||
{
|
{
|
||||||
protected $name;
|
private $name;
|
||||||
|
|
||||||
const META_USAGES = 'usages';
|
const META_USAGES = 'usages';
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ final class Token extends Entity
|
||||||
const PURPOSE_ACTIVATE = 2;
|
const PURPOSE_ACTIVATE = 2;
|
||||||
const PURPOSE_PASSWORD_RESET = 3;
|
const PURPOSE_PASSWORD_RESET = 3;
|
||||||
|
|
||||||
protected $name;
|
private $name;
|
||||||
protected $purpose;
|
private $purpose;
|
||||||
protected $additionalData;
|
private $additionalData;
|
||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,18 +16,18 @@ final class User extends Entity
|
||||||
|
|
||||||
const LAZY_LOADER_CUSTOM_AVATAR_SOURCE_CONTENT = 'customAvatarContent';
|
const LAZY_LOADER_CUSTOM_AVATAR_SOURCE_CONTENT = 'customAvatarContent';
|
||||||
|
|
||||||
protected $name;
|
private $name;
|
||||||
protected $email;
|
private $email;
|
||||||
protected $emailUnconfirmed;
|
private $emailUnconfirmed;
|
||||||
protected $passwordHash;
|
private $passwordHash;
|
||||||
protected $passwordSalt;
|
private $passwordSalt;
|
||||||
protected $accessRank;
|
private $accessRank;
|
||||||
protected $registrationTime;
|
private $registrationTime;
|
||||||
protected $lastLoginTime;
|
private $lastLoginTime;
|
||||||
protected $avatarStyle;
|
private $avatarStyle;
|
||||||
protected $browsingSettings;
|
private $browsingSettings;
|
||||||
protected $accountConfirmed = false;
|
private $accountConfirmed = false;
|
||||||
protected $banned = false;
|
private $banned = false;
|
||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue