Skip to content

Commit

Permalink
import 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitLeveque committed Aug 24, 2024
1 parent 98698fd commit eebaed5
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 9 deletions.
9 changes: 9 additions & 0 deletions src/Campaign/Format/Formats/Format2024.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

namespace App\Campaign\Format\Formats;

class Format2024 extends Format2023
{
}
4 changes: 3 additions & 1 deletion src/Campaign/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ public function createResponse(array $data, Campaign $campaign): Response
foreach ($enumValues as $field => $enum) {
$enumClass = $this->enums->getEnums($enum['class']);
$enumId = $enumClass->getIdByLabel($data[$enum['key']] ?? null);

if ($field === 'PhpVersion' && 0 === $enumId) {
dump($data[$enum['key']] ?? null, '---');
}
if ($enumClass instanceof JobTitleEnums && 0 === $enumId) {
$enumId = $enumClass->oldChoices[$data[$enum['key']]] ?? 0;
}
Expand Down
23 changes: 15 additions & 8 deletions src/Enums/JobTitleEnums.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,24 @@ class JobTitleEnums extends AbstractEnums
public const SYSADMIN = 9;
public const DEVOPS = 10;

public const DEV_JUNIOR = 11;
public const DEV_CONFIRME = 12;
public const DEV_SENIOR = 13;
public const DEV_EXPERT = 14;
public const TECH_LEAD = 15;

protected array $choices = [
self::DIRECTEUR => 'Directeur et Directrice, cadre dirigeant',
self::RESPONSABLE_EQUIPE => "Cadre intermédiaire, responsable d'équipe",
self::CHEF_PROJET => 'Chef/Cheffe de projet',
self::LEAD_DEVELOPPEUR => 'Lead développeur/Lead développeuse',
self::DEV_JUNIOR => 'Développeuse / Développeur Junior',
self::DEV_CONFIRME => 'Développeuse / Développeur confirmé',
self::DEV_SENIOR => 'Développeuse / Développeur Senior',
self::DEV_EXPERT => 'Développeuse / Développeur Expert',
self::TECH_LEAD => 'Tech Lead',
self::RESPONSABLE_EQUIPE => "Responsable d'équipe",
self::CONSULTANT => 'Consultante / Consultant',
self::ARCHITECTE => 'Architecte',
self::CONSULTANT => 'Consultant',
self::FORMATEUR => 'Formateur/Formatrice',
self::DEVELOPPEUR => 'Développeur/Développeuse',
self::SYSADMIN => 'Sysadmin',
self::DEVOPS => 'Devops',
self::CHEF_PROJET => 'Chef/Cheffe de projet',
self::FORMATEUR => 'Formatrice / Formateur',
self::AUTRE => 'Autre',
];

Expand Down
4 changes: 4 additions & 0 deletions src/Enums/StatusEnums.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ class StatusEnums extends AbstractEnums
public const CDI = 2;
public const FREELANCE = 3;
public const SANS_EMPLOI = 4;
public const ALTERNANCE = 5;
public const FONCTIONNAIRE = 6;

protected array $choices = [
self::CDD => 'Contrat à durée déterminée',
self::CDI => 'Contrat à durée indéterminée',
self::FREELANCE => 'Freelance / entreprise individuelle',
self::ALTERNANCE => 'Alternance / contrat pro / apprentissage',
self::FONCTIONNAIRE => 'Fonctionnaire',
self::SANS_EMPLOI => 'Sans emploi',
self::AUTRE => 'Autre',
];
Expand Down

0 comments on commit eebaed5

Please sign in to comment.