1 | <?php |
||
20 | class Version20160823215458RemoveKnpMenuTemplate extends AbstractMigration implements ContainerAwareInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var Filesystem |
||
24 | */ |
||
25 | protected $fs; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $tpl; |
||
31 | |||
32 | /** |
||
33 | * @param ContainerInterface $container |
||
34 | */ |
||
35 | public function setContainer(ContainerInterface $container = null) |
||
40 | |||
41 | /** |
||
42 | * @param Schema $schema |
||
43 | */ |
||
44 | public function up(Schema $schema) |
||
48 | |||
49 | /** |
||
50 | * @param Schema $schema |
||
51 | */ |
||
52 | public function down(Schema $schema) |
||
56 | } |
||
57 |
If a variable is not always an object, we recommend to add an additional type check to ensure your method call is safe: