@@ -8,13 +8,25 @@ |
||
| 8 | 8 | |
| 9 | 9 | public function addExportField($name, $header); |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @return void |
|
| 13 | + */ |
|
| 11 | 14 | public function buildIterator(); |
| 12 | 15 | |
| 13 | 16 | public function getIterator(); |
| 14 | 17 | |
| 18 | + /** |
|
| 19 | + * @return void |
|
| 20 | + */ |
|
| 15 | 21 | public function buildFilters(); |
| 16 | 22 | |
| 23 | + /** |
|
| 24 | + * @return void |
|
| 25 | + */ |
|
| 17 | 26 | public function buildExportFields(); |
| 18 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $columnName |
|
| 30 | + */ |
|
| 19 | 31 | public function getStringValue($item, $columnName); |
| 20 | 32 | } |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | * |
| 235 | 235 | * @Route("/export.{_format}", requirements={"_format" = "csv|ods|xlsx"}, name="KunstmaanTranslatorBundle_settings_translations_export", methods={"GET", "POST"}) |
| 236 | 236 | * |
| 237 | - * @return array |
|
| 237 | + * @return Response |
|
| 238 | 238 | */ |
| 239 | 239 | public function exportAction(Request $request, $_format) |
| 240 | 240 | { |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | return $this->exportFields; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $header |
|
| 94 | + */ |
|
| 92 | 95 | public function addExportField($name, $header, $template = null, FieldAlias $alias = null) |
| 93 | 96 | { |
| 94 | 97 | $this->exportFields[] = new Field($name, $header); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * You can override this method to return the correct entity manager when using multiple databases ... |
| 19 | 19 | * |
| 20 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
| 20 | + * @return \Doctrine\Persistence\ObjectManager |
|
| 21 | 21 | */ |
| 22 | 22 | protected function getEntityManager() |
| 23 | 23 | { |
@@ -29,6 +29,8 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * {@inheritdoc} |
| 32 | + * @param string $path |
|
| 33 | + * @param string $filter |
|
| 32 | 34 | */ |
| 33 | 35 | protected function getFileUrl($path, $filter) |
| 34 | 36 | { |
@@ -75,6 +77,7 @@ discard block |
||
| 75 | 77 | |
| 76 | 78 | /** |
| 77 | 79 | * Copy from \Liip\ImagineBundle\Imagine\Cache\Resolver\WebPathResolver::getFullPath |
| 80 | + * @param string $path |
|
| 78 | 81 | */ |
| 79 | 82 | private function getFullPath($path, $filter) |
| 80 | 83 | { |
@@ -47,7 +47,6 @@ |
||
| 47 | 47 | /** |
| 48 | 48 | * NodeTranslationListener constructor. |
| 49 | 49 | * |
| 50 | - * @param SessionInterface|FlashBagInterface $session |
|
| 51 | 50 | * @param LoggerInterface $logger |
| 52 | 51 | * @param SlugifierInterface $slugifier |
| 53 | 52 | * @param RequestStack $requestStack |
@@ -27,6 +27,10 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | private $lockEnabled; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param integer $threshold |
|
| 32 | + * @param boolean $lockEnabled |
|
| 33 | + */ |
|
| 30 | 34 | public function __construct(ObjectManager $em, $threshold, $lockEnabled) |
| 31 | 35 | { |
| 32 | 36 | $this->setObjectManager($em); |
@@ -162,7 +166,7 @@ discard block |
||
| 162 | 166 | * @param LockableEntity $entity |
| 163 | 167 | * @param User $userToExclude |
| 164 | 168 | * |
| 165 | - * @return EntityVersionLock[] |
|
| 169 | + * @return \Kunstmaan\AdminListBundle\Repository\EntityVersionLock[] |
|
| 166 | 170 | */ |
| 167 | 171 | protected function getEntityVersionLocksByLockableEntity(LockableEntity $entity, /*\Kunstmaan\AdminBundle\Entity\UserInterface*/ $userToExclude = null) |
| 168 | 172 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | private $shouldStop = false; |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * @param string $rootDir |
|
| 39 | + * @param string $projectDir |
|
| 40 | 40 | */ |
| 41 | 41 | public function __construct(string $projectDir) |
| 42 | 42 | { |
@@ -64,6 +64,10 @@ discard block |
||
| 64 | 64 | ); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param InputInterface $input |
|
| 69 | + * @param OutputInterface $output |
|
| 70 | + */ |
|
| 67 | 71 | private function initAssistant($input, $output) |
| 68 | 72 | { |
| 69 | 73 | if (is_null($this->assistant)) { |
@@ -171,6 +175,9 @@ discard block |
||
| 171 | 175 | return 0; |
| 172 | 176 | } |
| 173 | 177 | |
| 178 | + /** |
|
| 179 | + * @param string $command |
|
| 180 | + */ |
|
| 174 | 181 | protected function executeCommand(OutputInterface $output, $command, array $options = [], $separateProcess = false) |
| 175 | 182 | { |
| 176 | 183 | $options = array_merge(['--no-debug' => true], $options); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @return array |
|
| 66 | + * @return string[] |
|
| 67 | 67 | */ |
| 68 | 68 | public function getHosts() |
| 69 | 69 | { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
| 168 | - * @param string|int $id |
|
| 168 | + * @param integer $id |
|
| 169 | 169 | */ |
| 170 | 170 | public function getFullHostById($id) |
| 171 | 171 | { |