Skip to content
Snippets Groups Projects
Commit cb3bfea2 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout de la justification dans le createWithCode

parent 7db80786
No related branches found
No related tags found
No related merge requests found
Pipeline #16386 passed
......@@ -207,13 +207,14 @@ class ValidationInstanceService {
* @param string|null $valeur
* @return ValidationInstance
*/
public function createWithCode(string $code, ?string $valeur = null) : ValidationInstance
public function createWithCode(string $code, ?string $valeur = null, ?string $justification = null) : ValidationInstance
{
$type = $this->getValidationTypeService()->getValidationTypeByCode($code);
$instance = new ValidationInstance();
$instance->setType($type);
$instance->setValeur($valeur);
$instance->setJustification($justification);
$this->create($instance);
return $instance;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment