-
Notifications
You must be signed in to change notification settings - Fork 4
Exercise 1 and 2 Code Files #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: loyalty/buddy
Are you sure you want to change the base?
Exercise 1 and 2 Code Files #2
Conversation
use UserAccountSchema; | ||
|
||
/** string */ | ||
public const SUBSCRIPTION_TYPE_MONTHLY = 'monthly'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly alpha sort constants.
* | ||
* @return mixed[] | ||
*/ | ||
protected function doToArray(): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kindly sort method names
* | ||
* @return \App\External\Libraries\Auth | ||
*/ | ||
public function setApiKey(?ApiKey $apiKey = null): self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return type is AuthInterface
/** | ||
* @covers \App\Database\Entities\UserAccount | ||
*/ | ||
final class UserAccountTest extends DoctrineAnnotationsTestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alpha sort method names and constants
344f179
to
f30c2bc
Compare
- Exercise 1 and 2 code
@@ -4,6 +4,7 @@ | |||
namespace App\Database\Entities; | |||
|
|||
use App\Database\Schema\UserSchema; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly remove this line :)
|
||
/** string */ | ||
public const SUBSCRIPTION_TYPE_LIFETIME = 'lifetime'; | ||
public const SUBSCRIPTION_TYPE_MONTHLY = 'monthly'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly annotate as string
{ | ||
|
||
/** string */ | ||
public const SUBSCRIPTION_TYPE_LIFETIME = 'lifetime'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this constants here you may reuse from UserAccount
*/ | ||
protected function getIdProperty(): string | ||
{ | ||
return 'userAcctId'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly rename userAcctId to accountId, user and account doesn't have any relationship yet. a user may have multiple accounts or vice versa
Exercise 1 and Exercise 2 files