Skip to content

Commit

Permalink
#469 enum p1
Browse files Browse the repository at this point in the history
  • Loading branch information
eventhorizonpl committed Jan 26, 2022
1 parent 915e4da commit d382a8e
Show file tree
Hide file tree
Showing 21 changed files with 88 additions and 88 deletions.
6 changes: 3 additions & 3 deletions src/Enum/AccountOperationTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace App\Enum;

class AccountOperationTypeEnum
enum AccountOperationTypeEnum: string
{
public const DEPOSIT = 'deposit';
public const WITHDRAW = 'withdraw';
case DEPOSIT = 'deposit';
case WITHDRAW = 'withdraw';
}
10 changes: 5 additions & 5 deletions src/Enum/AchievementTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace App\Enum;

class AchievementTypeEnum
enum AchievementTypeEnum: string
{
public const COMPLETED_ROUTINE = 'completed_routine';
public const COMPLETED_GOAL = 'completed_goal';
public const COMPLETED_PROJECT = 'completed_project';
public const CREATED_NOTE = 'created_note';
case COMPLETED_ROUTINE = 'completed_routine';
case COMPLETED_GOAL = 'completed_goal';
case COMPLETED_PROJECT = 'completed_project';
case CREATED_NOTE = 'created_note';
}
6 changes: 3 additions & 3 deletions src/Enum/AnswerTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace App\Enum;

class AnswerTypeEnum
enum AnswerTypeEnum: string
{
public const DEFINED = 'defined';
public const OWN = 'own';
case DEFINED = 'defined';
case OWN = 'own';
}
14 changes: 7 additions & 7 deletions src/Enum/ContactStatusEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace App\Enum;

class ContactStatusEnum
enum ContactStatusEnum: string
{
public const CLOSED = 'closed';
public const ON_HOLD = 'on_hold';
public const OPEN = 'open';
public const PENDING = 'pending';
public const SOLVED = 'solved';
public const SPAM = 'spam';
case CLOSED = 'closed';
case ON_HOLD = 'on_hold';
case OPEN = 'open';
case PENDING = 'pending';
case SOLVED = 'solved';
case SPAM = 'spam';
}
6 changes: 3 additions & 3 deletions src/Enum/ContactTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace App\Enum;

class ContactTypeEnum
enum ContactTypeEnum: string
{
public const FEATURE_IDEA = 'feature_idea';
public const QUESTION = 'question';
case FEATURE_IDEA = 'feature_idea';
case QUESTION = 'question';
}
6 changes: 3 additions & 3 deletions src/Enum/ProfileThemeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace App\Enum;

class ProfileThemeEnum
enum ProfileThemeEnum: string
{
public const DARK = 'dark';
public const LIGHT = 'light';
case DARK = 'dark';
case LIGHT = 'light';
}
8 changes: 4 additions & 4 deletions src/Enum/PromotionTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace App\Enum;

class PromotionTypeEnum
enum PromotionTypeEnum: string
{
public const EXISTING_ACCOUNT = 'existing_account';
public const NEW_ACCOUNT = 'new_account';
public const SYSTEM = 'system';
case EXISTING_ACCOUNT = 'existing_account';
case NEW_ACCOUNT = 'new_account';
case SYSTEM = 'system';
}
6 changes: 3 additions & 3 deletions src/Enum/QuestionTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace App\Enum;

class QuestionTypeEnum
enum QuestionTypeEnum: string
{
public const MULTIPLE_ANSWER = 'multiple_answer';
public const SINGLE_ANSWER = 'single_answer';
case MULTIPLE_ANSWER = 'multiple_answer';
case SINGLE_ANSWER = 'single_answer';
}
6 changes: 3 additions & 3 deletions src/Enum/ReminderMessageThirdPartySystemTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace App\Enum;

class ReminderMessageThirdPartySystemTypeEnum
enum ReminderMessageThirdPartySystemTypeEnum: string
{
public const AMAZON_SES = 'amazon_ses';
public const AMAZON_SNS = 'amazon_sns';
case AMAZON_SES = 'amazon_ses';
case AMAZON_SNS = 'amazon_sns';
}
8 changes: 4 additions & 4 deletions src/Enum/ReminderMessageTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace App\Enum;

class ReminderMessageTypeEnum
enum ReminderMessageTypeEnum: string
{
public const BROWSER = 'browser';
public const EMAIL = 'email';
public const SMS = 'sms';
case BROWSER = 'browser';
case EMAIL = 'email';
case SMS = 'sms';
}
18 changes: 9 additions & 9 deletions src/Enum/ReminderTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace App\Enum;

class ReminderTypeEnum
enum ReminderTypeEnum: string
{
public const DAILY = 'daily';
public const FRIDAY = 'friday';
public const MONDAY = 'monday';
public const SATURDAY = 'saturday';
public const SUNDAY = 'sunday';
public const THURSDAY = 'thursday';
public const TUESDAY = 'tuesday';
public const WEDNESDAY = 'wednesday';
case DAILY = 'daily';
case FRIDAY = 'friday';
case MONDAY = 'monday';
case SATURDAY = 'saturday';
case SUNDAY = 'sunday';
case THURSDAY = 'thursday';
case TUESDAY = 'tuesday';
case WEDNESDAY = 'wednesday';
}
10 changes: 5 additions & 5 deletions src/Enum/ReportDataKeyEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace App\Enum;

class ReportDataKeyEnum
enum ReportDataKeyEnum: string
{
public const CREATE_SENT_REMINDER = 'create_sent_reminder';
public const REMINDER = 'reminder';
public const REMINDER_MESSAGE = 'reminder_message';
public const SENT_REMINDER = 'sent_reminder';
case CREATE_SENT_REMINDER = 'create_sent_reminder';
case REMINDER = 'reminder';
case REMINDER_MESSAGE = 'reminder_message';
case SENT_REMINDER = 'sent_reminder';
}
8 changes: 4 additions & 4 deletions src/Enum/ReportStatusEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace App\Enum;

class ReportStatusEnum
enum ReportStatusEnum: string
{
public const FINISHED = 'finished';
public const INITIAL = 'initial';
public const IN_PROGRESS = 'in_progress';
case FINISHED = 'finished';
case INITIAL = 'initial';
case IN_PROGRESS = 'in_progress';
}
4 changes: 2 additions & 2 deletions src/Enum/ReportTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Enum;

class ReportTypeEnum
enum ReportTypeEnum: string
{
public const POST_REMIND_MESSAGES = 'post_remind_messages';
case POST_REMIND_MESSAGES = 'post_remind_messages';
}
8 changes: 4 additions & 4 deletions src/Enum/RewardTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace App\Enum;

class RewardTypeEnum
enum RewardTypeEnum: string
{
public const ALL = 'all';
public const COMPLETED_ROUTINE = 'completed_routine';
public const COMPLETED_GOAL = 'completed_goal';
case ALL = 'all';
case COMPLETED_ROUTINE = 'completed_routine';
case COMPLETED_GOAL = 'completed_goal';
}
10 changes: 5 additions & 5 deletions src/Enum/RoutineTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace App\Enum;

class RoutineTypeEnum
enum RoutineTypeEnum: string
{
public const HOBBY = 'hobby';
public const LEARNING = 'learning';
public const SPORT = 'sport';
public const WORK = 'work';
case HOBBY = 'hobby';
case LEARNING = 'learning';
case SPORT = 'sport';
case WORK = 'work';
}
6 changes: 3 additions & 3 deletions src/Enum/SavedEmailTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace App\Enum;

class SavedEmailTypeEnum
enum SavedEmailTypeEnum: string
{
public const INVITATION = 'invitation';
public const MOTIVATIONAL = 'motivational';
case INVITATION = 'invitation';
case MOTIVATIONAL = 'motivational';
}
8 changes: 4 additions & 4 deletions src/Enum/TestimonialStatusEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace App\Enum;

class TestimonialStatusEnum
enum TestimonialStatusEnum: string
{
public const ACCEPTED = 'accepted';
public const NEW = 'new';
public const REJECTED = 'rejected';
case ACCEPTED = 'accepted';
case NEW = 'new';
case REJECTED = 'rejected';
}
10 changes: 5 additions & 5 deletions src/Enum/UserKpiTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace App\Enum;

class UserKpiTypeEnum
enum UserKpiTypeEnum: string
{
public const ANNUALLY = 'annually';
public const DAILY = 'daily';
public const MONTHLY = 'monthly';
public const WEEKLY = 'weekly';
case ANNUALLY = 'annually';
case DAILY = 'daily';
case MONTHLY = 'monthly';
case WEEKLY = 'weekly';
}
8 changes: 4 additions & 4 deletions src/Enum/UserRoleEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace App\Enum;

class UserRoleEnum
enum UserRoleEnum: string
{
public const ROLE_ADMIN = 'ROLE_ADMIN';
public const ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN';
public const ROLE_USER = 'ROLE_USER';
case ROLE_ADMIN = 'ROLE_ADMIN';
case ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN';
case ROLE_USER = 'ROLE_USER';
}
10 changes: 5 additions & 5 deletions src/Enum/UserTypeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace App\Enum;

class UserTypeEnum
enum UserTypeEnum: string
{
public const CUSTOMER = 'customer';
public const LEAD = 'lead';
public const PROSPECT = 'prospect';
public const STAFF = 'staff';
case CUSTOMER = 'customer';
case LEAD = 'lead';
case PROSPECT = 'prospect';
case STAFF = 'staff';
}

0 comments on commit d382a8e

Please sign in to comment.