1 | <?php |
||
14 | class UpdateConfigQuery extends ParametrizedMigrationQuery |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritDoc} |
||
18 | */ |
||
19 | public function getDescription() |
||
20 | { |
||
21 | $logger = new ArrayLogger(); |
||
22 | $this->doExecute($logger, true); |
||
23 | |||
24 | return $logger->getMessages(); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * {@inheritDoc} |
||
29 | */ |
||
30 | public function execute(LoggerInterface $logger) |
||
34 | |||
35 | /** |
||
36 | * @param LoggerInterface $logger |
||
37 | * @param bool $dryRun |
||
38 | * |
||
39 | * @throws \Doctrine\DBAL\DBALException |
||
40 | */ |
||
41 | protected function doExecute(LoggerInterface $logger, $dryRun = false) |
||
52 | |||
53 | /** |
||
54 | * @param string $className |
||
55 | * @param string $data |
||
56 | * @param LoggerInterface $logger |
||
57 | */ |
||
58 | protected function updateEntityData($className, $data, $logger) |
||
80 | |||
81 | /** |
||
82 | * @param LoggerInterface $logger |
||
83 | * @param $sql |
||
84 | * @param array $parameters |
||
85 | * @throws \Doctrine\DBAL\DBALException |
||
86 | */ |
||
87 | protected function executeQuery(LoggerInterface $logger, $sql, array $parameters = []) |
||
93 | } |
||
94 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.