@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class StaticColumn extends AbstractColumn |
6 | 6 | { |
7 | + /** |
|
8 | + * @param string $label |
|
9 | + */ |
|
7 | 10 | public function __construct($label = null, $order = 0) |
8 | 11 | { |
9 | 12 | parent::__construct(null, $label, $order); |
@@ -49,6 +49,9 @@ |
||
49 | 49 | return $this->options[$option]; |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param string $alias |
|
54 | + */ |
|
52 | 55 | public function addColumn(ColumnInterface $column, $alias = null) |
53 | 56 | { |
54 | 57 | if (null !== $alias) { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Console\Output\OutputInterface; |
6 | 6 | use Symfony\Component\Console\Helper\HelperSet; |
7 | -use Symfony\Component\OptionsResolver\Options; |
|
8 | 7 | use Symfony\Component\OptionsResolver\OptionsResolver; |
9 | 8 | use Datatheke\Bundle\PagerBundle\Pager\PagerInterface; |
10 | 9 | use Datatheke\Bundle\PagerBundle\Pager\OrderBy; |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $alias |
|
33 | + */ |
|
31 | 34 | public function addField(Field $field, $alias = null) |
32 | 35 | { |
33 | 36 | if (null !== $alias) { |
@@ -282,6 +285,9 @@ discard block |
||
282 | 285 | return $this; |
283 | 286 | } |
284 | 287 | |
288 | + /** |
|
289 | + * @param string $paramName |
|
290 | + */ |
|
285 | 291 | protected function buildCriteria(QueryBuilder $builder, $qualifier, $operator, $value, $paramName) |
286 | 292 | { |
287 | 293 | $expr = $builder->expr(); |
@@ -86,6 +86,9 @@ |
||
86 | 86 | return new ConsolePager($adapter, $handler, array_merge($defaults, $options)); |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @param string $name |
|
91 | + */ |
|
89 | 92 | protected function createHandler($name, $list) |
90 | 93 | { |
91 | 94 | if (!isset($list[$name])) { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Console\Output\OutputInterface; |
6 | 6 | use Symfony\Component\Console\Helper\HelperSet; |
7 | -use Symfony\Component\OptionsResolver\Options; |
|
8 | 7 | use Symfony\Component\OptionsResolver\OptionsResolver; |
9 | 8 | use Datatheke\Bundle\PagerBundle\Pager\PagerInterface; |
10 | 9 | use Datatheke\Bundle\PagerBundle\Pager\OrderBy; |
@@ -68,6 +68,9 @@ |
||
68 | 68 | $this->themes->attach($datagrid, $resources); |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param DataGridViewInterface $datagrid |
|
73 | + */ |
|
71 | 74 | protected function render(\Twig_Environment $env, $datagrid, $blocks, $params = array()) |
72 | 75 | { |
73 | 76 | if (!is_array($blocks)) { |
@@ -86,6 +86,9 @@ |
||
86 | 86 | return new ConsolePager($adapter, $handler, array_merge($defaults, $options)); |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @param string $name |
|
91 | + */ |
|
89 | 92 | protected function createHandler($name, $list) |
90 | 93 | { |
91 | 94 | if (!isset($list[$name])) { |