@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Oro\Bundle\WorkflowBundle\Model\Action; |
4 | 4 | |
5 | 5 | use LogicException; |
6 | - |
|
7 | 6 | use Symfony\Component\PropertyAccess\PropertyPathInterface; |
8 | - |
|
9 | 7 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
10 | 8 | use Oro\Bundle\TagBundle\Entity\Taggable; |
11 | 9 | use Oro\Bundle\TagBundle\Entity\TagManager; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\WorkflowBundle\Model\Action; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\PropertyPathInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException; |
8 | 7 | |
9 | 8 | class CreateObject extends AbstractAction |
@@ -80,7 +80,7 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @param mixed $context |
|
83 | + * @param WorkflowItem $context |
|
84 | 84 | * @param object $entity |
85 | 85 | * @param array $parameters |
86 | 86 | */ |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Symfony\Component\HttpFoundation\Session\Session; |
7 | 7 | use Symfony\Component\PropertyAccess\PropertyPath; |
8 | 8 | use Symfony\Component\Translation\TranslatorInterface; |
9 | - |
|
10 | 9 | use Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException; |
11 | 10 | use Oro\Bundle\WorkflowBundle\Model\ContextAccessor; |
12 | 11 |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @param mixed $context |
69 | - * @return array |
|
69 | + * @return string |
|
70 | 70 | * @throws \Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException |
71 | 71 | */ |
72 | 72 | protected function getArguments($context) |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\WorkflowBundle\Model\Action; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\PropertyPathInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException; |
8 | 7 | |
9 | 8 | class FormatString extends AbstractAction |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Routing\RouterInterface; |
6 | 6 | use Symfony\Component\PropertyAccess\PropertyPath; |
7 | - |
|
8 | 7 | use Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException; |
9 | 8 | use Oro\Bundle\WorkflowBundle\Model\ContextAccessor; |
10 | 9 |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | - |
|
8 | 7 | use Symfony\Component\PropertyAccess\PropertyPathInterface; |
9 | - |
|
10 | 8 | use Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException; |
11 | 9 | use Oro\Bundle\EntityBundle\Exception\NotManageableEntityException; |
12 | 10 | use Oro\Bundle\WorkflowBundle\Model\ContextAccessor; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\WorkflowBundle\Model\Action; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\PropertyPathInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\WorkflowBundle\Model\ContextAccessor; |
8 | 7 | use Oro\Bundle\WorkflowBundle\Model\WorkflowManager; |
9 | 8 | use Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | |
166 | 166 | /** |
167 | 167 | * @param Attribute $attribute |
168 | - * @param string|array $optionNames |
|
168 | + * @param string $optionNames |
|
169 | 169 | * @throws AssemblerException If attribute is invalid |
170 | 170 | */ |
171 | 171 | protected function assertAttributeHasOptions(Attribute $attribute, $optionNames) |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | /** |
185 | 185 | * @param Attribute $attribute |
186 | - * @param string|array $optionNames |
|
186 | + * @param string $optionNames |
|
187 | 187 | * @throws AssemblerException If attribute is invalid |
188 | 188 | */ |
189 | 189 | protected function assertAttributeHasNoOptions(Attribute $attribute, $optionNames) |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\WorkflowBundle\Model; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | - |
|
7 | 6 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition; |
8 | 7 | use Oro\Bundle\WorkflowBundle\Exception\AssemblerException; |
9 | 8 |