1 | <?php |
||
54 | class ContactController extends AbstractActionController |
||
55 | { |
||
56 | /** |
||
57 | * THe storage of the form-object |
||
58 | * |
||
59 | * @var ContactForm $form |
||
60 | */ |
||
61 | protected $form; |
||
62 | |||
63 | /** |
||
64 | * Storage of the message |
||
65 | * |
||
66 | * @var Message $message |
||
67 | */ |
||
68 | protected $message = null; |
||
69 | |||
70 | /** |
||
71 | * Storage of the default transport |
||
72 | * |
||
73 | * @var Transport $transport |
||
74 | */ |
||
75 | protected $transport = null; |
||
76 | |||
77 | /** |
||
78 | * Create the Controller-Instance |
||
79 | * |
||
80 | * @param ContactForm $form |
||
81 | */ |
||
82 | public function __construct(ContactForm $form = null) |
||
88 | |||
89 | /** |
||
90 | * Set the default message |
||
91 | * |
||
92 | * @param Message $message the message to set as default |
||
93 | * |
||
94 | * @return ContactController |
||
95 | */ |
||
96 | public function setMessage(Message $message) |
||
101 | |||
102 | /** |
||
103 | * Set the default transport |
||
104 | * |
||
105 | * @param Transport $transport The transport to set as default |
||
106 | * |
||
107 | * @return ContactController |
||
108 | */ |
||
109 | public function setTransport(TransportInterface $transport) |
||
114 | |||
115 | /** |
||
116 | * Set the given form as contact-form |
||
117 | * |
||
118 | * @param ContactForm $form |
||
119 | * |
||
120 | * @return ContactController |
||
121 | */ |
||
122 | public function setContactForm(ContactForm $contactForm) |
||
128 | |||
129 | /** |
||
130 | * Display a contact-form |
||
131 | * |
||
132 | * @return void |
||
133 | */ |
||
134 | public function indexAction() |
||
138 | |||
139 | /** |
||
140 | * Process the form |
||
141 | * |
||
142 | * @return void |
||
143 | */ |
||
144 | public function processAction() |
||
166 | |||
167 | /** |
||
168 | * Send the email |
||
169 | * |
||
170 | * @param array $params The parameters to include in the email |
||
171 | * |
||
172 | * @return boolean |
||
173 | */ |
||
174 | protected function sendEmail($values) |
||
186 | |||
187 | /** |
||
188 | * Display a thank-you message |
||
189 | * |
||
190 | * @return void |
||
191 | */ |
||
192 | public function thankYouAction() |
||
205 | } |
||
206 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..