@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\FSi\Bundle\AdminBundle\Display\Property\Formatter; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class BooleanSpec extends ObjectBehavior |
9 | 8 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\FSi\Bundle\AdminBundle\Display\Property\Formatter; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class CallbackSpec extends ObjectBehavior |
9 | 8 | { |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use FSi\Bundle\AdminBundle\DependencyInjection\Compiler\TwigGlobalsPass; |
22 | 22 | use FSi\Bundle\AdminBundle\DependencyInjection\FSIAdminExtension; |
23 | 23 | use FSi\Bundle\AdminBundle\Finder\AdminClassFinder; |
24 | -use Symfony\Component\DependencyInjection\Compiler\PassConfig; |
|
25 | 24 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
26 | 25 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
27 | 26 |
@@ -43,6 +43,10 @@ |
||
43 | 43 | $this->accessor = $this->createPropertyAccessor(); |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param string $path |
|
48 | + * @param string $label |
|
49 | + */ |
|
46 | 50 | public function add($path, ?string $label = null, array $valueFormatters = []): Display |
47 | 51 | { |
48 | 52 | $this->data[] = new Property( |
@@ -20,6 +20,7 @@ |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * {@inheritdoc} |
23 | + * @param string $label |
|
23 | 24 | */ |
24 | 25 | public function add($value, ?string $label = null, array $valueFormatters = []): Display |
25 | 26 | { |
@@ -104,6 +104,9 @@ discard block |
||
104 | 104 | return $this->createdAt; |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $creatorEmail |
|
109 | + */ |
|
107 | 110 | public function setCreatorEmail(?string $creatorEmail): void |
108 | 111 | { |
109 | 112 | $this->creatorEmail = $creatorEmail; |
@@ -159,6 +162,9 @@ discard block |
||
159 | 162 | return $this->photoKey; |
160 | 163 | } |
161 | 164 | |
165 | + /** |
|
166 | + * @param string|null $photoKey |
|
167 | + */ |
|
162 | 168 | public function setPhotoKey(?string $photoKey): void |
163 | 169 | { |
164 | 170 | $this->photoKey = $photoKey; |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use FSi\Bundle\AdminBundle\Admin\CRUD\DataIndexerElement; |
13 | 13 | use FSi\Bundle\AdminBundle\Admin\DependentElement; |
14 | 14 | use FSi\Bundle\AdminBundle\Admin\Element; |
15 | -use FSi\Bundle\AdminBundle\Exception\RuntimeException; |
|
16 | 15 | use FSi\Component\DataGrid\DataGridFactoryInterface; |
17 | 16 | use FSi\Component\DataGrid\DataGridInterface; |
18 | 17 | use FSi\Component\DataIndexer\DataIndexerInterface; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use FSi\Bundle\AdminBundle\Admin\CRUD\DataIndexerElement; |
6 | 6 | use FSi\Bundle\AdminBundle\Admin\DependentElement; |
7 | 7 | use FSi\Bundle\AdminBundle\Admin\Element; |
8 | -use FSi\Bundle\AdminBundle\Exception\RuntimeException; |
|
9 | 8 | use FSi\Component\DataIndexer\DataIndexerInterface; |
10 | 9 | use PhpSpec\ObjectBehavior; |
11 | 10 | use Prophecy\Argument; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use FSi\Bundle\AdminBundle\Admin\CRUD\DataIndexerElement; |
6 | 6 | use FSi\Bundle\AdminBundle\Admin\DependentElement; |
7 | 7 | use FSi\Bundle\AdminBundle\Admin\Element; |
8 | -use FSi\Bundle\AdminBundle\Exception\RuntimeException; |
|
9 | 8 | use FSi\Component\DataGrid\DataGridFactoryInterface; |
10 | 9 | use FSi\Component\DataIndexer\DataIndexerInterface; |
11 | 10 | use FSi\Component\DataSource\DataSourceFactoryInterface; |