mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 01:25:00 +00:00
refactor: remove unused event arguments from entity listener methods
- Simplify method signatures by removing `$eventArgs` parameter
This commit is contained in:
@@ -27,22 +27,22 @@ use Doctrine\ORM\Event\PreUpdateEventArgs;
|
|||||||
*/
|
*/
|
||||||
final class AccompanyingPeriodSocialIssueConsistencyEntityListener
|
final class AccompanyingPeriodSocialIssueConsistencyEntityListener
|
||||||
{
|
{
|
||||||
public function prePersist(AccompanyingPeriodLinkedWithSocialIssuesEntityInterface $entity, PrePersistEventArgs $eventArgs): void
|
public function prePersist(AccompanyingPeriodLinkedWithSocialIssuesEntityInterface $entity): void
|
||||||
{
|
{
|
||||||
$this->ensureConsistencyEntity($entity);
|
$this->ensureConsistencyEntity($entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function prePersistAccompanyingPeriod(AccompanyingPeriod $period, PrePersistEventArgs $eventArgs): void
|
public function prePersistAccompanyingPeriod(AccompanyingPeriod $period): void
|
||||||
{
|
{
|
||||||
$this->ensureConsistencyAccompanyingPeriod($period);
|
$this->ensureConsistencyAccompanyingPeriod($period);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function preUpdate(AccompanyingPeriodLinkedWithSocialIssuesEntityInterface $entity, PreUpdateEventArgs $eventArgs): void
|
public function preUpdate(AccompanyingPeriodLinkedWithSocialIssuesEntityInterface $entity): void
|
||||||
{
|
{
|
||||||
$this->ensureConsistencyEntity($entity);
|
$this->ensureConsistencyEntity($entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function preUpdateAccompanyingPeriod(AccompanyingPeriod $period, PreUpdateEventArgs $eventArgs): void
|
public function preUpdateAccompanyingPeriod(AccompanyingPeriod $period): void
|
||||||
{
|
{
|
||||||
$this->ensureConsistencyAccompanyingPeriod($period);
|
$this->ensureConsistencyAccompanyingPeriod($period);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user