Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
42119226
Commit
42119226
authored
Nov 03, 2026
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply php-cs-fixer to entities touched by the mapping fixes
Formatting only, no behavior change.
parent
fe2b789e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
19 deletions
+13
-19
Allocation.php
src/Entity/Allocation.php
+5
-5
DependentChild.php
src/Entity/DependentChild.php
+1
-4
ExternalAdherentDatedData.php
src/Entity/ExternalAdherentDatedData.php
+6
-7
ProfilDeCotisation.php
src/Entity/ProfilDeCotisation.php
+1
-3
No files found.
src/Entity/Allocation.php
View file @
42119226
...
@@ -3,16 +3,16 @@
...
@@ -3,16 +3,16 @@
namespace
App\Entity
;
namespace
App\Entity
;
use
App\Repository\AllocationRepository
;
use
App\Repository\AllocationRepository
;
use
Gedmo\Timestampable\Traits\TimestampableEntity
;
use
Doctrine\ORM\Mapping
as
ORM
;
use
Doctrine\ORM\Mapping
as
ORM
;
use
Gedmo\Timestampable\Traits\TimestampableEntity
;
/**
/**
* @ORM\Entity(repositoryClass=AllocationRepository::class)
* @ORM\Entity(repositoryClass=AllocationRepository::class)
*
*
* In SSA environment, defines the allocation an Adhérent gets when they pay their cotisation.
* In SSA environment, defines the allocation an Adhérent gets when they pay their cotisation.
* An allocation is composed of a cotisation, which is the amount they will pay,
* An allocation is composed of a cotisation, which is the amount they will pay,
* and an optional complementary flux to add to or withdraw from the user eMLC account so they get an allocation of [amount] eMLC.
* and an optional complementary flux to add to or withdraw from the user eMLC account so they get an allocation of [amount] eMLC.
*
*
* This table is primarily used in an external context (i.e. Metabase), to simplify access to allocation data.
* This table is primarily used in an external context (i.e. Metabase), to simplify access to allocation data.
*/
*/
class
Allocation
class
Allocation
...
@@ -40,14 +40,14 @@ class Allocation
...
@@ -40,14 +40,14 @@ class Allocation
/**
/**
* @ORM\OneToOne(targetEntity=Flux::class, inversedBy="allocation", cascade={"persist", "remove"})
* @ORM\OneToOne(targetEntity=Flux::class, inversedBy="allocation", cascade={"persist", "remove"})
*
*
* Can be null if the user gets the same amount of allocation as their cotisation.
* Can be null if the user gets the same amount of allocation as their cotisation.
*/
*/
private
$complementaryFlux
;
private
$complementaryFlux
;
/**
/**
* @ORM\Column(type="float")
* @ORM\Column(type="float")
*
*
* Amount of the allocation, combinaison of cotisation flux to which is added or added the complementary flux
* Amount of the allocation, combinaison of cotisation flux to which is added or added the complementary flux
*/
*/
private
$amount
;
private
$amount
;
...
...
src/Entity/DependentChild.php
View file @
42119226
...
@@ -2,9 +2,7 @@
...
@@ -2,9 +2,7 @@
namespace
App\Entity
;
namespace
App\Entity
;
use
App\Repository\PrestataireProductFamilyRepository
;
use
Doctrine\ORM\Mapping
as
ORM
;
use
Doctrine\ORM\Mapping
as
ORM
;
use
Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity
;
use
Symfony\Component\Validator\Constraints
as
Assert
;
use
Symfony\Component\Validator\Constraints
as
Assert
;
/**
/**
...
@@ -39,7 +37,6 @@ class DependentChild
...
@@ -39,7 +37,6 @@ class DependentChild
*/
*/
protected
$sharedCustodyPercentage
;
protected
$sharedCustodyPercentage
;
public
function
getId
()
:
?
int
public
function
getId
()
:
?
int
{
{
return
$this
->
id
;
return
$this
->
id
;
...
@@ -68,7 +65,7 @@ class DependentChild
...
@@ -68,7 +65,7 @@ class DependentChild
return
$this
;
return
$this
;
}
}
public
function
getSharedCustodyPercentage
()
public
function
getSharedCustodyPercentage
()
{
{
return
$this
->
sharedCustodyPercentage
;
return
$this
->
sharedCustodyPercentage
;
...
...
src/Entity/ExternalAdherentDatedData.php
View file @
42119226
...
@@ -108,18 +108,17 @@ class ExternalAdherentDatedData
...
@@ -108,18 +108,17 @@ class ExternalAdherentDatedData
public
function
__toString
()
:
string
public
function
__toString
()
:
string
{
{
$incomes
=
[];
$incomes
=
[];
if
(
$this
->
getMonthlyIncome
()
!=
null
)
{
if
(
null
!=
$this
->
getMonthlyIncome
()
)
{
$incomes
[]
=
"mensuels : "
.
$this
->
getMonthlyIncome
()
.
"€"
;
$incomes
[]
=
'mensuels : '
.
$this
->
getMonthlyIncome
()
.
'€'
;
}
}
if
(
$this
->
getAnnualIncome
()
!=
null
)
{
if
(
null
!=
$this
->
getAnnualIncome
()
)
{
$incomes
[]
=
"annuels : "
.
$this
->
getAnnualIncome
()
.
"€"
;
$incomes
[]
=
'annuels : '
.
$this
->
getAnnualIncome
()
.
'€'
;
}
}
if
(
count
(
$incomes
)
>
0
)
{
if
(
count
(
$incomes
)
>
0
)
{
return
"Année "
.
$this
->
getYear
()
.
" : Revenus "
.
join
(
" / "
,
$incomes
);
return
'Année '
.
$this
->
getYear
()
.
' : Revenus '
.
join
(
' / '
,
$incomes
);
}
else
{
}
else
{
return
""
;
return
''
;
}
}
}
}
}
}
src/Entity/ProfilDeCotisation.php
View file @
42119226
...
@@ -2,14 +2,12 @@
...
@@ -2,14 +2,12 @@
namespace
App\Entity
;
namespace
App\Entity
;
use
ApiPlatform\Core\Annotation\ApiResource
;
use
Doctrine\Common\Collections\ArrayCollection
;
use
Doctrine\Common\Collections\ArrayCollection
;
use
Doctrine\ORM\Mapping
as
ORM
;
use
Doctrine\ORM\Mapping
as
ORM
;
use
Gedmo\Timestampable\Traits\TimestampableEntity
;
use
Gedmo\Timestampable\Traits\TimestampableEntity
;
use
Ramsey\Uuid\Doctrine\UuidGenerator
;
use
Ramsey\Uuid\Doctrine\UuidGenerator
;
use
Symfony\Component\Validator\Constraints
as
Assert
;
use
Symfony\Component\Validator\Constraints
as
Assert
;
/**
/**
* @ORM\Entity(repositoryClass="App\Repository\ProfilDeCotisationRepository")
* @ORM\Entity(repositoryClass="App\Repository\ProfilDeCotisationRepository")
* @ORM\HasLifecycleCallbacks()
* @ORM\HasLifecycleCallbacks()
...
@@ -32,7 +30,7 @@ class ProfilDeCotisation
...
@@ -32,7 +30,7 @@ class ProfilDeCotisation
/**
/**
* The amount the user will pay.
* The amount the user will pay.
* The amount the user will receive depends on tauxCotisation.
* The amount the user will receive depends on tauxCotisation.
*
*
* @ORM\Column(name="montant", type="integer")
* @ORM\Column(name="montant", type="integer")
* @Assert\Type("numeric")
* @Assert\Type("numeric")
* @Assert\GreaterThanOrEqual(
* @Assert\GreaterThanOrEqual(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment