diff --git a/src/Bundle/ChillActivityBundle/Entity/ActivityReason.php b/src/Bundle/ChillActivityBundle/Entity/ActivityReason.php index bf36ead6c..bf3542630 100644 --- a/src/Bundle/ChillActivityBundle/Entity/ActivityReason.php +++ b/src/Bundle/ChillActivityBundle/Entity/ActivityReason.php @@ -79,6 +79,7 @@ class ActivityReason /** * Set active. * + * * @return ActivityReason */ public function setActive(bool $active) @@ -108,6 +109,7 @@ class ActivityReason /** * Set name. * + * * @return ActivityReason */ public function setName(array $name) diff --git a/src/Bundle/ChillCustomFieldsBundle/Entity/CustomField.php b/src/Bundle/ChillCustomFieldsBundle/Entity/CustomField.php index 06ff658c7..169d2ad46 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Entity/CustomField.php +++ b/src/Bundle/ChillCustomFieldsBundle/Entity/CustomField.php @@ -172,6 +172,7 @@ class CustomField /** * Set active. * + * * @return CustomField */ public function setActive(bool $active) @@ -222,6 +223,8 @@ class CustomField /** * Set order. * + * @param float $order + * * @return CustomField */ public function setOrdering(?float $order) @@ -251,6 +254,8 @@ class CustomField /** * Set type. * + * @param string $type + * * @return CustomField */ public function setType(?string $type) diff --git a/src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsDefaultGroup.php b/src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsDefaultGroup.php index c0022d530..6f7c7a930 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsDefaultGroup.php +++ b/src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsDefaultGroup.php @@ -69,7 +69,7 @@ class CustomFieldsDefaultGroup * * @return CustomFieldsDefaultGroup */ - public function setCustomFieldsGroup(?CustomFieldsGroup $customFieldsGroup) + public function setCustomFieldsGroup(?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldsGroup) { $this->customFieldsGroup = $customFieldsGroup; @@ -79,6 +79,8 @@ class CustomFieldsDefaultGroup /** * Set entity. * + * @param string $entity + * * @return CustomFieldsDefaultGroup */ public function setEntity(?string $entity) diff --git a/src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsGroup.php b/src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsGroup.php index d26098c58..4ec64f6b6 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsGroup.php +++ b/src/Bundle/ChillCustomFieldsBundle/Entity/CustomFieldsGroup.php @@ -165,6 +165,8 @@ class CustomFieldsGroup /** * Set entity. * + * @param string $entity + * * @return CustomFieldsGroup */ public function setEntity(?string $entity) diff --git a/src/Bundle/ChillDocStoreBundle/Entity/PersonDocument.php b/src/Bundle/ChillDocStoreBundle/Entity/PersonDocument.php index b6eefc733..437695b9d 100644 --- a/src/Bundle/ChillDocStoreBundle/Entity/PersonDocument.php +++ b/src/Bundle/ChillDocStoreBundle/Entity/PersonDocument.php @@ -55,14 +55,14 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt return $this->scope; } - public function setPerson(Person $person): self + public function setPerson(\Chill\PersonBundle\Entity\Person $person): self { $this->person = $person; return $this; } - public function setScope(?Scope $scope): self + public function setScope(?\Chill\MainBundle\Entity\Scope $scope): self { $this->scope = $scope; diff --git a/src/Bundle/ChillEventBundle/Entity/Event.php b/src/Bundle/ChillEventBundle/Entity/Event.php index 4a3b4cd67..55b152132 100644 --- a/src/Bundle/ChillEventBundle/Entity/Event.php +++ b/src/Bundle/ChillEventBundle/Entity/Event.php @@ -265,6 +265,8 @@ class Event implements HasCenterInterface, HasScopeInterface, TrackCreationInter /** * Set label. * + * @param string $label + * * @return Event */ public function setName(?string $label) diff --git a/src/Bundle/ChillEventBundle/Entity/EventType.php b/src/Bundle/ChillEventBundle/Entity/EventType.php index 80741f766..b0448325a 100644 --- a/src/Bundle/ChillEventBundle/Entity/EventType.php +++ b/src/Bundle/ChillEventBundle/Entity/EventType.php @@ -146,6 +146,7 @@ class EventType /** * Set active. * + * * @return EventType */ public function setActive(bool $active) diff --git a/src/Bundle/ChillEventBundle/Entity/Role.php b/src/Bundle/ChillEventBundle/Entity/Role.php index 7dbd8700c..968e52353 100644 --- a/src/Bundle/ChillEventBundle/Entity/Role.php +++ b/src/Bundle/ChillEventBundle/Entity/Role.php @@ -81,6 +81,7 @@ class Role /** * Set active. * + * * @return Role */ public function setActive(bool $active) diff --git a/src/Bundle/ChillEventBundle/Entity/Status.php b/src/Bundle/ChillEventBundle/Entity/Status.php index 38c07879c..99dd84451 100644 --- a/src/Bundle/ChillEventBundle/Entity/Status.php +++ b/src/Bundle/ChillEventBundle/Entity/Status.php @@ -81,6 +81,7 @@ class Status /** * Set active. * + * * @return Status */ public function setActive(bool $active) diff --git a/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ApiWrapper.php b/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ApiWrapper.php index 360f200cd..0e75e6e79 100644 --- a/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ApiWrapper.php +++ b/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ApiWrapper.php @@ -14,6 +14,7 @@ namespace Chill\FranceTravailApiBundle\ApiHelper; use Chill\MainBundle\Redis\ChillRedis; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; +use GuzzleHttp\Psr7; /** * Wraps the pole emploi api. diff --git a/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ProcessRequestTrait.php b/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ProcessRequestTrait.php index efd41c223..7af5cb32d 100644 --- a/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ProcessRequestTrait.php +++ b/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ProcessRequestTrait.php @@ -29,6 +29,7 @@ trait ProcessRequestTrait * * @param Request $request the request * @param array $parameters the requests parameters + * */ protected function handleRequest( Request $request, diff --git a/src/Bundle/ChillJobBundle/src/Controller/CSCrudReportController.php b/src/Bundle/ChillJobBundle/src/Controller/CSCrudReportController.php index 6f0cc742c..1d26e9089 100644 --- a/src/Bundle/ChillJobBundle/src/Controller/CSCrudReportController.php +++ b/src/Bundle/ChillJobBundle/src/Controller/CSCrudReportController.php @@ -116,7 +116,7 @@ class CSCrudReportController extends EntityPersonCRUDController * * @param int $id */ - public function editBilan(Request $request, $id): Response + public function editBilan(Request $request, $id): \Symfony\Component\HttpFoundation\Response { return $this->formEditAction('bilan', $request, $id); } diff --git a/src/Bundle/ChillJobBundle/src/Controller/CSPersonController.php b/src/Bundle/ChillJobBundle/src/Controller/CSPersonController.php index 0c4e44c0e..fd32ac8d8 100644 --- a/src/Bundle/ChillJobBundle/src/Controller/CSPersonController.php +++ b/src/Bundle/ChillJobBundle/src/Controller/CSPersonController.php @@ -114,7 +114,7 @@ class CSPersonController extends OneToOneEntityPersonCRUDController case 'dispositifs_view': return '@ChillJob/CSPerson/dispositifs_view.html.twig'; default: - return parent::getTemplateFor($action, $entity, $request); + return parent::getTemplateFor($action, $entity, $request); } } diff --git a/src/Bundle/ChillJobBundle/src/Controller/CSReportController.php b/src/Bundle/ChillJobBundle/src/Controller/CSReportController.php index 3de5a68e0..6b7745cc4 100644 --- a/src/Bundle/ChillJobBundle/src/Controller/CSReportController.php +++ b/src/Bundle/ChillJobBundle/src/Controller/CSReportController.php @@ -24,7 +24,9 @@ use Chill\JobBundle\Security\Authorization\CSConnectesVoter; class CSReportController extends AbstractController { - public function __construct(private \Doctrine\Persistence\ManagerRegistry $managerRegistry) {} + public function __construct(private \Doctrine\Persistence\ManagerRegistry $managerRegistry) + { + } #[Route(path: '{_locale}/person/job/{person}/report', name: 'chill_job_report_index')] public function index(Person $person): Response diff --git a/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php b/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php index dce5d1d64..ffc760768 100644 --- a/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php +++ b/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php @@ -50,35 +50,35 @@ class ChillJobExtension extends Extension implements PrependExtensionInterface $this->prependRoute($container); } - /* protected function prependCruds(ContainerBuilder $container) - { - $container->prependExtensionConfig('chill_main', [ - 'cruds' => [ - [ - 'class' => CSPerson::class, - 'controller' => CSPersonController::class, - 'name' => 'admin_personal_situation', - // 'base_path' => '/admin/main/personal_situation', - 'base_role' => 'ROLE_USER', - 'form_class' => CSPersonPersonalSituationType::class, - 'actions' => [ - 'index' => [ - 'role' => 'ROLE_USER', - 'template' => '@ChillPerson/CRUD/index.html.twig', - ], - 'new' => [ - 'role' => 'ROLE_USER', - 'template' => '@ChillPerson/CRUD/new.html.twig', - ], - 'edit' => [ - 'role' => 'ROLE_USER', - 'template' => '@ChillPerson/CRUD/edit.html.twig', - ], +/* protected function prependCruds(ContainerBuilder $container) + { + $container->prependExtensionConfig('chill_main', [ + 'cruds' => [ + [ + 'class' => CSPerson::class, + 'controller' => CSPersonController::class, + 'name' => 'admin_personal_situation', +// 'base_path' => '/admin/main/personal_situation', + 'base_role' => 'ROLE_USER', + 'form_class' => CSPersonPersonalSituationType::class, + 'actions' => [ + 'index' => [ + 'role' => 'ROLE_USER', + 'template' => '@ChillPerson/CRUD/index.html.twig', ], - ] - ], - ]); - }*/ + 'new' => [ + 'role' => 'ROLE_USER', + 'template' => '@ChillPerson/CRUD/new.html.twig', + ], + 'edit' => [ + 'role' => 'ROLE_USER', + 'template' => '@ChillPerson/CRUD/edit.html.twig', + ], + ], + ] + ], + ]); + }*/ protected function prependRoute(ContainerBuilder $container): void { diff --git a/src/Bundle/ChillJobBundle/src/Entity/CSPerson.php b/src/Bundle/ChillJobBundle/src/Entity/CSPerson.php index cdc01b177..286d334ad 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/CSPerson.php +++ b/src/Bundle/ChillJobBundle/src/Entity/CSPerson.php @@ -1,14 +1,5 @@ niveauMaitriseLangue = null; return $this; @@ -397,6 +543,7 @@ class CSPerson /** * Get niveauMaitriseLangue. + * */ public function getNiveauMaitriseLangue() { @@ -404,20 +551,20 @@ class CSPerson } /** - * Valide niveauMaitriseLangue. + * Valide niveauMaitriseLangue * * @Assert\Callback() */ public function validateNiveauMatriseLangue(ExecutionContextInterface $context) { - if (null === $this->getNiveauMaitriseLangue()) { + if (NULL === $this->getNiveauMaitriseLangue()) { return; } if (\in_array('aucun', $this->getNiveauMaitriseLangue(), true)) { if (count($this->getNiveauMaitriseLangue()) > 1) { $context->buildViolation("Si \"Aucun\" est choisi dans la liste, il n'est " - ."pas possible de cocher d'autres indications") + . "pas possible de cocher d'autres indications") ->atPath('niveauMaitriseLangue') ->addViolation(); } @@ -427,6 +574,8 @@ class CSPerson /** * Set vehiculePersonnel. * + * @param bool $vehiculePersonnel + * * @return CSPerson */ public function setVehiculePersonnel(?bool $vehiculePersonnel) @@ -460,6 +609,7 @@ class CSPerson /** * Get permisConduire. + * */ public function getPermisConduire() { @@ -469,6 +619,8 @@ class CSPerson /** * Set situationProfessionnelle. * + * @param string $situationProfessionnelle + * * @return CSPerson */ public function setSituationProfessionnelle(?string $situationProfessionnelle) @@ -515,6 +667,7 @@ class CSPerson /** * Set typeContrat. * + * * @return CSPerson */ public function setTypeContrat($typeContrat) @@ -526,6 +679,7 @@ class CSPerson /** * Get typeContrat. + * */ public function getTypeContrat() { @@ -546,6 +700,7 @@ class CSPerson /** * Get ressources. + * */ public function getRessources() { @@ -555,6 +710,8 @@ class CSPerson /** * Set ressourcesComment. * + * @param string $ressourcesComment + * * @return CSPerson */ public function setRessourcesComment(?string $ressourcesComment) @@ -598,12 +755,12 @@ class CSPerson return $this->ressourceDate1Versement; } - public function getCPFMontant() + function getCPFMontant() { return $this->cPFMontant; } - public function setCPFMontant(?float $cPFMontant) + function setCPFMontant(?float $cPFMontant) { $this->cPFMontant = $cPFMontant; @@ -624,6 +781,7 @@ class CSPerson /** * Get accompagnement. + * */ public function getAccompagnement() { @@ -657,6 +815,8 @@ class CSPerson /** * Set accompagnementComment. * + * @param string $accompagnementComment + * * @return CSPerson */ public function setAccompagnementComment(?string $accompagnementComment) @@ -679,6 +839,8 @@ class CSPerson /** * Set poleEmploiId. * + * @param string $poleEmploiId + * * @return CSPerson */ public function setPoleEmploiId(?string $poleEmploiId) @@ -725,6 +887,8 @@ class CSPerson /** * Set cafId. * + * @param string $cafId + * * @return CSPerson */ public function setCafId(?string $cafId) @@ -836,9 +1000,12 @@ class CSPerson $this->pPAESignataire = $pPAESignataire; } + /** * Set nEETEligibilite. * + * @param bool $nEETEligibilite + * * @return CSPerson */ public function setNEETEligibilite(?bool $nEETEligibilite) @@ -885,6 +1052,8 @@ class CSPerson /** * Set fSEMaDemarcheCode. * + * @param string $fSEMaDemarcheCode + * * @return CSPerson */ public function setFSEMaDemarcheCode(?string $fSEMaDemarcheCode) @@ -904,12 +1073,12 @@ class CSPerson return $this->fSEMaDemarcheCode; } - public function getDispositifsNotes() + function getDispositifsNotes() { return $this->dispositifsNotes; } - public function setDispositifsNotes(?string $dispositifsNotes) + function setDispositifsNotes(?string $dispositifsNotes) { $this->dispositifsNotes = $dispositifsNotes; } @@ -938,142 +1107,142 @@ class CSPerson return $this->getPerson()->setMaritalStatus($maritalStatus); } - public function getDocumentCV(): ?StoredObject + function getDocumentCV(): ?StoredObject { return $this->documentCV; } - public function getDocumentAgrementIAE(): ?StoredObject + function getDocumentAgrementIAE(): ?StoredObject { return $this->documentAgrementIAE; } - public function getDocumentRQTH(): ?StoredObject + function getDocumentRQTH(): ?StoredObject { return $this->documentRQTH; } - public function getDocumentAttestationNEET(): ?StoredObject + function getDocumentAttestationNEET(): ?StoredObject { return $this->documentAttestationNEET; } - public function getDocumentCI(): ?StoredObject + function getDocumentCI(): ?StoredObject { return $this->documentCI; } - public function getDocumentTitreSejour(): ?StoredObject + function getDocumentTitreSejour(): ?StoredObject { return $this->documentTitreSejour; } - public function getDocumentAttestationFiscale(): ?StoredObject + function getDocumentAttestationFiscale(): ?StoredObject { return $this->documentAttestationFiscale; } - public function getDocumentPermis(): ?StoredObject + function getDocumentPermis(): ?StoredObject { return $this->documentPermis; } - public function getDocumentAttestationCAAF(): ?StoredObject + function getDocumentAttestationCAAF(): ?StoredObject { return $this->documentAttestationCAAF; } - public function getDocumentContraTravail(): ?StoredObject + function getDocumentContraTravail(): ?StoredObject { return $this->documentContraTravail; } - public function getDocumentAttestationFormation(): ?StoredObject + function getDocumentAttestationFormation(): ?StoredObject { return $this->documentAttestationFormation; } - public function getDocumentQuittanceLoyer(): ?StoredObject + function getDocumentQuittanceLoyer(): ?StoredObject { return $this->documentQuittanceLoyer; } - public function getDocumentFactureElectricite(): ?StoredObject + function getDocumentFactureElectricite(): ?StoredObject { return $this->documentFactureElectricite; } - public function getPrescripteur(): ?ThirdParty + function getPrescripteur(): ?ThirdParty { return $this->prescripteur; } - public function setDocumentCV(?StoredObject $documentCV = null) + function setDocumentCV(StoredObject $documentCV = null) { $this->documentCV = $documentCV; } - public function setDocumentAgrementIAE(?StoredObject $documentAgrementIAE = null) + function setDocumentAgrementIAE(StoredObject $documentAgrementIAE = null) { $this->documentAgrementIAE = $documentAgrementIAE; } - public function setDocumentRQTH(?StoredObject $documentRQTH = null) + function setDocumentRQTH(StoredObject $documentRQTH = null) { $this->documentRQTH = $documentRQTH; } - public function setDocumentAttestationNEET(?StoredObject $documentAttestationNEET = null) + function setDocumentAttestationNEET(StoredObject $documentAttestationNEET = null) { $this->documentAttestationNEET = $documentAttestationNEET; } - public function setDocumentCI(?StoredObject $documentCI = null) + function setDocumentCI(StoredObject $documentCI = null) { $this->documentCI = $documentCI; } - public function setDocumentTitreSejour(?StoredObject $documentTitreSejour = null) + function setDocumentTitreSejour(StoredObject $documentTitreSejour = null) { $this->documentTitreSejour = $documentTitreSejour; } - public function setDocumentAttestationFiscale(?StoredObject $documentAttestationFiscale = null) + function setDocumentAttestationFiscale(StoredObject $documentAttestationFiscale = null) { $this->documentAttestationFiscale = $documentAttestationFiscale; } - public function setDocumentPermis(?StoredObject $documentPermis = null) + function setDocumentPermis(StoredObject $documentPermis = null) { $this->documentPermis = $documentPermis; } - public function setDocumentAttestationCAAF(?StoredObject $documentAttestationCAAF = null) + function setDocumentAttestationCAAF(StoredObject $documentAttestationCAAF = null) { $this->documentAttestationCAAF = $documentAttestationCAAF; } - public function setDocumentContraTravail(?StoredObject $documentContraTravail = null) + function setDocumentContraTravail(StoredObject $documentContraTravail = null) { $this->documentContraTravail = $documentContraTravail; } - public function setDocumentAttestationFormation(?StoredObject $documentAttestationFormation = null) + function setDocumentAttestationFormation(StoredObject $documentAttestationFormation = null) { $this->documentAttestationFormation = $documentAttestationFormation; } - public function setDocumentQuittanceLoyer(?StoredObject $documentQuittanceLoyer = null) + function setDocumentQuittanceLoyer(StoredObject $documentQuittanceLoyer = null) { $this->documentQuittanceLoyer = $documentQuittanceLoyer; } - public function setDocumentFactureElectricite(?StoredObject $documentFactureElectricite = null) + function setDocumentFactureElectricite(StoredObject $documentFactureElectricite = null) { $this->documentFactureElectricite = $documentFactureElectricite; } - public function setPrescripteur(?ThirdParty $prescripteur = null) + function setPrescripteur(ThirdParty $prescripteur = null) { $this->prescripteur = $prescripteur; } @@ -1140,49 +1309,42 @@ class CSPerson public function setSituationLogementPrecision(?string $situationLogementPrecision) { $this->situationLogementPrecision = $situationLogementPrecision; - return $this; } public function setAcompteDIF(?float $acompteDIF) { $this->acompteDIF = $acompteDIF; - return $this; } public function setHandicapIs(?bool $handicapIs) { $this->handicapIs = $handicapIs; - return $this; } public function setHandicapNotes(?string $handicapNotes) { $this->handicapNotes = $handicapNotes; - return $this; } public function setHandicapRecommandation(?string $handicapRecommandation) { $this->handicapRecommandation = $handicapRecommandation; - return $this; } - public function setHandicapAccompagnement(?ThirdParty $handicapAccompagnement = null) + public function setHandicapAccompagnement(ThirdParty $handicapAccompagnement = null) { $this->handicapAccompagnement = $handicapAccompagnement; - return $this; } - public function setDocumentAttestationSecuriteSociale(?StoredObject $documentAttestationSecuriteSociale = null) + public function setDocumentAttestationSecuriteSociale(StoredObject $documentAttestationSecuriteSociale = null) { $this->documentAttestationSecuriteSociale = $documentAttestationSecuriteSociale; - return $this; } @@ -1191,10 +1353,9 @@ class CSPerson return $this->dateContratIEJ; } - public function setDateContratIEJ(?\DateTime $dateContratIEJ = null) + public function setDateContratIEJ(\DateTime $dateContratIEJ = null) { $this->dateContratIEJ = $dateContratIEJ; - return $this; } @@ -1206,7 +1367,6 @@ class CSPerson public function setTypeContratAide(?string $typeContratAide) { $this->typeContratAide = $typeContratAide; - return $this; } @@ -1221,4 +1381,7 @@ class CSPerson return $this; } + + + } diff --git a/src/Bundle/ChillJobBundle/src/Entity/CV.php b/src/Bundle/ChillJobBundle/src/Entity/CV.php index 709419079..90a8e772e 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/CV.php +++ b/src/Bundle/ChillJobBundle/src/Entity/CV.php @@ -72,7 +72,6 @@ class CV implements \Stringable /** * @Assert\Valid(traverse=true) - * * @var \Doctrine\Common\Collections\Collection */ #[ORM\OneToMany(targetEntity: CV\Formation::class, mappedBy: 'CV', cascade: ['persist', 'remove', 'detach'], orphanRemoval: true)] @@ -81,7 +80,6 @@ class CV implements \Stringable /** * @Assert\Valid(traverse=true) - * * @var \Doctrine\Common\Collections\Collection */ #[ORM\OneToMany(targetEntity: CV\Experience::class, mappedBy: 'CV', cascade: ['persist', 'remove', 'detach'], orphanRemoval: true)] @@ -110,6 +108,9 @@ class CV implements \Stringable /** * Set reportDate. + * + * + * @return CV */ public function setReportDate(\DateTime $reportDate): self { @@ -120,16 +121,21 @@ class CV implements \Stringable /** * Get reportDate. + * */ - public function getReportDate(): ?\DateTimeInterface + public function getReportDate(): \DateTimeInterface|null { return $this->reportDate; } /** * Set formationLevel. + * + * @param string|null $formationLevel + * + * @return CV */ - public function setFormationLevel(?string $formationLevel = null): self + public function setFormationLevel(string $formationLevel = null): self { $this->formationLevel = $formationLevel; @@ -148,6 +154,9 @@ class CV implements \Stringable /** * Set formationType. + * + * + * @return CV */ public function setFormationType(string $formationType): self { @@ -158,6 +167,8 @@ class CV implements \Stringable /** * Get formationType. + * + * @return string */ public function getFormationType(): ?string { @@ -167,7 +178,7 @@ class CV implements \Stringable /** * Set spokenLanguages. * - * @param mixed|null $spokenLanguages + * @return CV */ public function setSpokenLanguages($spokenLanguages = null): self { @@ -178,6 +189,7 @@ class CV implements \Stringable /** * Get spokenLanguages. + * */ public function getSpokenLanguages(): array { @@ -186,8 +198,12 @@ class CV implements \Stringable /** * Set notes. + * + * @param string|null $notes + * + * @return CV */ - public function setNotes(?string $notes = null): self + public function setNotes(string $notes = null): self { $this->notes = $notes; @@ -196,6 +212,8 @@ class CV implements \Stringable /** * Get notes. + * + * @return string|null */ public function getNotes(): ?string { diff --git a/src/Bundle/ChillJobBundle/src/Entity/CV/Experience.php b/src/Bundle/ChillJobBundle/src/Entity/CV/Experience.php index 19d444338..f0978e139 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/CV/Experience.php +++ b/src/Bundle/ChillJobBundle/src/Entity/CV/Experience.php @@ -69,6 +69,8 @@ class Experience /** * Get id. + * + * @return int */ public function getId(): ?int { @@ -77,6 +79,9 @@ class Experience /** * Set poste. + * + * + * @return Experience */ public function setPoste(?string $poste = null): self { @@ -87,6 +92,8 @@ class Experience /** * Get poste. + * + * @return string|null */ public function getPoste(): ?string { @@ -95,6 +102,9 @@ class Experience /** * Set structure. + * + * + * @return Experience */ public function setStructure(?string $structure = null): self { @@ -105,6 +115,8 @@ class Experience /** * Get structure. + * + * @return string|null */ public function getStructure(): ?string { @@ -115,6 +127,8 @@ class Experience * Set startDate. * * @param \DateTime|null $startDate + * + * @return Experience */ public function setStartDate(?\DateTimeInterface $startDate = null): self { @@ -137,6 +151,8 @@ class Experience * Set endDate. * * @param \DateTime|null $endDate + * + * @return Experience */ public function setEndDate(?\DateTimeInterface $endDate = null): self { @@ -157,6 +173,10 @@ class Experience /** * Set contratType. + * + * @param string $contratType + * + * @return Experience */ public function setContratType(?string $contratType): self { @@ -167,6 +187,8 @@ class Experience /** * Get contratType. + * + * @return string */ public function getContratType(): ?string { @@ -175,6 +197,10 @@ class Experience /** * Set notes. + * + * @param string $notes + * + * @return Experience */ public function setNotes(?string $notes): self { @@ -185,6 +211,8 @@ class Experience /** * Get notes. + * + * @return string */ public function getNotes(): ?string { diff --git a/src/Bundle/ChillJobBundle/src/Entity/CV/Formation.php b/src/Bundle/ChillJobBundle/src/Entity/CV/Formation.php index 84bfda163..1c4343e3d 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/CV/Formation.php +++ b/src/Bundle/ChillJobBundle/src/Entity/CV/Formation.php @@ -77,6 +77,8 @@ class Formation /** * Set title. * + * @param string $title + * * @return Formation */ public function setTitle(?string $title) @@ -166,6 +168,9 @@ class Formation /** * Set diplomaReconnue. + * + * + * @return Formation */ public function setDiplomaReconnue(?string $diplomaReconnue = null): self { @@ -176,6 +181,8 @@ class Formation /** * Get diplomaReconnue. + * + * @return string|null */ public function getDiplomaReconnue(): ?string { @@ -184,6 +191,10 @@ class Formation /** * Set organisme. + * + * @param string $organisme + * + * @return Formation */ public function setOrganisme(?string $organisme): self { @@ -194,6 +205,8 @@ class Formation /** * Get organisme. + * + * @return string */ public function getOrganisme(): ?string { diff --git a/src/Bundle/ChillJobBundle/src/Entity/Frein.php b/src/Bundle/ChillJobBundle/src/Entity/Frein.php index 722109069..437df44fe 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/Frein.php +++ b/src/Bundle/ChillJobBundle/src/Entity/Frein.php @@ -79,6 +79,7 @@ class Frein implements HasPerson, \Stringable private ?string $notesEmploi = ''; /** + * * @ORM\ManytoOne( * targetEntity="Chill\PersonBundle\Entity\Person") * @@ -96,6 +97,7 @@ class Frein implements HasPerson, \Stringable return $this->id; } + public function setReportDate(?\DateTimeInterface $reportDate): self { $this->reportDate = $reportDate; @@ -103,6 +105,7 @@ class Frein implements HasPerson, \Stringable return $this; } + public function getReportDate(): ?\DateTimeInterface { return $this->reportDate; diff --git a/src/Bundle/ChillJobBundle/src/Entity/Immersion.php b/src/Bundle/ChillJobBundle/src/Entity/Immersion.php index 88591f732..e39c053d1 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/Immersion.php +++ b/src/Bundle/ChillJobBundle/src/Entity/Immersion.php @@ -1,14 +1,5 @@ false])] private ?bool $isBilanFullfilled = false; @@ -173,7 +208,7 @@ class Immersion implements \Stringable 'respect_consigne_securite', 'relation_hierarchie', 'capacite_adaptation', - 'motivation_travail', + 'motivation_travail' ]; /** @@ -182,105 +217,212 @@ class Immersion implements \Stringable #[ORM\Column(name: 'savoirEtre', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)] private $savoirEtre; + /** + * + * @var string + */ #[ORM\Column(name: 'savoirEtreNote', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $savoirEtreNote = null; + /** + * @var string + */ #[ORM\Column(name: 'noteimmersion', type: \Doctrine\DBAL\Types\Types::TEXT)] private ?string $noteImmersion = ''; + /** + * @var string|null + */ #[ORM\Column(name: 'principalesActivites', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $principalesActivites = null; + /** + * @var string|null + */ #[ORM\Column(name: 'competencesAcquises', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $competencesAcquises = null; + /** + * @var string|null + */ #[ORM\Column(name: 'competencesADevelopper', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $competencesADevelopper = null; + /** + * @var string|null + */ #[ORM\Column(name: 'noteBilan', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $noteBilan = null; public const PONCTUALITE_SALARIE = [ 'aucun', 'un', - 'plusieurs', + 'plusieurs' ]; + /** + * + * @var string|null + */ #[ORM\Column(name: 'ponctualite_salarie', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $ponctualiteSalarie = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'ponctualite_salarie_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $ponctualiteSalarieNote = null; public const ASSIDUITE = [ 'aucun', 'un', - 'plusieurs', + 'plusieurs' ]; + /** + * + * @var string|null + */ #[ORM\Column(name: 'assiduite', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $assiduite = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'assiduite_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $assiduiteNote = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'interet_activite', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $interetActivite = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'interet_activite_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $interetActiviteNote = null; public const INTEGRE_REGLE = [ '1_temps', 'rapidement', - 'pas_encore', + 'pas_encore' ]; + /** + * + * @var string|null + */ #[ORM\Column(name: 'integre_regle', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $integreRegle = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'integre_regle_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $integreRegleNote = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'esprit_initiative', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $espritInitiative = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'esprit_initiative_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $espritInitiativeNote = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'organisation', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $organisation = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'organisation_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $organisationNote = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'capacite_travail_equipe', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $capaciteTravailEquipe = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'capacite_travail_equipe_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $capaciteTravailEquipeNote = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'style_vestimentaire', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $styleVestimentaire = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'style_vestimentaire_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $styleVestimentaireNote = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'langage_prof', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $langageProf = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'langage_prof_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $langageProfNote = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'applique_consigne', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $appliqueConsigne = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'applique_consigne_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $appliqueConsigneNote = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'respect_hierarchie', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $respectHierarchie = null; + /** + * + * @var string|null + */ #[ORM\Column(name: 'respect_hierarchie_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $respectHierarchieNote = null; @@ -297,6 +439,7 @@ class Immersion implements \Stringable /** * Set domaineActivite. * + * * @return Immersion */ public function setDomaineActivite(?string $domaineActivite = null) @@ -319,6 +462,7 @@ class Immersion implements \Stringable /** * Set tuteurName. * + * * @return Immersion */ public function setTuteurName(?string $tuteurName = null) @@ -341,6 +485,7 @@ class Immersion implements \Stringable /** * Set tuteurFonction. * + * * @return Immersion */ public function setTuteurFonction(?string $tuteurFonction = null) @@ -363,6 +508,7 @@ class Immersion implements \Stringable /** * Set tuteurPhoneNumber. * + * * @return Immersion */ public function setTuteurPhoneNumber(?string $tuteurPhoneNumber = null) @@ -385,6 +531,7 @@ class Immersion implements \Stringable /** * Set structureAccName. * + * * @return Immersion */ public function setStructureAccName(?string $structureAccName = null) @@ -407,6 +554,8 @@ class Immersion implements \Stringable /** * Set structureAccPhonenumber. * + * @param string $structureAccPhonenumber + * * @return Immersion */ public function setStructureAccPhonenumber(?string $structureAccPhonenumber) @@ -429,6 +578,7 @@ class Immersion implements \Stringable /** * Set posteDescriptif. * + * * @return Immersion */ public function setPosteDescriptif(?string $posteDescriptif = null) @@ -451,6 +601,7 @@ class Immersion implements \Stringable /** * Set posteTitle. * + * * @return Immersion */ public function setPosteTitle(?string $posteTitle = null) @@ -473,6 +624,7 @@ class Immersion implements \Stringable /** * Set posteLieu. * + * * @return Immersion */ public function setPosteLieu(?string $posteLieu = null) @@ -550,6 +702,7 @@ class Immersion implements \Stringable /** * Set horaire. * + * * @return Immersion */ public function setHoraire(?string $horaire = null) @@ -656,6 +809,7 @@ class Immersion implements \Stringable /** * Set principalesActivites. * + * * @return Immersion */ public function setPrincipalesActivites(?string $principalesActivites = null) @@ -678,6 +832,7 @@ class Immersion implements \Stringable /** * Set competencesAcquises. * + * * @return Immersion */ public function setCompetencesAcquises(?string $competencesAcquises = null) @@ -700,6 +855,7 @@ class Immersion implements \Stringable /** * Set competencesADevelopper. * + * * @return Immersion */ public function setCompetencesADevelopper(?string $competencesADevelopper = null) @@ -722,6 +878,7 @@ class Immersion implements \Stringable /** * Set noteBilan. * + * * @return Immersion */ public function setNoteBilan(?string $noteBilan = null) @@ -759,21 +916,18 @@ class Immersion implements \Stringable public function setPerson(Person $person) { $this->person = $person; - return $this; } public function setEntreprise(ThirdParty $entreprise) { $this->entreprise = $entreprise; - return $this; } public function setReferent(User $referent) { $this->referent = $referent; - return $this; } @@ -790,14 +944,12 @@ class Immersion implements \Stringable public function setStructureAccEmail(?string $structureAccEmail) { $this->structureAccEmail = $structureAccEmail; - return $this; } public function setStructureAccAddress(Address $structureAccAddress) { $this->structureAccAddress = $structureAccAddress; - return $this; } @@ -814,14 +966,12 @@ class Immersion implements \Stringable public function setIsBilanFullfilled(?bool $isBilanFullfilled) { $this->isBilanFullfilled = $isBilanFullfilled; - return $this; } public function setSavoirEtreNote(?string $savoirEtreNote) { $this->savoirEtreNote = $savoirEtreNote; - return $this; } @@ -938,154 +1088,132 @@ class Immersion implements \Stringable public function setPonctualiteSalarie(?string $ponctualiteSalarie) { $this->ponctualiteSalarie = $ponctualiteSalarie; - return $this; } public function setPonctualiteSalarieNote(?string $ponctualiteSalarieNote) { $this->ponctualiteSalarieNote = $ponctualiteSalarieNote; - return $this; } public function setAssiduite(?string $assiduite) { $this->assiduite = $assiduite; - return $this; } public function setAssiduiteNote(?string $assiduiteNote) { $this->assiduiteNote = $assiduiteNote; - return $this; } public function setInteretActivite(?string $interetActivite) { $this->interetActivite = $interetActivite; - return $this; } public function setInteretActiviteNote(?string $interetActiviteNote) { $this->interetActiviteNote = $interetActiviteNote; - return $this; } public function setIntegreRegle(?string $integreRegle) { $this->integreRegle = $integreRegle; - return $this; } public function setIntegreRegleNote(?string $integreRegleNote) { $this->integreRegleNote = $integreRegleNote; - return $this; } public function setEspritInitiative(?string $espritInitiative) { $this->espritInitiative = $espritInitiative; - return $this; } public function setEspritInitiativeNote(?string $espritInitiativeNote) { $this->espritInitiativeNote = $espritInitiativeNote; - return $this; } public function setOrganisation(?string $organisation) { $this->organisation = $organisation; - return $this; } public function setOrganisationNote(?string $organisationNote) { $this->organisationNote = $organisationNote; - return $this; } public function setCapaciteTravailEquipe(?string $capaciteTravailEquipe) { $this->capaciteTravailEquipe = $capaciteTravailEquipe; - return $this; } public function setCapaciteTravailEquipeNote(?string $capaciteTravailEquipeNote) { $this->capaciteTravailEquipeNote = $capaciteTravailEquipeNote; - return $this; } public function setStyleVestimentaire(?string $styleVestimentaire) { $this->styleVestimentaire = $styleVestimentaire; - return $this; } public function setStyleVestimentaireNote(?string $styleVestimentaireNote) { $this->styleVestimentaireNote = $styleVestimentaireNote; - return $this; } public function setLangageProf(?string $langageProf) { $this->langageProf = $langageProf; - return $this; } public function setLangageProfNote(?string $langageProfNote) { $this->langageProfNote = $langageProfNote; - return $this; } public function setAppliqueConsigne(?string $appliqueConsigne) { $this->appliqueConsigne = $appliqueConsigne; - return $this; } public function setAppliqueConsigneNote(?string $appliqueConsigneNote) { $this->appliqueConsigneNote = $appliqueConsigneNote; - return $this; } public function setRespectHierarchie(?string $respectHierarchie) { $this->respectHierarchie = $respectHierarchie; - return $this; } public function setRespectHierarchieNote(?string $respectHierarchieNote) { $this->respectHierarchieNote = $respectHierarchieNote; - return $this; } @@ -1093,4 +1221,5 @@ class Immersion implements \Stringable { return 'Rapport "immersion" de '.$this->getPerson(); } + } diff --git a/src/Bundle/ChillJobBundle/src/Entity/ProjetProfessionnel.php b/src/Bundle/ChillJobBundle/src/Entity/ProjetProfessionnel.php index 363098f3a..ecf172d95 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/ProjetProfessionnel.php +++ b/src/Bundle/ChillJobBundle/src/Entity/ProjetProfessionnel.php @@ -55,7 +55,7 @@ class ProjetProfessionnel implements \Stringable #[ORM\ManyToMany(targetEntity: Appellation::class, cascade: ['persist'])] private Collection $souhait; - #[ORM\Column(name: 'domaineActiviteSouhait', type: Types::TEXT, nullable: true)] + #[ORM\Column(name: 'domaineActiviteSouhait', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)] private ?string $domaineActiviteSouhait = null; public const TYPE_CONTRAT = [ @@ -156,7 +156,6 @@ class ProjetProfessionnel implements \Stringable /** * Set typeContrat. * - * @param mixed|null $typeContrat * * @return ProjetProfessionnel */ @@ -169,6 +168,7 @@ class ProjetProfessionnel implements \Stringable /** * Get typeContrat. + * */ public function getTypeContrat() { @@ -200,7 +200,6 @@ class ProjetProfessionnel implements \Stringable /** * Set volumeHoraire. * - * @param mixed|null $volumeHoraire * * @return ProjetProfessionnel */ @@ -213,6 +212,7 @@ class ProjetProfessionnel implements \Stringable /** * Get volumeHoraire. + * */ public function getVolumeHoraire() { @@ -222,6 +222,7 @@ class ProjetProfessionnel implements \Stringable /** * Set volumeHoraireNotes. * + * * @return ProjetProfessionnel */ public function setVolumeHoraireNotes(?string $volumeHoraireNotes = null) @@ -244,6 +245,7 @@ class ProjetProfessionnel implements \Stringable /** * Set idee. * + * * @return ProjetProfessionnel */ public function setIdee(?string $idee = null) @@ -266,6 +268,7 @@ class ProjetProfessionnel implements \Stringable /** * Set enCoursConstruction. * + * * @return ProjetProfessionnel */ public function setEnCoursConstruction(?string $enCoursConstruction = null) @@ -288,6 +291,7 @@ class ProjetProfessionnel implements \Stringable /** * Set valideNotes. * + * * @return ProjetProfessionnel */ public function setValideNotes(?string $valideNotes = null) @@ -310,6 +314,7 @@ class ProjetProfessionnel implements \Stringable /** * Set projetProfessionnelNote. * + * * @return ProjetProfessionnel */ public function setProjetProfessionnelNote(?string $projetProfessionnelNote = null) diff --git a/src/Bundle/ChillJobBundle/src/Entity/Rome/Appellation.php b/src/Bundle/ChillJobBundle/src/Entity/Rome/Appellation.php index 2fda76700..455240181 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/Rome/Appellation.php +++ b/src/Bundle/ChillJobBundle/src/Entity/Rome/Appellation.php @@ -47,6 +47,8 @@ class Appellation implements \Stringable /** * Set code. * + * @param string $code + * * @return Appellation */ public function setCode(?string $code) @@ -69,6 +71,8 @@ class Appellation implements \Stringable /** * Set libelle. * + * @param string $libelle + * * @return Appellation */ public function setLibelle(?string $libelle) diff --git a/src/Bundle/ChillJobBundle/src/Entity/Rome/Metier.php b/src/Bundle/ChillJobBundle/src/Entity/Rome/Metier.php index 0f0ffe3bc..eeaaff951 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/Rome/Metier.php +++ b/src/Bundle/ChillJobBundle/src/Entity/Rome/Metier.php @@ -41,7 +41,7 @@ class Metier public function __construct() { $this->appellations = new ArrayCollection(); - // $this->appellation = new ArrayCollection(); +// $this->appellation = new ArrayCollection(); } /** @@ -57,6 +57,8 @@ class Metier /** * Set libelle. * + * @param string $libelle + * * @return Metier */ public function setLibelle(?string $libelle) @@ -79,6 +81,8 @@ class Metier /** * Set code. * + * @param string $code + * * @return Metier */ public function setCode(?string $code) diff --git a/src/Bundle/ChillJobBundle/src/Export/ListCSPerson.php b/src/Bundle/ChillJobBundle/src/Export/ListCSPerson.php index c8d540a31..74486efdc 100644 --- a/src/Bundle/ChillJobBundle/src/Export/ListCSPerson.php +++ b/src/Bundle/ChillJobBundle/src/Export/ListCSPerson.php @@ -237,7 +237,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal break; case 'type_contrat__label': - if ('' !== $value) { + if ($value !== '') { $res[$key] = ($f) ? $value : null; } else { $res[$key] = null; @@ -340,6 +340,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal /** * @param \Doctrine\ORM\NativeQuery|\Doctrine\ORM\QueryBuilder $qb * @param mixed[] $data + * */ public function getResult($qb, $data) { @@ -380,6 +381,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal * @param string $key The column key, as added in the query * @param mixed[] $values The values from the result. if there are duplicates, those might be given twice. Example: array('FR', 'BE', 'CZ', 'FR', 'BE', 'FR') * @param mixed $data The data from the export's form (as defined in `buildForm` + * */ public function getLabels($key, array $values, $data) { @@ -399,7 +401,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal str_replace('__', '.', $key) ); } - if ('' === $value) { + if ($value === '') { return ''; } $arr = []; @@ -416,7 +418,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal str_replace('__', '.', $key) ); } - if ('' === $value) { + if ($value === '') { return ''; } $this->translationCompatKey($value, $key); @@ -427,7 +429,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal if ('_header' === $value) { return $key; } - if ('' === $value) { + if ($value === '') { return ''; } @@ -455,7 +457,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal if ('_header' === $value) { return $key; } - if ('' === $value) { + if ($value === '') { return ''; } diff --git a/src/Bundle/ChillJobBundle/src/Export/ListCV.php b/src/Bundle/ChillJobBundle/src/Export/ListCV.php index 51ca0f3f4..90a0312e4 100644 --- a/src/Bundle/ChillJobBundle/src/Export/ListCV.php +++ b/src/Bundle/ChillJobBundle/src/Export/ListCV.php @@ -238,6 +238,7 @@ class ListCV implements ListInterface, ExportElementValidatedInterface * * @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb * @param mixed[] $data the data from the export's form (added by self::buildForm) + * */ public function getResult($qb, $data) { @@ -311,6 +312,7 @@ class ListCV implements ListInterface, ExportElementValidatedInterface * @param string $key The column key, as added in the query * @param mixed[] $values The values from the result. if there are duplicates, those might be given twice. Example: array('FR', 'BE', 'CZ', 'FR', 'BE', 'FR') * @param mixed $data The data from the export's form (as defined in `buildForm` + * */ public function getLabels($key, array $values, $data) { diff --git a/src/Bundle/ChillJobBundle/src/Export/ListFrein.php b/src/Bundle/ChillJobBundle/src/Export/ListFrein.php index b94cc0342..0d5ecb3da 100644 --- a/src/Bundle/ChillJobBundle/src/Export/ListFrein.php +++ b/src/Bundle/ChillJobBundle/src/Export/ListFrein.php @@ -204,6 +204,7 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface /** * Return the required Role to execute the Export. + * */ public function requiredRole(): string { @@ -331,6 +332,7 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface * * @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb * @param mixed[] $data the data from the export's form (added by self::buildForm) + * */ public function getResult($qb, $data) { @@ -406,6 +408,7 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface * @param string $key The column key, as added in the query * @param mixed[] $values The values from the result. if there are duplicates, those might be given twice. Example: array('FR', 'BE', 'CZ', 'FR', 'BE', 'FR') * @param mixed $data The data from the export's form (as defined in `buildForm` + * */ public function getLabels($key, array $values, $data) { diff --git a/src/Bundle/ChillJobBundle/src/Export/ListProjetProfessionnel.php b/src/Bundle/ChillJobBundle/src/Export/ListProjetProfessionnel.php index 73434474b..0704a8686 100644 --- a/src/Bundle/ChillJobBundle/src/Export/ListProjetProfessionnel.php +++ b/src/Bundle/ChillJobBundle/src/Export/ListProjetProfessionnel.php @@ -210,6 +210,7 @@ class ListProjetProfessionnel implements ListInterface, ExportElementValidatedIn /** * Return the required Role to execute the Export. + * */ public function requiredRole(): string { @@ -369,6 +370,7 @@ class ListProjetProfessionnel implements ListInterface, ExportElementValidatedIn * * @param QueryBuilder|\Doctrine\ORM\NativeQuery $qb * @param mixed[] $data the data from the export's form (added by self::buildForm) + * */ public function getResult($qb, $data) { @@ -444,6 +446,7 @@ class ListProjetProfessionnel implements ListInterface, ExportElementValidatedIn * @param string $key The column key, as added in the query * @param mixed[] $values The values from the result. if there are duplicates, those might be given twice. Example: array('FR', 'BE', 'CZ', 'FR', 'BE', 'FR') * @param mixed $data The data from the export's form (as defined in `buildForm` + * */ public function getLabels($key, array $values, $data) { diff --git a/src/Bundle/ChillJobBundle/src/Menu/MenuBuilder.php b/src/Bundle/ChillJobBundle/src/Menu/MenuBuilder.php index 7faa51ed9..b9d521a54 100644 --- a/src/Bundle/ChillJobBundle/src/Menu/MenuBuilder.php +++ b/src/Bundle/ChillJobBundle/src/Menu/MenuBuilder.php @@ -33,26 +33,26 @@ class MenuBuilder implements LocalMenuBuilderInterface /** @var \Chill\PersonBundle\Entity\Person $person */ $person = $parameters['person']; - // if ($this->authorizationChecker->isGranted(CSConnectesVoter::REPORT_NEW, $person)) { - $menu->addChild('Situation personnelle', [ - 'route' => 'chill_job_personal_situation_view', - 'routeParameters' => [ - 'person' => $person->getId(), - ], - ]) - ->setExtras([ - 'order' => 50, - ]); - $menu->addChild('Dispositifs', [ - 'route' => 'chill_job_dispositifs_view', - 'routeParameters' => [ - 'person' => $person->getId(), - ], - ]) - ->setExtras([ - 'order' => 51, - ]); - // } +// if ($this->authorizationChecker->isGranted(CSConnectesVoter::REPORT_NEW, $person)) { + $menu->addChild('Situation personnelle', [ + 'route' => 'chill_job_personal_situation_view', + 'routeParameters' => [ + 'person' => $person->getId(), + ], + ]) + ->setExtras([ + 'order' => 50, + ]); + $menu->addChild('Dispositifs', [ + 'route' => 'chill_job_dispositifs_view', + 'routeParameters' => [ + 'person' => $person->getId(), + ], + ]) + ->setExtras([ + 'order' => 51, + ]); +// } $menu->addChild('Emploi', [ 'route' => 'chill_job_report_index', diff --git a/src/Bundle/ChillJobBundle/src/Security/Authorization/ExportsVoter.php b/src/Bundle/ChillJobBundle/src/Security/Authorization/ExportsVoter.php index 7ccf04364..39a1eb348 100644 --- a/src/Bundle/ChillJobBundle/src/Security/Authorization/ExportsVoter.php +++ b/src/Bundle/ChillJobBundle/src/Security/Authorization/ExportsVoter.php @@ -86,6 +86,7 @@ class ExportsVoter extends AbstractChillVoter implements ProvideRoleHierarchyInt * ``` * [ 'Title' => [ 'CHILL_FOO_SEE', 'CHILL_FOO_UPDATE' ] ] * ``` + * */ public function getRolesWithHierarchy(): array { diff --git a/src/Bundle/ChillMainBundle/Entity/Address.php b/src/Bundle/ChillMainBundle/Entity/Address.php index f04783506..72ad60ace 100644 --- a/src/Bundle/ChillMainBundle/Entity/Address.php +++ b/src/Bundle/ChillMainBundle/Entity/Address.php @@ -446,7 +446,7 @@ class Address implements TrackCreationInterface, TrackUpdateInterface return $this; } - public function setLinkedToThirdParty(?ThirdParty $linkedToThirdParty): self + public function setLinkedToThirdParty(?\Chill\ThirdPartyBundle\Entity\ThirdParty $linkedToThirdParty): self { $this->linkedToThirdParty = $linkedToThirdParty; diff --git a/src/Bundle/ChillMainBundle/Entity/Embeddable/CommentEmbeddable.php b/src/Bundle/ChillMainBundle/Entity/Embeddable/CommentEmbeddable.php index ea0d4ec29..ee90fb88b 100644 --- a/src/Bundle/ChillMainBundle/Entity/Embeddable/CommentEmbeddable.php +++ b/src/Bundle/ChillMainBundle/Entity/Embeddable/CommentEmbeddable.php @@ -61,6 +61,9 @@ class CommentEmbeddable $this->date = $date; } + /** + * @param int $userId + */ public function setUserId(?int $userId) { $this->userId = $userId; diff --git a/src/Bundle/ChillMainBundle/Entity/Language.php b/src/Bundle/ChillMainBundle/Entity/Language.php index 894b929ac..079b31d22 100644 --- a/src/Bundle/ChillMainBundle/Entity/Language.php +++ b/src/Bundle/ChillMainBundle/Entity/Language.php @@ -59,6 +59,8 @@ class Language /** * Set id. * + * @param string $id + * * @return Language */ public function setId(?string $id) diff --git a/src/Bundle/ChillMainBundle/Entity/PostalCode.php b/src/Bundle/ChillMainBundle/Entity/PostalCode.php index ecab19a5f..ed81a2b4b 100644 --- a/src/Bundle/ChillMainBundle/Entity/PostalCode.php +++ b/src/Bundle/ChillMainBundle/Entity/PostalCode.php @@ -157,6 +157,8 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface /** * Set code. * + * @param string $code + * * @return PostalCode */ public function setCode(?string $code) @@ -181,6 +183,8 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface /** * Set name. * + * @param string $name + * * @return PostalCode */ public function setName(?string $name) @@ -193,6 +197,7 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface /** * Set origin. * + * * @return PostalCode */ public function setOrigin(int $origin) diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/ClosingMotive.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/ClosingMotive.php index 11321e9bb..6cfd17f26 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/ClosingMotive.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/ClosingMotive.php @@ -182,6 +182,7 @@ class ClosingMotive /** * Set name. * + * * @return ClosingMotive */ public function setName(array $name) diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index ff9e799a3..6c5abf00a 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -1409,6 +1409,9 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI return $this; } + /** + * @param \DateTime $birthdate + */ public function setBirthdate(?\DateTime $birthdate): self { $this->birthdate = $birthdate; diff --git a/src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php b/src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php index 21c057a34..794dcf0d7 100644 --- a/src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php +++ b/src/Bundle/ChillPersonBundle/Export/Export/ListPerson.php @@ -39,11 +39,11 @@ class ListPerson implements ListInterface, GroupedExportInterface private readonly bool $filterStatsByCenters; public function __construct( - private readonly CustomFieldProvider $customFieldProvider, - private readonly ListPersonHelper $listPersonHelper, + private readonly CustomFieldProvider $customFieldProvider, + private readonly ListPersonHelper $listPersonHelper, protected readonly EntityManagerInterface $entityManager, private readonly TranslatableStringHelper $translatableStringHelper, - ParameterBagInterface $parameterBag, + ParameterBagInterface $parameterBag, ) { $this->filterStatsByCenters = $parameterBag->get('chill_main')['acl']['filter_stats_by_center']; } diff --git a/src/Bundle/ChillReportBundle/Entity/Report.php b/src/Bundle/ChillReportBundle/Entity/Report.php index 8d6c1888f..a1579b2a1 100644 --- a/src/Bundle/ChillReportBundle/Entity/Report.php +++ b/src/Bundle/ChillReportBundle/Entity/Report.php @@ -154,6 +154,8 @@ class Report implements HasCenterInterface, HasScopeInterface /** * Set date. * + * @param \DateTime $date + * * @return Report */ public function setDate(?\DateTime $date) diff --git a/src/Bundle/ChillTaskBundle/Entity/RecurringTask.php b/src/Bundle/ChillTaskBundle/Entity/RecurringTask.php index 4856835e5..f63912b32 100644 --- a/src/Bundle/ChillTaskBundle/Entity/RecurringTask.php +++ b/src/Bundle/ChillTaskBundle/Entity/RecurringTask.php @@ -112,6 +112,8 @@ class RecurringTask extends AbstractTask /** * Set firstOccurenceEndDate. * + * @param \DateTime $firstOccurenceEndDate + * * @return RecurringTask */ public function setFirstOccurenceEndDate(?\DateTime $firstOccurenceEndDate) @@ -124,6 +126,8 @@ class RecurringTask extends AbstractTask /** * Set lastOccurenceEndDate. * + * @param \DateTime $lastOccurenceEndDate + * * @return RecurringTask */ public function setLastOccurenceEndDate(?\DateTime $lastOccurenceEndDate) @@ -136,6 +140,8 @@ class RecurringTask extends AbstractTask /** * Set occurenceFrequency. * + * @param string $occurenceFrequency + * * @return RecurringTask */ public function setOccurenceFrequency(?string $occurenceFrequency) diff --git a/src/Bundle/ChillTaskBundle/Entity/SingleTask.php b/src/Bundle/ChillTaskBundle/Entity/SingleTask.php index 1bfbed9d2..c8427b725 100644 --- a/src/Bundle/ChillTaskBundle/Entity/SingleTask.php +++ b/src/Bundle/ChillTaskBundle/Entity/SingleTask.php @@ -136,6 +136,8 @@ class SingleTask extends AbstractTask /** * Set endDate. * + * @param \DateTime $endDate + * * @return SingleTask */ public function setEndDate(?\DateTime $endDate) @@ -153,6 +155,8 @@ class SingleTask extends AbstractTask /** * Set startDate. * + * @param \DateTime $startDate + * * @return SingleTask */ public function setStartDate(?\DateTime $startDate) diff --git a/src/Bundle/ChillTaskBundle/Entity/Task/AbstractTaskPlaceEvent.php b/src/Bundle/ChillTaskBundle/Entity/Task/AbstractTaskPlaceEvent.php index 26a73a7e5..92de2c496 100644 --- a/src/Bundle/ChillTaskBundle/Entity/Task/AbstractTaskPlaceEvent.php +++ b/src/Bundle/ChillTaskBundle/Entity/Task/AbstractTaskPlaceEvent.php @@ -105,6 +105,7 @@ class AbstractTaskPlaceEvent /** * Set transition. * + * * @return AbstractTaskPlaceEvent */ public function setTransition(string $transition)