Create isSigned method in EntityWorkflowStepSignature.php

Refactorization and ease of use in template and workflow controller
This commit is contained in:
2024-08-07 14:18:16 +02:00
committed by Julien Fastré
parent 3e6d764b9b
commit ee6edba206
2 changed files with 6 additions and 1 deletions

View File

@@ -135,4 +135,9 @@ class EntityWorkflowStepSignature implements TrackCreationInterface, TrackUpdate
return $this;
}
public function isSigned(): bool
{
return EntityWorkflowSignatureStateEnum::SIGNED == $this->getState();
}
}