Skip to content

Commit

Permalink
Improve constants visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Mar 18, 2024
1 parent 45c12cc commit f9030c8
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 48 deletions.
4 changes: 2 additions & 2 deletions src/Model/DocumentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ interface DocumentInterface {
*
* @var string
*/
const TYPE_ACTE = "acte";
public const TYPE_ACTE = "acte";

/**
* Type "comptes".
*
* @var string
*/
const TYPE_COMPTES = "comptes";
public const TYPE_COMPTES = "comptes";
}
4 changes: 2 additions & 2 deletions src/Model/ProcedureCollectiveInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ interface ProcedureCollectiveInterface {
*
* @var string
*/
const TYPE_LIQUIDATION_JUDICIAIRE = "Liquidation judiciaire ou Procédure de sauvegarde";
public const TYPE_LIQUIDATION_JUDICIAIRE = "Liquidation judiciaire ou Procédure de sauvegarde";

/**
* Type "redressement judiciaire".
*
* @var string
*/
const TYPE_REDRESSEMENT_JUDICIAIRE = "Redressement judiciaire";
public const TYPE_REDRESSEMENT_JUDICIAIRE = "Redressement judiciaire";
}
14 changes: 7 additions & 7 deletions src/Model/PublicationBodaccInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,47 +24,47 @@ interface PublicationBodaccInterface {
*
* @var string
*/
const TYPE_CREATION = "Création";
public const TYPE_CREATION = "Création";

/**
* Type "dépôt des comptes".
*
* @var string
*/
const TYPE_DEPOT_COMPTES = "Dépôt des comptes";
public const TYPE_DEPOT_COMPTES = "Dépôt des comptes";

/**
* Type "immatriculation".
*
* @var string
*/
const TYPE_IMMATRICULATION = "Immatriculation";
public const TYPE_IMMATRICULATION = "Immatriculation";

/**
* Type "modification".
*
* @var string
*/
const TYPE_MODIFICATION = "Modification";
public const TYPE_MODIFICATION = "Modification";

/**
* Type "procédure collective".
*
* @var string
*/
const TYPE_PROCEDURE_COLLECTIVE = "Procédure collective";
public const TYPE_PROCEDURE_COLLECTIVE = "Procédure collective";

/**
* Type "radiation".
*
* @var string
*/
const TYPE_RADIATION = "Radiation";
public const TYPE_RADIATION = "Radiation";

/**
* Type "vente".
*
* @var string
*/
const TYPE_VENTE = "Vente";
public const TYPE_VENTE = "Vente";
}
2 changes: 1 addition & 1 deletion src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class AbstractProvider extends BaseProvider {
*
* @var string
*/
const ENDPOINT_PATH = "https://api.pappers.fr";
public const ENDPOINT_PATH = "https://api.pappers.fr";

/**
* API token.
Expand Down
2 changes: 1 addition & 1 deletion src/Request/AbstractRechercheRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract class AbstractRechercheRequest extends AbstractRequest implements Abstr
*
* @var string
*/
const DATE_FORMAT = "d-m-Y";
public const DATE_FORMAT = "d-m-Y";

/**
* Age dirigeant max.
Expand Down
12 changes: 6 additions & 6 deletions src/Request/AbstractRechercheRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,40 @@ interface AbstractRechercheRequestInterface {
*
* @var string
*/
const PRECISION_APPROXIMATIVE = "approximative";
public const PRECISION_APPROXIMATIVE = "approximative";

/**
* Précision "exacte".
*
* @var string
*/
const PRECISION_EXACTE = "exacte";
public const PRECISION_EXACTE = "exacte";

/**
* Précision "standard".
*
* @var string
*/
const PRECISION_STANDARD = "standard";
public const PRECISION_STANDARD = "standard";

/**
* Statut R.C.S. "inscrit".
*
* @var string
*/
const STATUT_RCS_INSCRIT = "inscrit";
public const STATUT_RCS_INSCRIT = "inscrit";

/**
* Statut R.C.S. "non inscrit".
*
* @var string
*/
const STATUT_RCS_NON_INSCRIT = "non inscrit";
public const STATUT_RCS_NON_INSCRIT = "non inscrit";

/**
* Statut R.C.S. "radie".
*
* @var string
*/
const STATUT_RCS_RADIE = "radie";
public const STATUT_RCS_RADIE = "radie";
}
2 changes: 1 addition & 1 deletion src/Request/DocumentTelechargementRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DocumentTelechargementRequest extends AbstractRequest {
*
* @var string
*/
const RESOURCE_PATH = "/document/telechargement";
public const RESOURCE_PATH = "/document/telechargement";

/**
* {@inheritDoc}
Expand Down
2 changes: 1 addition & 1 deletion src/Request/EntrepriseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class EntrepriseRequest extends AbstractRequest implements EntrepriseRequestInte
*
* @var string
*/
const RESOURCE_PATH = "/entreprise";
public const RESOURCE_PATH = "/entreprise";

/**
* Format publications BODACC.
Expand Down
4 changes: 2 additions & 2 deletions src/Request/EntrepriseRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ interface EntrepriseRequestInterface {
*
* @var string
*/
const FORMAT_PUBLICATIONS_BODACC_OBJET = "objet";
public const FORMAT_PUBLICATIONS_BODACC_OBJET = "objet";

/**
* Format publications BODACC "texte".
*
* @var string
*/
const FORMAT_PUBLICATIONS_BODACC_TEXTE = "texte";
public const FORMAT_PUBLICATIONS_BODACC_TEXTE = "texte";
}
2 changes: 1 addition & 1 deletion src/Request/RechercheDirigeantsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RechercheDirigeantsRequest extends AbstractRechercheRequest {
*
* @var string
*/
const RESOURCE_PATH = "/recherche-dirigeants";
public const RESOURCE_PATH = "/recherche-dirigeants";

/**
* {@inheritDoc}
Expand Down
2 changes: 1 addition & 1 deletion src/Request/RechercheDocumentsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RechercheDocumentsRequest extends AbstractRechercheRequest {
*
* @var string
*/
const RESOURCE_PATH = "/recherche-documents";
public const RESOURCE_PATH = "/recherche-documents";

/**
* {@inheritDoc}
Expand Down
2 changes: 1 addition & 1 deletion src/Request/RecherchePublicationsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RecherchePublicationsRequest extends AbstractRechercheRequest {
*
* @var string
*/
const RESOURCE_PATH = "/recherche-publications";
public const RESOURCE_PATH = "/recherche-publications";

/**
* {@inheritDoc}
Expand Down
2 changes: 1 addition & 1 deletion src/Request/RechercheRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RechercheRequest extends AbstractRechercheRequest implements RechercheRequ
*
* @var string
*/
const RESOURCE_PATH = "/recherche";
public const RESOURCE_PATH = "/recherche";

/**
* Bases.
Expand Down
28 changes: 14 additions & 14 deletions src/Request/RechercheRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,96 +26,96 @@ interface RechercheRequestInterface {
*
* @var string
*/
const BASE_DIRIGEANTS = "dirigeants";
public const BASE_DIRIGEANTS = "dirigeants";

/**
* Base "documents".
*
* @var string
*/
const BASE_DOCUMENTS = "documents";
public const BASE_DOCUMENTS = "documents";

/**
* Base "entreprises".
*
* @var string
*/
const BASE_ENTREPRISES = "entreprises";
public const BASE_ENTREPRISES = "entreprises";

/**
* Base "publications".
*
* @var string
*/
const BASE_PUBLICATIONS = "publications";
public const BASE_PUBLICATIONS = "publications";

/**
* Export "csv".
*
* @var string
*/
const EXPORT_CSV = "csv";
public const EXPORT_CSV = "csv";

/**
* Export "json".
*
* @var string
*/
const EXPORT_JSON = "json";
public const EXPORT_JSON = "json";

/**
* Export "xlsx".
*
* @var string
*/
const EXPORT_XLSX = "xlsx";
public const EXPORT_XLSX = "xlsx";

/**
* Type publication "création".
*
* @var string
*/
const TYPE_PUBLICATION_CREATION = PublicationBodaccInterface::TYPE_CREATION;
public const TYPE_PUBLICATION_CREATION = PublicationBodaccInterface::TYPE_CREATION;

/**
* Type publication "dépôt des comptes".
*
* @var string
*/
const TYPE_PUBLICATION_DEPOT_COMPTES = PublicationBodaccInterface::TYPE_DEPOT_COMPTES;
public const TYPE_PUBLICATION_DEPOT_COMPTES = PublicationBodaccInterface::TYPE_DEPOT_COMPTES;

/**
* Type publication "immatriculation".
*
* @var string
*/
const TYPE_PUBLICATION_IMMATRICULATION = PublicationBodaccInterface::TYPE_IMMATRICULATION;
public const TYPE_PUBLICATION_IMMATRICULATION = PublicationBodaccInterface::TYPE_IMMATRICULATION;

/**
* Type publication "modification".
*
* @var string
*/
const TYPE_PUBLICATION_MODIFICATION = PublicationBodaccInterface::TYPE_MODIFICATION;
public const TYPE_PUBLICATION_MODIFICATION = PublicationBodaccInterface::TYPE_MODIFICATION;

/**
* Type publication "procédure collective".
*
* @var string
*/
const TYPE_PUBLICATION_PROCEDURE_COLLECTIVE = PublicationBodaccInterface::TYPE_PROCEDURE_COLLECTIVE;
public const TYPE_PUBLICATION_PROCEDURE_COLLECTIVE = PublicationBodaccInterface::TYPE_PROCEDURE_COLLECTIVE;

/**
* Type publication "radiation".
*
* @var string
*/
const TYPE_PUBLICATION_RADIATION = PublicationBodaccInterface::TYPE_RADIATION;
public const TYPE_PUBLICATION_RADIATION = PublicationBodaccInterface::TYPE_RADIATION;

/**
* Type publication "vente".
*
* @var string
*/
const TYPE_PUBLICATION_VENTE = PublicationBodaccInterface::TYPE_VENTE;
public const TYPE_PUBLICATION_VENTE = PublicationBodaccInterface::TYPE_VENTE;
}
2 changes: 1 addition & 1 deletion src/Request/SuggestionsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SuggestionsRequest extends AbstractRequest implements SuggestionsRequestIn
*
* @var string
*/
const RESOURCE_PATH = "/suggestions";
public const RESOURCE_PATH = "/suggestions";

/**
* Cibles.
Expand Down
12 changes: 6 additions & 6 deletions src/Request/SuggestionsRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,40 @@ interface SuggestionsRequestInterface {
*
* @var string
*/
const CIBLE_DENOMINATION = "denomination";
public const CIBLE_DENOMINATION = "denomination";

/**
* Cible "com complet".
*
* @var string
*/
const CIBLE_NOM_COMPLET = "nom_complet";
public const CIBLE_NOM_COMPLET = "nom_complet";

/**
* Cible "nom entreprise".
*
* @var string
*/
const CIBLE_NOM_ENTREPRISE = "nom_entreprise";
public const CIBLE_NOM_ENTREPRISE = "nom_entreprise";

/**
* Cible "représentant".
*
* @var string
*/
const CIBLE_REPRESENTANT = "representant";
public const CIBLE_REPRESENTANT = "representant";

/**
* Cible "SIREN".
*
* @var string
*/
const CIBLE_SIREN = "siren";
public const CIBLE_SIREN = "siren";

/**
* Cible "SIRET".
*
* @var string
*/
const CIBLE_SIRET = "siret";
public const CIBLE_SIRET = "siret";
}

0 comments on commit f9030c8

Please sign in to comment.