php cs fixes

This commit is contained in:
Julie Lenaerts 2024-04-24 10:16:54 +02:00
parent 20b38af812
commit e312929d86
41 changed files with 216 additions and 641 deletions

View File

@ -79,7 +79,6 @@ class ActivityReason
/**
* Set active.
*
*
* @return ActivityReason
*/
public function setActive(bool $active)
@ -109,7 +108,6 @@ class ActivityReason
/**
* Set name.
*
*
* @return ActivityReason
*/
public function setName(array $name)

View File

@ -172,7 +172,6 @@ class CustomField
/**
* Set active.
*
*
* @return CustomField
*/
public function setActive(bool $active)
@ -223,8 +222,6 @@ class CustomField
/**
* Set order.
*
* @param float $order
*
* @return CustomField
*/
public function setOrdering(?float $order)
@ -254,8 +251,6 @@ class CustomField
/**
* Set type.
*
* @param string $type
*
* @return CustomField
*/
public function setType(?string $type)

View File

@ -69,7 +69,7 @@ class CustomFieldsDefaultGroup
*
* @return CustomFieldsDefaultGroup
*/
public function setCustomFieldsGroup(?\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup $customFieldsGroup)
public function setCustomFieldsGroup(?CustomFieldsGroup $customFieldsGroup)
{
$this->customFieldsGroup = $customFieldsGroup;
@ -79,8 +79,6 @@ class CustomFieldsDefaultGroup
/**
* Set entity.
*
* @param string $entity
*
* @return CustomFieldsDefaultGroup
*/
public function setEntity(?string $entity)

View File

@ -165,8 +165,6 @@ class CustomFieldsGroup
/**
* Set entity.
*
* @param string $entity
*
* @return CustomFieldsGroup
*/
public function setEntity(?string $entity)

View File

@ -55,14 +55,14 @@ class PersonDocument extends Document implements HasCenterInterface, HasScopeInt
return $this->scope;
}
public function setPerson(\Chill\PersonBundle\Entity\Person $person): self
public function setPerson(Person $person): self
{
$this->person = $person;
return $this;
}
public function setScope(?\Chill\MainBundle\Entity\Scope $scope): self
public function setScope(?Scope $scope): self
{
$this->scope = $scope;

View File

@ -265,8 +265,6 @@ class Event implements HasCenterInterface, HasScopeInterface, TrackCreationInter
/**
* Set label.
*
* @param string $label
*
* @return Event
*/
public function setName(?string $label)

View File

@ -146,7 +146,6 @@ class EventType
/**
* Set active.
*
*
* @return EventType
*/
public function setActive(bool $active)

View File

@ -81,7 +81,6 @@ class Role
/**
* Set active.
*
*
* @return Role
*/
public function setActive(bool $active)

View File

@ -81,7 +81,6 @@ class Status
/**
* Set active.
*
*
* @return Status
*/
public function setActive(bool $active)

View File

@ -14,7 +14,6 @@ namespace Chill\FranceTravailApiBundle\ApiHelper;
use Chill\MainBundle\Redis\ChillRedis;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Psr7;
/**
* Wraps the pole emploi api.

View File

@ -29,7 +29,6 @@ trait ProcessRequestTrait
*
* @param Request $request the request
* @param array $parameters the requests parameters
*
*/
protected function handleRequest(
Request $request,

View File

@ -116,7 +116,7 @@ class CSCrudReportController extends EntityPersonCRUDController
*
* @param int $id
*/
public function editBilan(Request $request, $id): \Symfony\Component\HttpFoundation\Response
public function editBilan(Request $request, $id): Response
{
return $this->formEditAction('bilan', $request, $id);
}

View File

@ -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);
}
}

View File

@ -24,9 +24,7 @@ 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

View File

@ -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',
/* 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',
],
],
'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
{

View File

@ -1,5 +1,14 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\JobBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
@ -9,29 +18,21 @@ use Chill\ThirdPartyBundle\Entity\ThirdParty;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Chill\PersonBundle\Entity\MaritalStatus;
use ChampsLibres\AsyncUploaderBundle\Validator\Constraints\AsyncFileExists;
/**
* CSPerson
* CSPerson.
*/
#[ORM\Table(name: 'chill_csconnectes.cs_person')]
#[ORM\Entity(repositoryClass: \Chill\JobBundle\Repository\CSPersonRepository::class)]
class CSPerson
{
/**
* @var int
*/
#[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'NONE')]
private ?int $id = null;
/**
*
* @var Person
*/
#[ORM\OneToOne(targetEntity: \Chill\PersonBundle\Entity\Person::class)]
private ?\Chill\PersonBundle\Entity\Person $person = null;
#[ORM\OneToOne(targetEntity: Person::class)]
private ?Person $person = null;
public const SITUATIONS_LOGEMENTS = [
'proprietaire',
@ -39,32 +40,23 @@ class CSPerson
'heberge_chez_tiers',
'heberge_chez_parents',
'hebergement_en_foyer',
'sans_domicile'
'sans_domicile',
];
/**
* @var string|null
*/
#[ORM\Column(name: 'situationLogement', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $situationLogement = null;
/**
*
* @var string
*/
#[ORM\Column(name: 'situationLogementPrecision', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $situationLogementPrecision = null;
/**
* @var int|null
*
* @Assert\GreaterThanOrEqual(0)
*/
#[ORM\Column(name: 'enfantACharge', type: \Doctrine\DBAL\Types\Types::INTEGER, nullable: true)]
private ?int $enfantACharge = null;
public const NIVEAU_MAITRISE_LANGUE = [
'lu', 'ecrit', 'parle', 'aucun'
'lu', 'ecrit', 'parle', 'aucun',
];
/**
@ -73,14 +65,11 @@ class CSPerson
#[ORM\Column(name: 'niveauMaitriseLangue', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $niveauMaitriseLangue;
/**
* @var bool|null
*/
#[ORM\Column(name: 'vehiculePersonnel', type: \Doctrine\DBAL\Types\Types::BOOLEAN, nullable: true)]
private ?bool $vehiculePersonnel = null;
public const PERMIS_CONDUIRE = [
'a', 'b', 'c', 'd', 'e', 'caces', 'en_cours', 'pas_de_permis'
'a', 'b', 'c', 'd', 'e', 'caces', 'en_cours', 'pas_de_permis',
];
/**
@ -90,18 +79,12 @@ class CSPerson
private $permisConduire;
public const SITUATION_PROFESSIONNELLE = [
'sans_emploi', 'en_activite', 'etudiant', 'etudiant_descolarise'
'sans_emploi', 'en_activite', 'etudiant', 'etudiant_descolarise',
];
/**
* @var string
*/
#[ORM\Column(name: 'situationProfessionnelle', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $situationProfessionnelle = null;
/**
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'dateFinDernierEmploi', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateFinDernierEmploi = null;
@ -112,7 +95,7 @@ class CSPerson
'contrat_aide',
'cdd_insertion',
'contrat_extra',
'service_civique'
'service_civique',
];
/**
@ -121,10 +104,6 @@ class CSPerson
#[ORM\Column(name: 'typeContrat', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $typeContrat;
/**
*
* @var string
*/
#[ORM\Column(name: 'typeContratAide', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $typeContratAide = null;
@ -134,7 +113,7 @@ class CSPerson
'ASS',
'RSA',
'AAH',
'autre'
'autre',
];
/**
@ -143,28 +122,15 @@ class CSPerson
#[ORM\Column(name: 'ressources', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $ressources;
/**
* @var string
*/
#[ORM\Column(name: 'ressourcesComment', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $ressourcesComment = null;
/**
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'ressourceDate1Versement', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $ressourceDate1Versement = null;
/**
* @var double
*/
#[ORM\Column(name: 'CPFMontant', type: \Doctrine\DBAL\Types\Types::DECIMAL, nullable: true, precision: 10, scale: 2)] // Assert\GreaterOrEqualThan(0)
private ?float $cPFMontant = null;
/**
*
* @var double
*/
#[ORM\Column(name: 'acomptedif', type: \Doctrine\DBAL\Types\Types::DECIMAL, nullable: true, precision: 10, scale: 2)] // Assert\GreaterOrEqualThan(0)
private ?float $acompteDIF = null;
@ -174,7 +140,7 @@ class CSPerson
'referent_RSA',
'mission_locale',
'rqth',
'autre'
'autre',
];
/**
@ -183,288 +149,178 @@ class CSPerson
#[ORM\Column(name: 'accompagnement', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $accompagnement;
/**
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'accompagnementRQTHDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $accompagnementRQTHDate = null;
/**
* @var string
*/
#[ORM\Column(name: 'accompagnementComment', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $accompagnementComment = null;
/**
* @var string
*/
#[ORM\Column(name: 'poleEmploiId', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $poleEmploiId = null;
/**
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'poleEmploiInscriptionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $poleEmploiInscriptionDate = null;
/**
* @var string
*/
#[ORM\Column(name: 'cafId', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $cafId = null;
/**
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'cafInscriptionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $cafInscriptionDate = null;
/**
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'CERInscriptionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $cERInscriptionDate = null;
/**
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'PPAEInscriptionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $pPAEInscriptionDate = null;
/**
*
* @var string|null
*/
#[ORM\Column(name: 'CERSignataire', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $cERSignataire = null;
/**
*
* @var string|null
*/
#[ORM\Column(name: 'PPAESignataire', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $pPAESignataire = null;
public const NEET_ELIGIBILITY = [
'oui',
'non',
'en_attente'
'en_attente',
];
/**
* @var bool
*/
#[ORM\Column(name: 'NEETEligibilite', type: \Doctrine\DBAL\Types\Types::STRING, nullable: true)]
private ?bool $nEETEligibilite = null;
/**
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'NEETCommissionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $nEETCommissionDate = null;
/**
* @var string
*/
#[ORM\Column(name: 'FSEMaDemarcheCode', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $fSEMaDemarcheCode = null;
/**
*
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'datecontratIEJ', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateContratIEJ = null;
/**
*
* @var \DateTimeInterface
*/
#[ORM\Column(name: 'dateavenantIEJ', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateAvenantIEJ = null;
/**
*
* @var string
*/
#[ORM\Column(name: 'dispositifs_notes', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $dispositifsNotes = null;
/**
*
* @var bool
*/
#[ORM\Column(name: 'handicap', type: \Doctrine\DBAL\Types\Types::BOOLEAN, nullable: true)]
private ?bool $handicapIs = null;
/**
*
* @var string
*/
#[ORM\Column(name: 'handicapnotes', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $handicapNotes = null;
public const HANDICAP_RECOMMANDATIONS = [
'travail_esat',
'milieu_ordinaire',
'entreprise_adaptee'
'entreprise_adaptee',
];
/**
*
* @var string
*/
#[ORM\Column(name: 'handicapRecommandation', type: \Doctrine\DBAL\Types\Types::STRING, length: 50, nullable: true)]
private ?string $handicapRecommandation = null;
/**
*
* @var ThirdParty
*
*/
#[ORM\ManyToOne(targetEntity: ThirdParty::class)]
private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $handicapAccompagnement = null;
private ?ThirdParty $handicapAccompagnement = null;
public const MOBILITE_MOYEN_TRANSPORT = [
'transport_commun',
'scooter',
'velo',
'voiture',
'autre'
'autre',
];
/**
*
* @var string[]
*/
#[ORM\Column(name: 'mobilitemoyentransport', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $mobiliteMoyenDeTransport;
/**
*
* @var string
*/
#[ORM\Column(name: 'mobilitenotes', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $mobiliteNotes = null;
/**
* @var StoredObject|null
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentCV = null;
private ?StoredObject $documentCV = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAgrementIAE = null;
private ?StoredObject $documentAgrementIAE = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentRQTH = null;
private ?StoredObject $documentRQTH = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationNEET = null;
private ?StoredObject $documentAttestationNEET = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentCI = null;
private ?StoredObject $documentCI = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentTitreSejour = null;
private ?StoredObject $documentTitreSejour = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationFiscale = null;
private ?StoredObject $documentAttestationFiscale = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentPermis = null;
private ?StoredObject $documentPermis = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationCAAF = null;
private ?StoredObject $documentAttestationCAAF = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentContraTravail = null;
private ?StoredObject $documentContraTravail = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationFormation = null;
private ?StoredObject $documentAttestationFormation = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentQuittanceLoyer = null;
private ?StoredObject $documentQuittanceLoyer = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentFactureElectricite = null;
private ?StoredObject $documentFactureElectricite = null;
/**
* @var StoredObject|null
*
* @Assert\Valid()
*/
#[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationSecuriteSociale = null;
private ?StoredObject $documentAttestationSecuriteSociale = null;
/**
* @var ThirdParty|null
*/
#[ORM\ManyToOne(targetEntity: ThirdParty::class)]
private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $prescripteur = null;
private ?ThirdParty $prescripteur = null;
/**
* Get id.
@ -479,7 +335,6 @@ class CSPerson
/**
* Set situationLogement.
*
*
* @return CSPerson
*/
public function setSituationLogement(?string $situationLogement = null)
@ -502,7 +357,6 @@ class CSPerson
/**
* Set enfantACharge.
*
*
* @return CSPerson
*/
public function setEnfantACharge(?int $enfantACharge = null)
@ -529,7 +383,7 @@ class CSPerson
*/
public function setNiveauMaitriseLangue($niveauMaitriseLangue)
{
if ($niveauMaitriseLangue === null) {
if (null === $niveauMaitriseLangue) {
$this->niveauMaitriseLangue = null;
return $this;
@ -543,7 +397,6 @@ class CSPerson
/**
* Get niveauMaitriseLangue.
*
*/
public function getNiveauMaitriseLangue()
{
@ -551,20 +404,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();
}
@ -574,8 +427,6 @@ class CSPerson
/**
* Set vehiculePersonnel.
*
* @param bool $vehiculePersonnel
*
* @return CSPerson
*/
public function setVehiculePersonnel(?bool $vehiculePersonnel)
@ -609,7 +460,6 @@ class CSPerson
/**
* Get permisConduire.
*
*/
public function getPermisConduire()
{
@ -619,8 +469,6 @@ class CSPerson
/**
* Set situationProfessionnelle.
*
* @param string $situationProfessionnelle
*
* @return CSPerson
*/
public function setSituationProfessionnelle(?string $situationProfessionnelle)
@ -667,7 +515,6 @@ class CSPerson
/**
* Set typeContrat.
*
*
* @return CSPerson
*/
public function setTypeContrat($typeContrat)
@ -679,7 +526,6 @@ class CSPerson
/**
* Get typeContrat.
*
*/
public function getTypeContrat()
{
@ -700,7 +546,6 @@ class CSPerson
/**
* Get ressources.
*
*/
public function getRessources()
{
@ -710,8 +555,6 @@ class CSPerson
/**
* Set ressourcesComment.
*
* @param string $ressourcesComment
*
* @return CSPerson
*/
public function setRessourcesComment(?string $ressourcesComment)
@ -755,12 +598,12 @@ class CSPerson
return $this->ressourceDate1Versement;
}
function getCPFMontant()
public function getCPFMontant()
{
return $this->cPFMontant;
}
function setCPFMontant(?float $cPFMontant)
public function setCPFMontant(?float $cPFMontant)
{
$this->cPFMontant = $cPFMontant;
@ -781,7 +624,6 @@ class CSPerson
/**
* Get accompagnement.
*
*/
public function getAccompagnement()
{
@ -815,8 +657,6 @@ class CSPerson
/**
* Set accompagnementComment.
*
* @param string $accompagnementComment
*
* @return CSPerson
*/
public function setAccompagnementComment(?string $accompagnementComment)
@ -839,8 +679,6 @@ class CSPerson
/**
* Set poleEmploiId.
*
* @param string $poleEmploiId
*
* @return CSPerson
*/
public function setPoleEmploiId(?string $poleEmploiId)
@ -887,8 +725,6 @@ class CSPerson
/**
* Set cafId.
*
* @param string $cafId
*
* @return CSPerson
*/
public function setCafId(?string $cafId)
@ -1000,12 +836,9 @@ class CSPerson
$this->pPAESignataire = $pPAESignataire;
}
/**
* Set nEETEligibilite.
*
* @param bool $nEETEligibilite
*
* @return CSPerson
*/
public function setNEETEligibilite(?bool $nEETEligibilite)
@ -1052,8 +885,6 @@ class CSPerson
/**
* Set fSEMaDemarcheCode.
*
* @param string $fSEMaDemarcheCode
*
* @return CSPerson
*/
public function setFSEMaDemarcheCode(?string $fSEMaDemarcheCode)
@ -1073,12 +904,12 @@ class CSPerson
return $this->fSEMaDemarcheCode;
}
function getDispositifsNotes()
public function getDispositifsNotes()
{
return $this->dispositifsNotes;
}
function setDispositifsNotes(?string $dispositifsNotes)
public function setDispositifsNotes(?string $dispositifsNotes)
{
$this->dispositifsNotes = $dispositifsNotes;
}
@ -1107,142 +938,142 @@ class CSPerson
return $this->getPerson()->setMaritalStatus($maritalStatus);
}
function getDocumentCV(): ?StoredObject
public function getDocumentCV(): ?StoredObject
{
return $this->documentCV;
}
function getDocumentAgrementIAE(): ?StoredObject
public function getDocumentAgrementIAE(): ?StoredObject
{
return $this->documentAgrementIAE;
}
function getDocumentRQTH(): ?StoredObject
public function getDocumentRQTH(): ?StoredObject
{
return $this->documentRQTH;
}
function getDocumentAttestationNEET(): ?StoredObject
public function getDocumentAttestationNEET(): ?StoredObject
{
return $this->documentAttestationNEET;
}
function getDocumentCI(): ?StoredObject
public function getDocumentCI(): ?StoredObject
{
return $this->documentCI;
}
function getDocumentTitreSejour(): ?StoredObject
public function getDocumentTitreSejour(): ?StoredObject
{
return $this->documentTitreSejour;
}
function getDocumentAttestationFiscale(): ?StoredObject
public function getDocumentAttestationFiscale(): ?StoredObject
{
return $this->documentAttestationFiscale;
}
function getDocumentPermis(): ?StoredObject
public function getDocumentPermis(): ?StoredObject
{
return $this->documentPermis;
}
function getDocumentAttestationCAAF(): ?StoredObject
public function getDocumentAttestationCAAF(): ?StoredObject
{
return $this->documentAttestationCAAF;
}
function getDocumentContraTravail(): ?StoredObject
public function getDocumentContraTravail(): ?StoredObject
{
return $this->documentContraTravail;
}
function getDocumentAttestationFormation(): ?StoredObject
public function getDocumentAttestationFormation(): ?StoredObject
{
return $this->documentAttestationFormation;
}
function getDocumentQuittanceLoyer(): ?StoredObject
public function getDocumentQuittanceLoyer(): ?StoredObject
{
return $this->documentQuittanceLoyer;
}
function getDocumentFactureElectricite(): ?StoredObject
public function getDocumentFactureElectricite(): ?StoredObject
{
return $this->documentFactureElectricite;
}
function getPrescripteur(): ?ThirdParty
public function getPrescripteur(): ?ThirdParty
{
return $this->prescripteur;
}
function setDocumentCV(StoredObject $documentCV = null)
public function setDocumentCV(?StoredObject $documentCV = null)
{
$this->documentCV = $documentCV;
}
function setDocumentAgrementIAE(StoredObject $documentAgrementIAE = null)
public function setDocumentAgrementIAE(?StoredObject $documentAgrementIAE = null)
{
$this->documentAgrementIAE = $documentAgrementIAE;
}
function setDocumentRQTH(StoredObject $documentRQTH = null)
public function setDocumentRQTH(?StoredObject $documentRQTH = null)
{
$this->documentRQTH = $documentRQTH;
}
function setDocumentAttestationNEET(StoredObject $documentAttestationNEET = null)
public function setDocumentAttestationNEET(?StoredObject $documentAttestationNEET = null)
{
$this->documentAttestationNEET = $documentAttestationNEET;
}
function setDocumentCI(StoredObject $documentCI = null)
public function setDocumentCI(?StoredObject $documentCI = null)
{
$this->documentCI = $documentCI;
}
function setDocumentTitreSejour(StoredObject $documentTitreSejour = null)
public function setDocumentTitreSejour(?StoredObject $documentTitreSejour = null)
{
$this->documentTitreSejour = $documentTitreSejour;
}
function setDocumentAttestationFiscale(StoredObject $documentAttestationFiscale = null)
public function setDocumentAttestationFiscale(?StoredObject $documentAttestationFiscale = null)
{
$this->documentAttestationFiscale = $documentAttestationFiscale;
}
function setDocumentPermis(StoredObject $documentPermis = null)
public function setDocumentPermis(?StoredObject $documentPermis = null)
{
$this->documentPermis = $documentPermis;
}
function setDocumentAttestationCAAF(StoredObject $documentAttestationCAAF = null)
public function setDocumentAttestationCAAF(?StoredObject $documentAttestationCAAF = null)
{
$this->documentAttestationCAAF = $documentAttestationCAAF;
}
function setDocumentContraTravail(StoredObject $documentContraTravail = null)
public function setDocumentContraTravail(?StoredObject $documentContraTravail = null)
{
$this->documentContraTravail = $documentContraTravail;
}
function setDocumentAttestationFormation(StoredObject $documentAttestationFormation = null)
public function setDocumentAttestationFormation(?StoredObject $documentAttestationFormation = null)
{
$this->documentAttestationFormation = $documentAttestationFormation;
}
function setDocumentQuittanceLoyer(StoredObject $documentQuittanceLoyer = null)
public function setDocumentQuittanceLoyer(?StoredObject $documentQuittanceLoyer = null)
{
$this->documentQuittanceLoyer = $documentQuittanceLoyer;
}
function setDocumentFactureElectricite(StoredObject $documentFactureElectricite = null)
public function setDocumentFactureElectricite(?StoredObject $documentFactureElectricite = null)
{
$this->documentFactureElectricite = $documentFactureElectricite;
}
function setPrescripteur(ThirdParty $prescripteur = null)
public function setPrescripteur(?ThirdParty $prescripteur = null)
{
$this->prescripteur = $prescripteur;
}
@ -1309,42 +1140,49 @@ 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;
}
@ -1353,9 +1191,10 @@ class CSPerson
return $this->dateContratIEJ;
}
public function setDateContratIEJ(\DateTime $dateContratIEJ = null)
public function setDateContratIEJ(?\DateTime $dateContratIEJ = null)
{
$this->dateContratIEJ = $dateContratIEJ;
return $this;
}
@ -1367,6 +1206,7 @@ class CSPerson
public function setTypeContratAide(?string $typeContratAide)
{
$this->typeContratAide = $typeContratAide;
return $this;
}
@ -1381,7 +1221,4 @@ class CSPerson
return $this;
}
}

View File

@ -72,6 +72,7 @@ class CV implements \Stringable
/**
* @Assert\Valid(traverse=true)
*
* @var \Doctrine\Common\Collections\Collection<int, \Chill\JobBundle\Entity\CV\Formation>
*/
#[ORM\OneToMany(targetEntity: CV\Formation::class, mappedBy: 'CV', cascade: ['persist', 'remove', 'detach'], orphanRemoval: true)]
@ -80,6 +81,7 @@ class CV implements \Stringable
/**
* @Assert\Valid(traverse=true)
*
* @var \Doctrine\Common\Collections\Collection<int, \Chill\JobBundle\Entity\CV\Experience>
*/
#[ORM\OneToMany(targetEntity: CV\Experience::class, mappedBy: 'CV', cascade: ['persist', 'remove', 'detach'], orphanRemoval: true)]
@ -108,9 +110,6 @@ class CV implements \Stringable
/**
* Set reportDate.
*
*
* @return CV
*/
public function setReportDate(\DateTime $reportDate): self
{
@ -121,21 +120,16 @@ class CV implements \Stringable
/**
* Get reportDate.
*
*/
public function getReportDate(): \DateTimeInterface|null
public function getReportDate(): ?\DateTimeInterface
{
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;
@ -154,9 +148,6 @@ class CV implements \Stringable
/**
* Set formationType.
*
*
* @return CV
*/
public function setFormationType(string $formationType): self
{
@ -167,8 +158,6 @@ class CV implements \Stringable
/**
* Get formationType.
*
* @return string
*/
public function getFormationType(): ?string
{
@ -178,7 +167,7 @@ class CV implements \Stringable
/**
* Set spokenLanguages.
*
* @return CV
* @param mixed|null $spokenLanguages
*/
public function setSpokenLanguages($spokenLanguages = null): self
{
@ -189,7 +178,6 @@ class CV implements \Stringable
/**
* Get spokenLanguages.
*
*/
public function getSpokenLanguages(): array
{
@ -198,12 +186,8 @@ 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;
@ -212,8 +196,6 @@ class CV implements \Stringable
/**
* Get notes.
*
* @return string|null
*/
public function getNotes(): ?string
{

View File

@ -69,8 +69,6 @@ class Experience
/**
* Get id.
*
* @return int
*/
public function getId(): ?int
{
@ -79,9 +77,6 @@ class Experience
/**
* Set poste.
*
*
* @return Experience
*/
public function setPoste(?string $poste = null): self
{
@ -92,8 +87,6 @@ class Experience
/**
* Get poste.
*
* @return string|null
*/
public function getPoste(): ?string
{
@ -102,9 +95,6 @@ class Experience
/**
* Set structure.
*
*
* @return Experience
*/
public function setStructure(?string $structure = null): self
{
@ -115,8 +105,6 @@ class Experience
/**
* Get structure.
*
* @return string|null
*/
public function getStructure(): ?string
{
@ -127,8 +115,6 @@ class Experience
* Set startDate.
*
* @param \DateTime|null $startDate
*
* @return Experience
*/
public function setStartDate(?\DateTimeInterface $startDate = null): self
{
@ -151,8 +137,6 @@ class Experience
* Set endDate.
*
* @param \DateTime|null $endDate
*
* @return Experience
*/
public function setEndDate(?\DateTimeInterface $endDate = null): self
{
@ -173,10 +157,6 @@ class Experience
/**
* Set contratType.
*
* @param string $contratType
*
* @return Experience
*/
public function setContratType(?string $contratType): self
{
@ -187,8 +167,6 @@ class Experience
/**
* Get contratType.
*
* @return string
*/
public function getContratType(): ?string
{
@ -197,10 +175,6 @@ class Experience
/**
* Set notes.
*
* @param string $notes
*
* @return Experience
*/
public function setNotes(?string $notes): self
{
@ -211,8 +185,6 @@ class Experience
/**
* Get notes.
*
* @return string
*/
public function getNotes(): ?string
{

View File

@ -77,8 +77,6 @@ class Formation
/**
* Set title.
*
* @param string $title
*
* @return Formation
*/
public function setTitle(?string $title)
@ -168,9 +166,6 @@ class Formation
/**
* Set diplomaReconnue.
*
*
* @return Formation
*/
public function setDiplomaReconnue(?string $diplomaReconnue = null): self
{
@ -181,8 +176,6 @@ class Formation
/**
* Get diplomaReconnue.
*
* @return string|null
*/
public function getDiplomaReconnue(): ?string
{
@ -191,10 +184,6 @@ class Formation
/**
* Set organisme.
*
* @param string $organisme
*
* @return Formation
*/
public function setOrganisme(?string $organisme): self
{
@ -205,8 +194,6 @@ class Formation
/**
* Get organisme.
*
* @return string
*/
public function getOrganisme(): ?string
{

View File

@ -79,7 +79,6 @@ class Frein implements HasPerson, \Stringable
private ?string $notesEmploi = '';
/**
*
* @ORM\ManytoOne(
* targetEntity="Chill\PersonBundle\Entity\Person")
*
@ -97,7 +96,6 @@ class Frein implements HasPerson, \Stringable
return $this->id;
}
public function setReportDate(?\DateTimeInterface $reportDate): self
{
$this->reportDate = $reportDate;
@ -105,7 +103,6 @@ class Frein implements HasPerson, \Stringable
return $this;
}
public function getReportDate(): ?\DateTimeInterface
{
return $this->reportDate;

View File

@ -1,5 +1,14 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\JobBundle\Entity;
use Chill\JobBundle\Repository\ImmersionRepository;
@ -12,7 +21,7 @@ use Symfony\Component\Validator\Constraints as Assert;
use Chill\MainBundle\Validation\Constraint\PhonenumberConstraint;
/**
* Immersion
* Immersion.
*/
#[ORM\Table(name: 'chill_csconnectes.immersion')]
#[ORM\Entity(repositoryClass: ImmersionRepository::class)]
@ -21,136 +30,101 @@ class Immersion implements \Stringable
public const YES_NO_NSP = [
'oui',
'non',
'nsp'
'nsp',
];
/**
* @var int
*/
#[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null;
/**
*
* @var Person
*
* @ORM\ManytoOne(
* targetEntity="Chill\PersonBundle\Entity\Person")
*
* @Assert\NotNull()
*/
private $person;
/**
* @var ThirdParty|null
*
* @Assert\NotNull()
*
* @Assert\Length(min=2)
*/
#[ORM\ManyToOne(targetEntity: ThirdParty::class)]
private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $entreprise = null;
private ?ThirdParty $entreprise = null;
/**
* @var User|null
*/
#[ORM\ManyToOne(targetEntity: User::class)]
private ?\Chill\MainBundle\Entity\User $referent = null;
private ?User $referent = null;
/**
* @var string|null
*
* @Assert\NotNull()
*
* @Assert\Length(min=2)
*/
#[ORM\Column(name: 'domaineActivite', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $domaineActivite = null;
/**
* @var string|null
*
* @Assert\NotNull()
*
* @Assert\Length(min=2)
*/
#[ORM\Column(name: 'tuteurName', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $tuteurName = null;
/**
* @var string|null
*
* @Assert\NotNull()
*
* @Assert\Length(min=2)
*/
#[ORM\Column(name: 'tuteurFonction', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $tuteurFonction = null;
/**
* @var string|null
*
* @Assert\NotNull()
*
* @Assert\NotBlank()
*/
#[ORM\Column(name: 'tuteurPhoneNumber', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
#[PhonenumberConstraint(type: 'any')]
private ?string $tuteurPhoneNumber = null;
/**
* @var string|null
*/
#[ORM\Column(name: 'structureAccName', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $structureAccName = null;
/**
* @var string
*/
#[ORM\Column(name: 'structureAccPhonenumber', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
#[PhonenumberConstraint(type: 'any')]
private ?string $structureAccPhonenumber = null;
/**
* @var string
*/
#[ORM\Column(name: 'structureAccEmail', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $structureAccEmail = null;
/**
*
* @var Address|null
*/
#[ORM\ManyToOne(targetEntity: Address::class, cascade: ['persist', 'remove'])]
private ?\Chill\MainBundle\Entity\Address $structureAccAddress = null;
private ?Address $structureAccAddress = null;
/**
* @var string|null
*/
#[ORM\Column(name: 'posteDescriptif', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $posteDescriptif = null;
/**
* @var string|null
*
* @Assert\NotNull()
*
* @Assert\Length(min=2)
*/
#[ORM\Column(name: 'posteTitle', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $posteTitle = null;
/**
* @var string|null
*
* @Assert\NotNull()
*
* @Assert\Length(min=2)
*/
#[ORM\Column(name: 'posteLieu', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $posteLieu = null;
/**
* @var \DateTimeInterface|null
*
* @Assert\NotNull()
*/
#[ORM\Column(name: 'debutDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
@ -165,9 +139,8 @@ class Immersion implements \Stringable
private $duration;
/**
* @var string|null
*
* @Assert\NotNull()
*
* @Assert\Length(min=2)
*/
#[ORM\Column(name: 'horaire', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
@ -179,7 +152,7 @@ class Immersion implements \Stringable
'acquerir_experience',
'acquerir_competences',
'initier_demarche_recrutement',
'autre'
'autre',
];
/**
@ -188,17 +161,9 @@ class Immersion implements \Stringable
#[ORM\Column(name: 'objectifs', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $objectifs;
/**
*
* @var string
*/
#[ORM\Column(name: 'objectifsAutre', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $objectifsAutre = null;
/**
*
* @var bool
*/
#[ORM\Column(name: 'is_bilan_fullfilled', type: \Doctrine\DBAL\Types\Types::BOOLEAN, options: ['default' => false])]
private ?bool $isBilanFullfilled = false;
@ -208,7 +173,7 @@ class Immersion implements \Stringable
'respect_consigne_securite',
'relation_hierarchie',
'capacite_adaptation',
'motivation_travail'
'motivation_travail',
];
/**
@ -217,212 +182,105 @@ 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;
@ -439,7 +297,6 @@ class Immersion implements \Stringable
/**
* Set domaineActivite.
*
*
* @return Immersion
*/
public function setDomaineActivite(?string $domaineActivite = null)
@ -462,7 +319,6 @@ class Immersion implements \Stringable
/**
* Set tuteurName.
*
*
* @return Immersion
*/
public function setTuteurName(?string $tuteurName = null)
@ -485,7 +341,6 @@ class Immersion implements \Stringable
/**
* Set tuteurFonction.
*
*
* @return Immersion
*/
public function setTuteurFonction(?string $tuteurFonction = null)
@ -508,7 +363,6 @@ class Immersion implements \Stringable
/**
* Set tuteurPhoneNumber.
*
*
* @return Immersion
*/
public function setTuteurPhoneNumber(?string $tuteurPhoneNumber = null)
@ -531,7 +385,6 @@ class Immersion implements \Stringable
/**
* Set structureAccName.
*
*
* @return Immersion
*/
public function setStructureAccName(?string $structureAccName = null)
@ -554,8 +407,6 @@ class Immersion implements \Stringable
/**
* Set structureAccPhonenumber.
*
* @param string $structureAccPhonenumber
*
* @return Immersion
*/
public function setStructureAccPhonenumber(?string $structureAccPhonenumber)
@ -578,7 +429,6 @@ class Immersion implements \Stringable
/**
* Set posteDescriptif.
*
*
* @return Immersion
*/
public function setPosteDescriptif(?string $posteDescriptif = null)
@ -601,7 +451,6 @@ class Immersion implements \Stringable
/**
* Set posteTitle.
*
*
* @return Immersion
*/
public function setPosteTitle(?string $posteTitle = null)
@ -624,7 +473,6 @@ class Immersion implements \Stringable
/**
* Set posteLieu.
*
*
* @return Immersion
*/
public function setPosteLieu(?string $posteLieu = null)
@ -702,7 +550,6 @@ class Immersion implements \Stringable
/**
* Set horaire.
*
*
* @return Immersion
*/
public function setHoraire(?string $horaire = null)
@ -809,7 +656,6 @@ class Immersion implements \Stringable
/**
* Set principalesActivites.
*
*
* @return Immersion
*/
public function setPrincipalesActivites(?string $principalesActivites = null)
@ -832,7 +678,6 @@ class Immersion implements \Stringable
/**
* Set competencesAcquises.
*
*
* @return Immersion
*/
public function setCompetencesAcquises(?string $competencesAcquises = null)
@ -855,7 +700,6 @@ class Immersion implements \Stringable
/**
* Set competencesADevelopper.
*
*
* @return Immersion
*/
public function setCompetencesADevelopper(?string $competencesADevelopper = null)
@ -878,7 +722,6 @@ class Immersion implements \Stringable
/**
* Set noteBilan.
*
*
* @return Immersion
*/
public function setNoteBilan(?string $noteBilan = null)
@ -916,18 +759,21 @@ 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;
}
@ -944,12 +790,14 @@ class Immersion implements \Stringable
public function setStructureAccEmail(?string $structureAccEmail)
{
$this->structureAccEmail = $structureAccEmail;
return $this;
}
public function setStructureAccAddress(Address $structureAccAddress)
{
$this->structureAccAddress = $structureAccAddress;
return $this;
}
@ -966,12 +814,14 @@ class Immersion implements \Stringable
public function setIsBilanFullfilled(?bool $isBilanFullfilled)
{
$this->isBilanFullfilled = $isBilanFullfilled;
return $this;
}
public function setSavoirEtreNote(?string $savoirEtreNote)
{
$this->savoirEtreNote = $savoirEtreNote;
return $this;
}
@ -1088,132 +938,154 @@ 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;
}
@ -1221,5 +1093,4 @@ class Immersion implements \Stringable
{
return 'Rapport "immersion" de '.$this->getPerson();
}
}

View File

@ -55,7 +55,7 @@ class ProjetProfessionnel implements \Stringable
#[ORM\ManyToMany(targetEntity: Appellation::class, cascade: ['persist'])]
private Collection $souhait;
#[ORM\Column(name: 'domaineActiviteSouhait', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
#[ORM\Column(name: 'domaineActiviteSouhait', type: Types::TEXT, nullable: true)]
private ?string $domaineActiviteSouhait = null;
public const TYPE_CONTRAT = [
@ -156,6 +156,7 @@ class ProjetProfessionnel implements \Stringable
/**
* Set typeContrat.
*
* @param mixed|null $typeContrat
*
* @return ProjetProfessionnel
*/
@ -168,7 +169,6 @@ class ProjetProfessionnel implements \Stringable
/**
* Get typeContrat.
*
*/
public function getTypeContrat()
{
@ -200,6 +200,7 @@ class ProjetProfessionnel implements \Stringable
/**
* Set volumeHoraire.
*
* @param mixed|null $volumeHoraire
*
* @return ProjetProfessionnel
*/
@ -212,7 +213,6 @@ class ProjetProfessionnel implements \Stringable
/**
* Get volumeHoraire.
*
*/
public function getVolumeHoraire()
{
@ -222,7 +222,6 @@ class ProjetProfessionnel implements \Stringable
/**
* Set volumeHoraireNotes.
*
*
* @return ProjetProfessionnel
*/
public function setVolumeHoraireNotes(?string $volumeHoraireNotes = null)
@ -245,7 +244,6 @@ class ProjetProfessionnel implements \Stringable
/**
* Set idee.
*
*
* @return ProjetProfessionnel
*/
public function setIdee(?string $idee = null)
@ -268,7 +266,6 @@ class ProjetProfessionnel implements \Stringable
/**
* Set enCoursConstruction.
*
*
* @return ProjetProfessionnel
*/
public function setEnCoursConstruction(?string $enCoursConstruction = null)
@ -291,7 +288,6 @@ class ProjetProfessionnel implements \Stringable
/**
* Set valideNotes.
*
*
* @return ProjetProfessionnel
*/
public function setValideNotes(?string $valideNotes = null)
@ -314,7 +310,6 @@ class ProjetProfessionnel implements \Stringable
/**
* Set projetProfessionnelNote.
*
*
* @return ProjetProfessionnel
*/
public function setProjetProfessionnelNote(?string $projetProfessionnelNote = null)

View File

@ -47,8 +47,6 @@ class Appellation implements \Stringable
/**
* Set code.
*
* @param string $code
*
* @return Appellation
*/
public function setCode(?string $code)
@ -71,8 +69,6 @@ class Appellation implements \Stringable
/**
* Set libelle.
*
* @param string $libelle
*
* @return Appellation
*/
public function setLibelle(?string $libelle)

View File

@ -41,7 +41,7 @@ class Metier
public function __construct()
{
$this->appellations = new ArrayCollection();
// $this->appellation = new ArrayCollection();
// $this->appellation = new ArrayCollection();
}
/**
@ -57,8 +57,6 @@ class Metier
/**
* Set libelle.
*
* @param string $libelle
*
* @return Metier
*/
public function setLibelle(?string $libelle)
@ -81,8 +79,6 @@ class Metier
/**
* Set code.
*
* @param string $code
*
* @return Metier
*/
public function setCode(?string $code)

View File

@ -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,7 +340,6 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
/**
* @param \Doctrine\ORM\NativeQuery|\Doctrine\ORM\QueryBuilder $qb
* @param mixed[] $data
*
*/
public function getResult($qb, $data)
{
@ -381,7 +380,6 @@ 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)
{
@ -401,7 +399,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
str_replace('__', '.', $key)
);
}
if ($value === '') {
if ('' === $value) {
return '';
}
$arr = [];
@ -418,7 +416,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
str_replace('__', '.', $key)
);
}
if ($value === '') {
if ('' === $value) {
return '';
}
$this->translationCompatKey($value, $key);
@ -429,7 +427,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
if ('_header' === $value) {
return $key;
}
if ($value === '') {
if ('' === $value) {
return '';
}
@ -457,7 +455,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
if ('_header' === $value) {
return $key;
}
if ($value === '') {
if ('' === $value) {
return '';
}

View File

@ -238,7 +238,6 @@ 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)
{
@ -312,7 +311,6 @@ 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)
{

View File

@ -204,7 +204,6 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface
/**
* Return the required Role to execute the Export.
*
*/
public function requiredRole(): string
{
@ -332,7 +331,6 @@ 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)
{
@ -408,7 +406,6 @@ 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)
{

View File

@ -210,7 +210,6 @@ class ListProjetProfessionnel implements ListInterface, ExportElementValidatedIn
/**
* Return the required Role to execute the Export.
*
*/
public function requiredRole(): string
{
@ -370,7 +369,6 @@ 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)
{
@ -446,7 +444,6 @@ 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)
{

View File

@ -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',

View File

@ -86,7 +86,6 @@ class ExportsVoter extends AbstractChillVoter implements ProvideRoleHierarchyInt
* ```
* [ 'Title' => [ 'CHILL_FOO_SEE', 'CHILL_FOO_UPDATE' ] ]
* ```
*
*/
public function getRolesWithHierarchy(): array
{

View File

@ -446,7 +446,7 @@ class Address implements TrackCreationInterface, TrackUpdateInterface
return $this;
}
public function setLinkedToThirdParty(?\Chill\ThirdPartyBundle\Entity\ThirdParty $linkedToThirdParty): self
public function setLinkedToThirdParty(?ThirdParty $linkedToThirdParty): self
{
$this->linkedToThirdParty = $linkedToThirdParty;

View File

@ -61,9 +61,6 @@ class CommentEmbeddable
$this->date = $date;
}
/**
* @param int $userId
*/
public function setUserId(?int $userId)
{
$this->userId = $userId;

View File

@ -59,8 +59,6 @@ class Language
/**
* Set id.
*
* @param string $id
*
* @return Language
*/
public function setId(?string $id)

View File

@ -157,8 +157,6 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
/**
* Set code.
*
* @param string $code
*
* @return PostalCode
*/
public function setCode(?string $code)
@ -183,8 +181,6 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
/**
* Set name.
*
* @param string $name
*
* @return PostalCode
*/
public function setName(?string $name)
@ -197,7 +193,6 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
/**
* Set origin.
*
*
* @return PostalCode
*/
public function setOrigin(int $origin)

View File

@ -182,7 +182,6 @@ class ClosingMotive
/**
* Set name.
*
*
* @return ClosingMotive
*/
public function setName(array $name)

View File

@ -1409,9 +1409,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
return $this;
}
/**
* @param \DateTime $birthdate
*/
public function setBirthdate(?\DateTime $birthdate): self
{
$this->birthdate = $birthdate;

View File

@ -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'];
}

View File

@ -154,8 +154,6 @@ class Report implements HasCenterInterface, HasScopeInterface
/**
* Set date.
*
* @param \DateTime $date
*
* @return Report
*/
public function setDate(?\DateTime $date)

View File

@ -112,8 +112,6 @@ class RecurringTask extends AbstractTask
/**
* Set firstOccurenceEndDate.
*
* @param \DateTime $firstOccurenceEndDate
*
* @return RecurringTask
*/
public function setFirstOccurenceEndDate(?\DateTime $firstOccurenceEndDate)
@ -126,8 +124,6 @@ class RecurringTask extends AbstractTask
/**
* Set lastOccurenceEndDate.
*
* @param \DateTime $lastOccurenceEndDate
*
* @return RecurringTask
*/
public function setLastOccurenceEndDate(?\DateTime $lastOccurenceEndDate)
@ -140,8 +136,6 @@ class RecurringTask extends AbstractTask
/**
* Set occurenceFrequency.
*
* @param string $occurenceFrequency
*
* @return RecurringTask
*/
public function setOccurenceFrequency(?string $occurenceFrequency)

View File

@ -136,8 +136,6 @@ class SingleTask extends AbstractTask
/**
* Set endDate.
*
* @param \DateTime $endDate
*
* @return SingleTask
*/
public function setEndDate(?\DateTime $endDate)
@ -155,8 +153,6 @@ class SingleTask extends AbstractTask
/**
* Set startDate.
*
* @param \DateTime $startDate
*
* @return SingleTask
*/
public function setStartDate(?\DateTime $startDate)

View File

@ -105,7 +105,6 @@ class AbstractTaskPlaceEvent
/**
* Set transition.
*
*
* @return AbstractTaskPlaceEvent
*/
public function setTransition(string $transition)