Skip to content

Commit

Permalink
Reorganize internal traits
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Feb 20, 2023
1 parent 6d3846d commit b362c20
Show file tree
Hide file tree
Showing 73 changed files with 201 additions and 201 deletions.
2 changes: 1 addition & 1 deletion src/calendrier/Model/JourFerie.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace WBW\Library\GouvApi\Calendrier\Model;

use WBW\Library\GouvApi\Common\Model\Attribute\StringNomTrait;
use WBW\Library\GouvApi\Common\Traits\Strings\StringNomTrait;
use WBW\Library\Traits\DateTimes\DateTimeDateTrait;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Common\Model\Attribute;
namespace WBW\Library\GouvApi\Common\Traits\Strings;

/**
* String nom trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Common\Model\Attribute
* @package WBW\Library\GouvApi\Common\Traits\Strings
*/
trait StringNomTrait {

Expand Down
30 changes: 15 additions & 15 deletions src/entreprise/Model/Etablissement.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@

namespace WBW\Library\GouvApi\Entreprise\Model;

use WBW\Library\GouvApi\Entreprise\Model\Attribute\IntegerAnneeEffectifsTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\IntegerNombrePeriodesTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringActivitePrincipaleTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringCaractereEmployeurTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringCreatedAtTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringDateCreationTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringDateDebutTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringDateDernierTraitementTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringEtatAdministratifTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringNomenclatureActivitePrincipaleTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringSirenTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringSiretTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringStatutDiffusionTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringTrancheEffectifsTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringUpdatedAtTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Integers\IntegerAnneeEffectifsTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Integers\IntegerNombrePeriodesTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringActivitePrincipaleTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringCaractereEmployeurTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringCreatedAtTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringDateCreationTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringDateDebutTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringDateDernierTraitementTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringEtatAdministratifTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringNomenclatureActivitePrincipaleTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringSirenTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringSiretTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringStatutDiffusionTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringTrancheEffectifsTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringUpdatedAtTrait;
use WBW\Library\Traits\Floats\FloatLatitudeTrait;
use WBW\Library\Traits\Floats\FloatLongitudeTrait;
use WBW\Library\Traits\Integers\IntegerIdTrait;
Expand Down
30 changes: 15 additions & 15 deletions src/entreprise/Model/UniteLegale.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@

namespace WBW\Library\GouvApi\Entreprise\Model;

use WBW\Library\GouvApi\Common\Model\Attribute\StringNomTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\IntegerAnneeEffectifsTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\IntegerNombrePeriodesTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringActivitePrincipaleTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringCaractereEmployeurTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringCreatedAtTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringDateCreationTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringDateDebutTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringDateDernierTraitementTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringEtatAdministratifTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringNomenclatureActivitePrincipaleTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringSirenTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringStatutDiffusionTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringTrancheEffectifsTrait;
use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringUpdatedAtTrait;
use WBW\Library\GouvApi\Common\Traits\Strings\StringNomTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Integers\IntegerAnneeEffectifsTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Integers\IntegerNombrePeriodesTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringActivitePrincipaleTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringCaractereEmployeurTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringCreatedAtTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringDateCreationTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringDateDebutTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringDateDernierTraitementTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringEtatAdministratifTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringNomenclatureActivitePrincipaleTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringSirenTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringStatutDiffusionTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringTrancheEffectifsTrait;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringUpdatedAtTrait;
use WBW\Library\Traits\Integers\IntegerIdTrait;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/entreprise/Request/EtablissementsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace WBW\Library\GouvApi\Entreprise\Request;

use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringSiretTrait;
use WBW\Library\GouvApi\Entreprise\Response\AbstractResponse;
use WBW\Library\GouvApi\Entreprise\Serializer\RequestSerializer;
use WBW\Library\GouvApi\Entreprise\Serializer\ResponseDeserializer;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringSiretTrait;
use WBW\Library\Provider\Api\SubstituableRequestInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/entreprise/Request/UnitesLegalesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace WBW\Library\GouvApi\Entreprise\Request;

use WBW\Library\GouvApi\Entreprise\Model\Attribute\StringSirenTrait;
use WBW\Library\GouvApi\Entreprise\Response\AbstractResponse;
use WBW\Library\GouvApi\Entreprise\Serializer\RequestSerializer;
use WBW\Library\GouvApi\Entreprise\Serializer\ResponseDeserializer;
use WBW\Library\GouvApi\Entreprise\Traits\Strings\StringSirenTrait;
use WBW\Library\Provider\Api\SubstituableRequestInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Integers;

/**
* Integer année effectifs trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Integers
*/
trait IntegerAnneeEffectifsTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Integers;

/**
* Integer nombre periodes trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Integers
*/
trait IntegerNombrePeriodesTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String activité principale trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringActivitePrincipaleTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String caractère employeur trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringCaractereEmployeurTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String created at trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringCreatedAtTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String date création trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringDateCreationTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String date début trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringDateDebutTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String date dernier traitement trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringDateDernierTraitementTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String état administratif trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringEtatAdministratifTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String nomenclature activité principale trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringNomenclatureActivitePrincipaleTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String SIREN trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringSirenTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String SIRET trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringSiretTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String statut diffusion trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringStatutDiffusionTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String tranche effectifs trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringTrancheEffectifsTrait {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace WBW\Library\GouvApi\Entreprise\Model\Attribute;
namespace WBW\Library\GouvApi\Entreprise\Traits\Strings;

/**
* String updated at trait.
*
* @author webeweb <https://github.com/webeweb>
* @package WBW\Library\GouvApi\Entreprise\Model\Attribute
* @package WBW\Library\GouvApi\Entreprise\Traits\Strings
*/
trait StringUpdatedAtTrait {

Expand Down
6 changes: 3 additions & 3 deletions src/geo/Model/Commune.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

use WBW\Library\GeoJson\Model\Geometry\Point;
use WBW\Library\GeoJson\Model\Geometry\Polygon;
use WBW\Library\GouvApi\Common\Model\Attribute\StringNomTrait;
use WBW\Library\GouvApi\Geo\Model\Attribute\StringCodeDepartementTrait;
use WBW\Library\GouvApi\Geo\Model\Attribute\StringCodeRegionTrait;
use WBW\Library\GouvApi\Common\Traits\Strings\StringNomTrait;
use WBW\Library\GouvApi\Geo\Traits\Strings\StringCodeDepartementTrait;
use WBW\Library\GouvApi\Geo\Traits\Strings\StringCodeRegionTrait;
use WBW\Library\Traits\Floats\FloatScoreTrait;
use WBW\Library\Traits\Strings\StringCodeTrait;

Expand Down
4 changes: 2 additions & 2 deletions src/geo/Model/Departement.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace WBW\Library\GouvApi\Geo\Model;

use WBW\Library\GouvApi\Common\Model\Attribute\StringNomTrait;
use WBW\Library\GouvApi\Geo\Model\Attribute\StringCodeRegionTrait;
use WBW\Library\GouvApi\Common\Traits\Strings\StringNomTrait;
use WBW\Library\GouvApi\Geo\Traits\Strings\StringCodeRegionTrait;
use WBW\Library\Traits\Floats\FloatScoreTrait;
use WBW\Library\Traits\Strings\StringCodeTrait;

Expand Down
2 changes: 1 addition & 1 deletion src/geo/Model/Region.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace WBW\Library\GouvApi\Geo\Model;

use WBW\Library\GouvApi\Common\Model\Attribute\StringNomTrait;
use WBW\Library\GouvApi\Common\Traits\Strings\StringNomTrait;
use WBW\Library\Traits\Floats\FloatScoreTrait;
use WBW\Library\Traits\Strings\StringCodeTrait;

Expand Down
Loading

0 comments on commit b362c20

Please sign in to comment.