-
Notifications
You must be signed in to change notification settings - Fork 14
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
[WIP] ContactUs package #143
base: master
Are you sure you want to change the base?
Conversation
Also is there any need for providing composer.json file as part of this PR ? |
'contact_id' => (string) $this->contact_id, | ||
'name' => (string) $this->name, | ||
'email' => (string) $this->email, | ||
'phone' => $this->phone, |
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.
You can put (string) here too.
* | ||
* @return array|\ArrayObject|null | ||
*/ | ||
public function getById($contactId) |
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.
Here (and in all code generaly) you can use PHP7 return type.
there will be recommended to return ContactUs entity.
In that case you should check if result is null and throw exception if it is.
Mapper will return ContactUs by default.
We are planning to add return types in all code :)
Sry for the delay I hope that next time I will be faster. What you can improve:
Everything else is perfect :) |
Thanks for feedback, I'll send PR soon :) |
I have problem for sending POST onto Web Action.
I need to provide form filtering/error preview for ContactUsAction (Created view script, form, routes).
If someone can see where i came up and provide some hints.
TODO: