mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -22,25 +22,6 @@ class ActionEvent extends Event
|
||||
|
||||
public const MOVE = 'CHILL_PERSON.MOVE_ASSOCIATED_ENTITY';
|
||||
|
||||
/**
|
||||
* the FQDN class name as recorded in doctrine.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $entity;
|
||||
|
||||
/**
|
||||
* an array of key value data to describe the movement.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $metadata;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $personId;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
@@ -52,18 +33,26 @@ class ActionEvent extends Event
|
||||
protected $preSql = [];
|
||||
|
||||
/**
|
||||
* the sql statement.
|
||||
*
|
||||
* @var string
|
||||
* @param string $entity
|
||||
* @param mixed[] $metadata
|
||||
* @param int $personId
|
||||
* @param string $sqlStatement
|
||||
*/
|
||||
protected $sqlStatement;
|
||||
|
||||
public function __construct($personId, $entity, $sqlStatement, $metadata = [])
|
||||
{
|
||||
$this->personId = $personId;
|
||||
$this->entity = $entity;
|
||||
$this->sqlStatement = $sqlStatement;
|
||||
$this->metadata = $metadata;
|
||||
public function __construct(
|
||||
protected $personId,
|
||||
/**
|
||||
* the FQDN class name as recorded in doctrine.
|
||||
*/
|
||||
protected $entity,
|
||||
/**
|
||||
* the sql statement.
|
||||
*/
|
||||
protected $sqlStatement,
|
||||
/**
|
||||
* an array of key value data to describe the movement.
|
||||
*/
|
||||
protected $metadata = []
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user