These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\FormBundle\Helper; |
||
4 | |||
5 | use Kunstmaan\FormBundle\Entity\FormSubmission; |
||
6 | |||
7 | /** |
||
8 | * An interface for the mailers who want to send mails after submitting a form. |
||
9 | */ |
||
10 | interface FormMailerInterface |
||
11 | { |
||
12 | /** |
||
13 | * @param FormSubmission $submission The submission |
||
14 | * @param string $from The from address |
||
15 | * @param string $to The to address(es) seperated by \n |
||
16 | * @param string $subject The subject |
||
17 | */ |
||
18 | public function sendContactMail(FormSubmission $submission, $from, $to, $subject); |
||
0 ignored issues
–
show
|
|||
19 | } |
||
20 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.