File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/DataDefinitionsBundle Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
19
19
class ImportRowMessage
20
20
{
21
- private int $ definitionId ;
21
+ private int | string $ definitionId ;
22
22
private array $ data ;
23
23
private array $ params ;
24
24
25
- public function __construct (int $ definitionId , array $ data , array $ params )
25
+ public function __construct (int | string $ definitionId , array $ data , array $ params )
26
26
{
27
27
$ this ->definitionId = $ definitionId ;
28
28
$ this ->data = $ data ;
29
29
$ this ->params = $ params ;
30
30
}
31
31
32
- public function getDefinitionId (): int
32
+ public function getDefinitionId (): int | string
33
33
{
34
34
return $ this ->definitionId ;
35
35
}
Original file line number Diff line number Diff line change @@ -41,15 +41,15 @@ class ExportDefinition extends AbstractDataDefinition implements ExportDefinitio
41
41
*/
42
42
public $ fetchUnpublished = false ;
43
43
44
- public static function getById (int $ name )
44
+ public static function getById (int | string $ name )
45
45
{
46
46
return static ::getByName ($ name );
47
47
}
48
48
49
49
public static function getByName ($ id )
50
50
{
51
51
$ definitionEntry = new ExportDefinition ();
52
- $ definitionEntry ->setId (( int ) $ id );
52
+ $ definitionEntry ->setId ($ id );
53
53
/**
54
54
* @var \Instride\Bundle\DataDefinitionsBundle\Model\ExportDefinition\Dao|\Instride\Bundle\DataDefinitionsBundle\Model\ImportDefinition\Dao
55
55
*/
You can’t perform that action at this time.
0 commit comments