1 | <?php |
||
14 | class Version20160823215458RemoveKnpMenuTemplate extends AbstractMigration implements ContainerAwareInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var Filesystem |
||
18 | */ |
||
19 | protected $fs; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $tpl; |
||
25 | |||
26 | /** |
||
27 | * @param ContainerInterface $container |
||
28 | */ |
||
29 | public function setContainer(ContainerInterface $container = null) |
||
34 | |||
35 | /** |
||
36 | * @param Schema $schema |
||
37 | */ |
||
38 | public function up(Schema $schema) |
||
42 | |||
43 | /** |
||
44 | * @param Schema $schema |
||
45 | */ |
||
46 | public function down(Schema $schema) |
||
50 | } |
||
51 |
If a variable is not always an object, we recommend to add an additional type check to ensure your method call is safe: