Fixed coding conventions in entities

This commit is contained in:
Marcin Kurczewski 2014-10-06 21:09:19 +02:00
parent 4174cc05d5
commit 3cb9955ec6
8 changed files with 35 additions and 35 deletions

View file

@ -1,7 +1,7 @@
<?php
namespace Szurubooru\Entities;
class Comment extends Entity
final class Comment extends Entity
{
private $postId;
private $userId;

View file

@ -1,7 +1,7 @@
<?php
namespace Szurubooru\Entities;
class Favorite extends Entity
final class Favorite extends Entity
{
private $postId;
private $userId;

View file

@ -1,7 +1,7 @@
<?php
namespace Szurubooru\Entities;
class GlobalParam extends Entity
final class GlobalParam extends Entity
{
const KEY_FEATURED_POST = 'featuredPost';
const KEY_POST_SIZE = 'postSize';

View file

@ -23,21 +23,21 @@ final class Post extends Entity
const META_COMMENT_COUNT = 'commentCount';
const META_SCORE = 'score';
protected $name;
protected $userId;
protected $uploadTime;
protected $lastEditTime;
protected $safety;
protected $contentType;
protected $contentChecksum;
protected $contentMimeType;
protected $source;
protected $imageWidth;
protected $imageHeight;
protected $originalFileSize;
protected $originalFileName;
protected $featureCount = 0;
protected $lastFeatureTime;
private $name;
private $userId;
private $uploadTime;
private $lastEditTime;
private $safety;
private $contentType;
private $contentChecksum;
private $contentMimeType;
private $source;
private $imageWidth;
private $imageHeight;
private $originalFileSize;
private $originalFileName;
private $featureCount = 0;
private $lastFeatureTime;
public function getIdMarkdown()
{

View file

@ -1,7 +1,7 @@
<?php
namespace Szurubooru\Entities;
class Score extends Entity
final class Score extends Entity
{
private $postId;
private $userId;

View file

@ -3,7 +3,7 @@ namespace Szurubooru\Entities;
final class Tag extends Entity
{
protected $name;
private $name;
const META_USAGES = 'usages';

View file

@ -7,9 +7,9 @@ final class Token extends Entity
const PURPOSE_ACTIVATE = 2;
const PURPOSE_PASSWORD_RESET = 3;
protected $name;
protected $purpose;
protected $additionalData;
private $name;
private $purpose;
private $additionalData;
public function getName()
{

View file

@ -16,18 +16,18 @@ final class User extends Entity
const LAZY_LOADER_CUSTOM_AVATAR_SOURCE_CONTENT = 'customAvatarContent';
protected $name;
protected $email;
protected $emailUnconfirmed;
protected $passwordHash;
protected $passwordSalt;
protected $accessRank;
protected $registrationTime;
protected $lastLoginTime;
protected $avatarStyle;
protected $browsingSettings;
protected $accountConfirmed = false;
protected $banned = false;
private $name;
private $email;
private $emailUnconfirmed;
private $passwordHash;
private $passwordSalt;
private $accessRank;
private $registrationTime;
private $lastLoginTime;
private $avatarStyle;
private $browsingSettings;
private $accountConfirmed = false;
private $banned = false;
public function getName()
{