1 | <?php |
||
11 | final class LegacyFormHelper |
||
12 | { |
||
13 | private static $map = array( |
||
14 | 'form' => 'Symfony\Component\Form\Extension\Core\Type\FormType', |
||
15 | 'email' => 'Symfony\Component\Form\Extension\Core\Type\EmailType', |
||
16 | 'text' => 'Symfony\Component\Form\Extension\Core\Type\TextType', |
||
17 | 'submit' => 'Symfony\Component\Form\Extension\Core\Type\SubmitType', |
||
18 | 'button' => 'Symfony\Component\Form\Extension\Core\Type\ButtonType', |
||
19 | 'collection' => 'Symfony\Component\Form\Extension\Core\Type\CollectionType' |
||
20 | ); |
||
21 | |||
22 | public static function getType($class) |
||
34 | |||
35 | public static function isLegacy() |
||
39 | |||
40 | private function __construct() |
||
43 | |||
44 | private function __clone() |
||
47 | } |
||
48 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.