Completed
Push — master ( e62fa2...4391c3 )
by Kristof
133:20 queued 117:59
created

FormBundle/Helper/FormMailerInterface.php (1 issue)

Upgrade to new PHP Analysis Engine

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
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

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.

Loading history...
19
}
20