From fbfef0be8f114bfc386881500d69f3c3c65e91a0 Mon Sep 17 00:00:00 2001
From: MDW
Date: Tue, 13 Aug 2024 00:14:20 +0200
Subject: [PATCH 1/9] Backport phan
---
.github/workflows/ci.yml | 43 +
.github/workflows/phan.yaml | 0
.gitignore | 34 +-
dev/tools/phan/PHAN.BAT | 46 +
dev/tools/phan/README.md | 46 +
dev/tools/phan/baseline.txt | 1828 ++
dev/tools/phan/baseline_extended.txt | 23 +
dev/tools/phan/config.php | 496 +
dev/tools/phan/config_extended.php | 102 +
dev/tools/phan/config_fixer.php | 40 +
.../plugins/DeprecatedModuleNameFixer.php | 124 +
dev/tools/phan/plugins/NoVarDumpPlugin.php | 81 +
.../phan/plugins/ParamMatchRegexPlugin.php | 248 +
dev/tools/phan/plugins/PriceFormFixer.php | 138 +
dev/tools/phan/plugins/SelectDateFixer.php | 175 +
.../phan/plugins/UrlEncodeStringifyFixer.php | 106 +
dev/tools/phan/runPhanDocker.sh | 27 +
dev/tools/phan/stubs/GeoIP2.php | 1293 ++
dev/tools/phan/stubs/SimpleXML.phan_php | 43 +
dev/tools/phan/stubs/brotli.phan_php | 29 +
dev/tools/phan/stubs/calendar.phan_php | 45 +
dev/tools/phan/stubs/curl.phan_php | 616 +
dev/tools/phan/stubs/fileinfo.phan_php | 30 +
dev/tools/phan/stubs/ftp.phan_php | 53 +
dev/tools/phan/stubs/gd.phan_php | 207 +
dev/tools/phan/stubs/geoip.phan_php | 44 +
dev/tools/phan/stubs/geoip_inc.php | 194 +
dev/tools/phan/stubs/imagick.phan_php | 1216 ++
dev/tools/phan/stubs/imap.phan_php | 149 +
dev/tools/phan/stubs/intl.phan_php | 1807 ++
dev/tools/phan/stubs/ldap.phan_php | 157 +
dev/tools/phan/stubs/mcrypt.phan_php | 79 +
dev/tools/phan/stubs/memcache.phan_php | 72 +
dev/tools/phan/stubs/memcached.phan_php | 180 +
dev/tools/phan/stubs/module_numberwords.php | 48 +
dev/tools/phan/stubs/multicompany.php | 93 +
dev/tools/phan/stubs/mysqli.phan_php | 397 +
dev/tools/phan/stubs/nusoap.php | 3951 ++++
dev/tools/phan/stubs/pdo_cubrid.phan_php | 3 +
dev/tools/phan/stubs/pdo_mysql.phan_php | 3 +
dev/tools/phan/stubs/pdo_pgsql.phan_php | 3 +
dev/tools/phan/stubs/pdo_sqlite.phan_php | 3 +
dev/tools/phan/stubs/pgsql.phan_php | 974 +
dev/tools/phan/stubs/restler.php | 4977 +++++
dev/tools/phan/stubs/session.phan_php | 68 +
dev/tools/phan/stubs/soap.phan_php | 220 +
dev/tools/phan/stubs/sockets.phan_php | 260 +
dev/tools/phan/stubs/stripe.php | 15688 ++++++++++++++++
dev/tools/phan/stubs/swiss-qr-bill.php | 1021 +
dev/tools/phan/stubs/tidy.phan_php | 244 +
dev/tools/phan/stubs/zip.phan_php | 161 +
51 files changed, 37879 insertions(+), 6 deletions(-)
create mode 100644 .github/workflows/ci.yml
create mode 100644 .github/workflows/phan.yaml
create mode 100644 dev/tools/phan/PHAN.BAT
create mode 100644 dev/tools/phan/README.md
create mode 100644 dev/tools/phan/baseline.txt
create mode 100644 dev/tools/phan/baseline_extended.txt
create mode 100644 dev/tools/phan/config.php
create mode 100644 dev/tools/phan/config_extended.php
create mode 100644 dev/tools/phan/config_fixer.php
create mode 100644 dev/tools/phan/plugins/DeprecatedModuleNameFixer.php
create mode 100644 dev/tools/phan/plugins/NoVarDumpPlugin.php
create mode 100644 dev/tools/phan/plugins/ParamMatchRegexPlugin.php
create mode 100644 dev/tools/phan/plugins/PriceFormFixer.php
create mode 100644 dev/tools/phan/plugins/SelectDateFixer.php
create mode 100644 dev/tools/phan/plugins/UrlEncodeStringifyFixer.php
create mode 100755 dev/tools/phan/runPhanDocker.sh
create mode 100644 dev/tools/phan/stubs/GeoIP2.php
create mode 100644 dev/tools/phan/stubs/SimpleXML.phan_php
create mode 100644 dev/tools/phan/stubs/brotli.phan_php
create mode 100644 dev/tools/phan/stubs/calendar.phan_php
create mode 100644 dev/tools/phan/stubs/curl.phan_php
create mode 100644 dev/tools/phan/stubs/fileinfo.phan_php
create mode 100644 dev/tools/phan/stubs/ftp.phan_php
create mode 100644 dev/tools/phan/stubs/gd.phan_php
create mode 100644 dev/tools/phan/stubs/geoip.phan_php
create mode 100644 dev/tools/phan/stubs/geoip_inc.php
create mode 100644 dev/tools/phan/stubs/imagick.phan_php
create mode 100644 dev/tools/phan/stubs/imap.phan_php
create mode 100644 dev/tools/phan/stubs/intl.phan_php
create mode 100644 dev/tools/phan/stubs/ldap.phan_php
create mode 100644 dev/tools/phan/stubs/mcrypt.phan_php
create mode 100644 dev/tools/phan/stubs/memcache.phan_php
create mode 100644 dev/tools/phan/stubs/memcached.phan_php
create mode 100644 dev/tools/phan/stubs/module_numberwords.php
create mode 100644 dev/tools/phan/stubs/multicompany.php
create mode 100644 dev/tools/phan/stubs/mysqli.phan_php
create mode 100644 dev/tools/phan/stubs/nusoap.php
create mode 100644 dev/tools/phan/stubs/pdo_cubrid.phan_php
create mode 100644 dev/tools/phan/stubs/pdo_mysql.phan_php
create mode 100644 dev/tools/phan/stubs/pdo_pgsql.phan_php
create mode 100644 dev/tools/phan/stubs/pdo_sqlite.phan_php
create mode 100644 dev/tools/phan/stubs/pgsql.phan_php
create mode 100644 dev/tools/phan/stubs/restler.php
create mode 100644 dev/tools/phan/stubs/session.phan_php
create mode 100644 dev/tools/phan/stubs/soap.phan_php
create mode 100644 dev/tools/phan/stubs/sockets.phan_php
create mode 100644 dev/tools/phan/stubs/stripe.php
create mode 100644 dev/tools/phan/stubs/swiss-qr-bill.php
create mode 100644 dev/tools/phan/stubs/tidy.phan_php
create mode 100644 dev/tools/phan/stubs/zip.phan_php
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000000000..4fb78f3a5cf6a
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,43 @@
+name: "CI"
+
+on: [push, pull_request]
+jobs:
+ pre-commit:
+ if: false
+ uses: ./.github/workflows/pre-commit.yml
+ secrets: inherit
+ with:
+ gh_event: ${{ github.event_name }}
+ phan:
+ uses: ./.github/workflows/phan.yml
+ secrets: inherit
+ with:
+ gh_event: ${{ github.event_name }}
+ phpstan:
+ if: false
+ uses: ./.github/workflows/phpstan.yml
+ secrets: inherit
+ needs: [pre-commit, phan]
+ with:
+ gh_event: ${{ github.event_name }}
+ windows-ci:
+ if: false
+ needs: [pre-commit, phan]
+ secrets: inherit
+ uses: ./.github/workflows/windows-ci.yml
+ with:
+ gh_event: ${{ github.event_name }}
+ gh-travis: # Runs travis script on github runner (not on travis)
+ if: false
+ # needs: [pre-commit, phan]
+ # needs: [windows-ci]
+ secrets: inherit
+ uses: ./.github/workflows/gh-travis.yml
+ with:
+ gh_event: ${{ github.event_name }}
+
+
+# Note (not tested, from https://github.com/orgs/community/discussions/38361)
+# To cancel jobs if one failes, the following action may help
+# - if: "failure()"
+# uses: "andymckay/cancel-action@0.3"
diff --git a/.github/workflows/phan.yaml b/.github/workflows/phan.yaml
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/.gitignore b/.gitignore
index 8c639a2654050..2964b1ead0f0a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,6 +50,9 @@ build/yarn-error.log
build/node_modules/
node_modules/
+vendor/
+tmp/
+
#yarn
yarn.lock
@@ -59,11 +62,30 @@ package-lock.json
doc/install.lock
/.asciidoctorconfig.adoc
-# Qodana
-.idea/vcs.xml
-.idea/modules.xml
-.idea/workspace.xml
-.idea/inspectionProfiles/Project_Default.xml
-.idea/jsLinters/jshint.xml
+.idea
/composer.json
/composer.lock
+
+# Local script, executed during pre-commit
+/local.sh
+
+# Local phpstan configuration
+/phpstan.neon
+/phpstan-baseline.neon
+
+# Logs
+/*.log
+
+# Vim swap files
+*.sw?
+
+# Generated by PHPUNIT.BAT
+/INI_PHPUNIT
+
+# ignore cache builds
+/build/phpstan/phpstan
+/build/phpstan/bootstrap_custom.php
+phpstan_custom.neon
+/.php-cs-fixer.cache
+/.php_cs.cache
+/.cache
diff --git a/dev/tools/phan/PHAN.BAT b/dev/tools/phan/PHAN.BAT
new file mode 100644
index 0000000000000..930dc30595d59
--- /dev/null
+++ b/dev/tools/phan/PHAN.BAT
@@ -0,0 +1,46 @@
+@ECHO OFF
+REM Usage (use from root of project):
+REM - Standard checks:
+REM PHAN.BAT
+REM - Extended checks:
+REM PHAN.BAT extended
+REM - Use fixer configuration:
+REM PHAN.BAT fix
+REM
+REM Standard phan options can be added on the command line.
+
+set MEMOPT=--memory-limit=4G
+set CONFIG=--config-file
+set CONFIG_FILE=dev/tools/phan/config.php
+set FIX=
+set USERARGS=
+SET TWICE=--analyze-twice
+
+rem Iterate through each argument
+for %%i in (%*) do (
+ if "%%i"=="--memory-limit" (
+ set MEMOPT=""
+ )
+ if "%%i"=="extended" (
+ set CONFIG="--config-file"
+ set CONFIG_FILE=dev/tools/phan/config_extended.php
+ goto :nextloop
+ )
+ if "%%i"=="fix" (
+ set FIX="--automatic-fix"
+ set CONFIG="--config-file"
+ set CONFIG_FILE=dev/tools/phan/config_fixer.php
+ set TWICE=
+ goto :nextloop
+ )
+ if "%%i"=="--config-file" (
+ set CONFIG=
+ set CONFIG_FILE=
+ )
+ set "USERARGS=%USERARGS% %%i"
+
+ :nextloop
+ REM NEXTLOOP
+)
+
+../phan/vendor/bin/phan.bat %TWICE% %MEMOPT% %FIX% %CONFIG% %CONFIG_FILE% %USERARGS%
diff --git a/dev/tools/phan/README.md b/dev/tools/phan/README.md
new file mode 100644
index 0000000000000..c011b6aaf08cd
--- /dev/null
+++ b/dev/tools/phan/README.md
@@ -0,0 +1,46 @@
+### Static Code Checks using [phan]
+
+#### Installation, running
+
+`run-phan.sh` can install and run `phan`.
+
+See instructions in `run-phan.sh` for installing (or just run it).
+
+The configuration file in `PROJECT_DIR/.phan/config.php` also allows you to run
+`phan` independently from the script.
+
+#### Run options:
+
+No option : Runs the minimum checks
+
+Option 'full' : Runs all an extensive set of checks
+
+Option '1' : Writes the baseline
+
+Examples:
+
+- `run-phan.sh` runs the default checks
+- `run-phan.sh 1` updates the baseline for the default checks
+- `run-phan.sh full` runs the extended checks
+- `run-phan.sh full 1` updates the baseline for the extended checks
+
+#### Baseline
+
+The `baseline.txt` file in this directory defines the issues that are currently
+excluded from the final report. In principle you should not add any more
+exceptions to that file, but rather fix the issues or add [phan annotations]
+that provide more information or to exclude specific cases.
+
+#### Configuration
+
+`config.php` : Default configuration file
+
+`config_extended.php` : Configuration that enables more checks.
+
+`baseline.txt` : Ignored issues (with `config.php`)
+
+`baseline_extended.txt` : Ignored issues (with `config_extended.php`), not
+currently in git
+
+[phan]: https://github.com/phan/phan/wiki/Getting-Started
+[phan annotations]: https://github.com/phan/phan/wiki/Annotating-Your-Source-Code
diff --git a/dev/tools/phan/baseline.txt b/dev/tools/phan/baseline.txt
new file mode 100644
index 0000000000000..4362634f9616a
--- /dev/null
+++ b/dev/tools/phan/baseline.txt
@@ -0,0 +1,1828 @@
+ [
+ 'htdocs/accountancy/admin/account.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/accountancy/admin/accountmodel.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredVariableDim'],
+ 'htdocs/accountancy/admin/card.php' => ['PhanPluginDuplicateExpressionAssignment', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/accountancy/admin/categories.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/admin/categories_list.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredVariableDim'],
+ 'htdocs/accountancy/admin/closure.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/admin/defaultaccounts.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/admin/export.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/admin/fiscalyear.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/accountancy/admin/fiscalyear_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/accountancy/admin/fiscalyear_info.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/admin/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/admin/journals_list.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredVariableDim'],
+ 'htdocs/accountancy/admin/productaccount.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp', 'PhanUndeclaredVariableDim'],
+ 'htdocs/accountancy/admin/subaccount.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/bookkeeping/balance.php' => ['PhanNonClassMethodCall', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/accountancy/bookkeeping/card.php' => ['PhanPossiblyNullTypeMismatchProperty', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/accountancy/bookkeeping/export.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/bookkeeping/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/bookkeeping/listbyaccount.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/class/accountancycategory.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/accountancy/class/accountancyexport.class.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/accountancy/class/accountancyimport.class.php' => ['PhanPluginUnknownArrayMethodParamType'],
+ 'htdocs/accountancy/class/accountancysystem.class.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/accountancy/class/accountingaccount.class.php' => ['PhanPluginAlwaysReturnMethod', 'PhanPluginMixedKeyNoKey', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/class/accountingjournal.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/class/api_accountancy.class.php' => ['PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/class/bookkeeping.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredTypeParameter', 'PhanUndeclaredTypeReturnType'],
+ 'htdocs/accountancy/class/lettering.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable'],
+ 'htdocs/accountancy/closure/index.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/customer/card.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/customer/index.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/customer/lines.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/customer/list.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/accountancy/expensereport/card.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/expensereport/index.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/expensereport/lines.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/expensereport/list.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/index.php' => ['PhanTypeMismatchArgumentProbablyReal', 'UnknownModuleName'],
+ 'htdocs/accountancy/journal/bankjournal.php' => ['PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch', 'PhanUndeclaredProperty'],
+ 'htdocs/accountancy/journal/expensereportsjournal.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/accountancy/journal/purchasesjournal.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfBitwiseOp', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/accountancy/journal/sellsjournal.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfBitwiseOp', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/journal/variousjournal.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/supplier/card.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/supplier/index.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/supplier/lines.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/accountancy/supplier/list.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/accountancy/tpl/export_journal.tpl.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/adherents/admin/member.php' => ['DeprecatedModuleName', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDimFetch', 'PhanUndeclaredVariableDim'],
+ 'htdocs/adherents/admin/website.php' => ['PhanUndeclaredVariableDim'],
+ 'htdocs/adherents/agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/canvas/actions_adherentcard_common.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/adherents/canvas/default/actions_adherentcard_default.class.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateIfStatements', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/adherents/class/adherent.class.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateConditionalUnnecessary', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable', 'PhanUndeclaredProperty'],
+ 'htdocs/adherents/class/adherent_type.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyDefault'],
+ 'htdocs/adherents/class/adherentstats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchReturnNullable'],
+ 'htdocs/adherents/class/api_members.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/class/api_memberstypes.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/adherents/class/api_subscriptions.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/class/subscription.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchPropertyDefault'],
+ 'htdocs/adherents/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/htpasswd.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/ldap.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/adherents/note.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/partnership.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/stats/geo.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeArraySuspiciousNull', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/adherents/stats/index.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/adherents/subscription.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/adherents/subscription/card.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/adherents/subscription/info.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/subscription/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanEmptyForeach', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/type.php' => ['GetPostUnknownSanitizeType', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/adherents/type_translation.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/adherents/vcard.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/agenda_extsites.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/agenda_other.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/agenda_reminder.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/bank.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/bank_extrafields.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/bankline_extrafields.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/barcode.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/admin/bom.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/boxes.php' => ['PhanTypeInvalidLeftOperandOfAdd'],
+ 'htdocs/admin/chequereceipts.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/commande.php' => ['DeprecatedModuleName', 'PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/company.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/admin/contract.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/defaultvalues.php' => ['PhanTypeMismatchProperty'],
+ 'htdocs/admin/delais.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/admin/delivery.php' => ['DeprecatedModuleName', 'PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/dict.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/admin/dolistore/class/PSWebServiceLibrary.class.php' => ['PhanMisspelledAnnotation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/admin/dolistore/class/dolistore.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanUndeclaredProperty'],
+ 'htdocs/admin/ecm.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/emailcollector_card.php' => ['PhanNonClassMethodCall', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredMethod', 'PhanUnreferencedUseNormal'],
+ 'htdocs/admin/emailcollector_list.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/admin/eventorganization.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/expedition.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/expensereport.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/expensereport_ik.php' => ['PhanTypeMismatchProperty'],
+ 'htdocs/admin/expensereport_rules.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/admin/external_rss.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentInternal'],
+ 'htdocs/admin/facture.php' => ['DeprecatedModuleName', 'PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/facture_situation.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/fckeditor.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/fichinter.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/geoipmaxmind.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/holiday.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/hrm.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/ihm.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/knowledgemanagement.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/ldap.php' => ['DeprecatedModuleName'],
+ 'htdocs/admin/ldap_groups.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/ldap_users.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/admin/limits.php' => ['PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal'],
+ 'htdocs/admin/loan.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/mailman.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/mails.php' => ['GetPostUnknownSanitizeType', 'PhanPluginEmptyStatementIf', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/admin/mails_emailing.php' => ['GetPostUnknownSanitizeType', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/admin/mails_senderprofile_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/mails_templates.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/admin/mails_ticket.php' => ['GetPostUnknownSanitizeType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/admin/menus.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/menus/edit.php' => ['GetPostUnknownSanitizeType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchProperty'],
+ 'htdocs/admin/menus/index.php' => ['PhanUndeclaredVariableDim'],
+ 'htdocs/admin/modulehelp.php' => ['PhanDeprecatedFunctionInternal', 'PhanNonClassMethodCall', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDimFetchNullable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/modules.php' => ['PhanEmptyFQSENInClasslike', 'PhanInvalidFQSENInClasslike', 'PhanNonClassMethodCall', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchDimFetchNullable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/mrp.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/mrp_extrafields.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/multicurrency.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/oauth.php' => ['PhanEmptyForeach', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/oauthlogintokens.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/payment.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/pdf.php' => ['PhanPluginSimplifyExpressionBool', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/pdf_other.php' => ['DeprecatedModuleName'],
+ 'htdocs/admin/perms.php' => ['PhanNonClassMethodCall', 'PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/admin/propal.php' => ['DeprecatedModuleName', 'PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/receiptprinter.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanRedefineFunctionInternal', 'PhanTypeMismatchDimFetchNullable', 'PhanUndeclaredProperty'],
+ 'htdocs/admin/reception_setup.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/security.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/security_file.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/sms.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredProperty'],
+ 'htdocs/admin/spip.php' => ['PhanTypeMismatchDimFetch'],
+ 'htdocs/admin/stock.php' => ['DeprecatedModuleName', 'PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/stocktransfer.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/supplier_invoice.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/supplier_order.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/supplier_payment.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/supplier_proposal.php' => ['DeprecatedModuleName', 'PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/syslog.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/admin/system/constall.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/system/database-tables.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/admin/system/database.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredConstantOfClass'],
+ 'htdocs/admin/system/dbtable.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/admin/system/dolibarr.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/system/filecheck.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/system/modules.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownClosureReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/system/phpinfo.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayFunctionParamType'],
+ 'htdocs/admin/system/security.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/admin/system/web.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/admin/system/xdebug.php' => ['PhanTypeSuspiciousStringExpression'],
+ 'htdocs/admin/taxes.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/admin/ticket.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/tools/dolibarr_export.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredConstantOfClass'],
+ 'htdocs/admin/tools/dolibarr_import.php' => ['PhanUndeclaredConstantOfClass'],
+ 'htdocs/admin/tools/export_files.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/admin/tools/listevents.php' => ['PhanPluginSuspiciousParamOrder'],
+ 'htdocs/admin/tools/listsessions.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/admin/translation.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/admin/triggers.php' => ['PhanPluginSuspiciousParamPosition'],
+ 'htdocs/admin/user.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/usergroup.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/webhook.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/website.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchDefault', 'PhanUndeclaredVariableDim'],
+ 'htdocs/admin/workflow.php' => ['DeprecatedModuleName', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType'],
+ 'htdocs/admin/workstation.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/api/admin/explorer_withredoc.php' => ['PhanPluginPHPDocInWrongComment'],
+ 'htdocs/api/admin/index.php' => ['PhanPluginSimplifyExpressionBool'],
+ 'htdocs/api/class/api.class.php' => ['PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayMethodParamType', 'PhanUnreferencedUseNormal'],
+ 'htdocs/api/class/api_access.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownClosureReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchPropertyDefault', 'PhanUndeclaredProperty', 'PhanUnreferencedUseNormal'],
+ 'htdocs/api/class/api_documents.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUnreferencedUseNormal'],
+ 'htdocs/api/class/api_login.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/api/class/api_setup.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/api/class/api_status.class.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/api/index.php' => ['DeprecatedModuleName', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownClosureReturnType'],
+ 'htdocs/asset/accountancy_codes.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/admin/setup.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/asset/agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/card.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/class/asset.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/asset/class/assetaccountancycodes.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType'],
+ 'htdocs/asset/class/assetdepreciationoptions.class.php' => ['PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidRightOperandOfNumericOp'],
+ 'htdocs/asset/class/assetmodel.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/asset/depreciation.php' => ['PhanPluginEmptyStatementIf'],
+ 'htdocs/asset/depreciation_options.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/disposal.php' => ['PhanPluginEmptyStatementIf', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/document.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/model/accountancy_codes.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/model/agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/model/card.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/model/depreciation_options.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/model/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/model/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/tpl/accountancy_codes_edit.tpl.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/asset/tpl/accountancy_codes_view.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/asset/tpl/depreciation_options_edit.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/asset/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/asterisk/wrapper.php' => ['PhanDeprecatedFunctionInternal', 'PhanRedefineFunction'],
+ 'htdocs/barcode/codeinit.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/barcode/printsheet.php' => ['PhanPluginDuplicateExpressionBinaryOp', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/blockedlog/admin/blockedlog_list.php' => ['PhanPluginPrintfIncompatibleArgumentType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/blockedlog/ajax/block-info.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/blockedlog/ajax/check_signature.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/blockedlog/class/authority.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/blockedlog/class/blockedlog.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/blockedlog/lib/blockedlog.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/bom/ajax/ajax.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bom/bom_agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bom/bom_card.php' => ['PhanPluginDuplicateConditionalUnnecessary', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/bom/bom_document.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bom/bom_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bom/bom_net_needs.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bom/bom_note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bom/class/api_boms.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/bom/class/bom.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanTypeArraySuspicious', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/bom/lib/bom.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bom/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bom/tpl/objectline_create.tpl.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/bom/tpl/objectline_edit.tpl.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/bom/tpl/objectline_view.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/bookcal/admin/setup.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/bookcal/availabilities_agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bookcal/availabilities_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/bookcal/availabilities_contact.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bookcal/availabilities_document.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bookcal/availabilities_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/bookcal/availabilities_note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bookcal/bookcalindex.php' => ['PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/bookcal/booking_agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bookcal/booking_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/bookcal/booking_contact.php' => ['PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/bookcal/booking_document.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bookcal/booking_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/bookcal/class/availabilities.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/bookcal/class/booking.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/bookcal/lib/bookcal.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/bookcal/lib/bookcal_availabilities.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bookcal/lib/bookcal_booking.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/bookmarks/card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/bookmarks/class/bookmark.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchProperty'],
+ 'htdocs/bookmarks/list.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/categories/card.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/categories/class/api_categories.class.php' => ['PhanAccessMethodProtected', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/categories/class/categorie.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeConversionFromArray', 'PhanTypeMismatchArgumentInternalReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/categories/edit.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/categories/index.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/categories/info.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/categories/photos.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch', 'PhanUndeclaredProperty'],
+ 'htdocs/categories/traduction.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch', 'PhanUndeclaredProperty'],
+ 'htdocs/categories/viewcat.php' => ['PhanPluginDuplicateExpressionBinaryOp', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/collab/index.php' => ['PhanParamTooMany', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanUndeclaredProperty'],
+ 'htdocs/comm/action/card.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginDuplicateIfStatements', 'PhanPluginEmptyStatementIf', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeArraySuspicious', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/comm/action/class/actioncomm.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeArraySuspicious', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturnNullable', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/comm/action/class/actioncommreminder.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchPropertyDefault'],
+ 'htdocs/comm/action/class/api_agendaevents.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeArraySuspiciousNull', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredVariable'],
+ 'htdocs/comm/action/class/cactioncomm.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/comm/action/class/ical.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/comm/action/document.php' => ['PhanTypeArraySuspicious', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/action/index.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginPrintfIncompatibleArgumentType', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeArraySuspiciousNull', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredVariableDim'],
+ 'htdocs/comm/action/info.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/comm/action/list.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/comm/action/pertype.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanPluginRedundantAssignmentInLoop', 'PhanPluginUnknownArrayFunctionParamType', 'PhanTypeArraySuspicious', 'PhanTypeComparisonFromArray', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/comm/action/peruser.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanPluginRedundantAssignmentInLoop', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeComparisonFromArray', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/action/rapport/index.php' => ['PhanPluginSuspiciousParamOrder'],
+ 'htdocs/comm/card.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/comm/contact.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/index.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/mailing/advtargetemailing.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchProperty'],
+ 'htdocs/comm/mailing/card.php' => ['PhanPluginDuplicateIfStatements', 'PhanPluginMixedKeyNoKey', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/comm/mailing/cibles.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/comm/mailing/class/advtargetemailing.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/comm/mailing/class/html.formadvtargetemailing.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeInvalidPropertyName'],
+ 'htdocs/comm/mailing/class/mailing.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/comm/mailing/index.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/comm/mailing/info.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/mailing/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/multiprix.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/propal/agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/propal/card.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunction', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/comm/propal/class/api_proposals.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturnNullable'],
+ 'htdocs/comm/propal/class/propal.class.php' => ['PhanNonClassMethodCall', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/comm/propal/class/propalestats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/comm/propal/contact.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/propal/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/propal/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/propal/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/comm/propal/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/propal/stats/index.php' => ['GetPostUnknownSanitizeType', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/comm/propal/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/prospect/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/comm/recap-client.php' => ['DeprecatedModuleName'],
+ 'htdocs/comm/remise.php' => ['GetPostUnknownSanitizeType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/comm/remx.php' => ['PhanPluginMixedKeyNoKey', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanUndeclaredProperty'],
+ 'htdocs/commande/agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/commande/card.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunction', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/commande/class/api_orders.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/commande/class/commande.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunction', 'PhanDeprecatedFunctionInternal', 'PhanNonClassMethodCall', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/commande/class/commandestats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/commande/contact.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/commande/customer.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/commande/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/commande/index.php' => ['DeprecatedModuleName'],
+ 'htdocs/commande/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/commande/list_det.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunction', 'PhanDeprecatedFunctionInternal', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/commande/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/commande/stats/index.php' => ['GetPostUnknownSanitizeType', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/commande/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/accounting-files.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/ajaxpayment.php' => ['PhanPluginSimplifyExpressionBool', 'PhanTypeInvalidRightOperandOfNumericOp'],
+ 'htdocs/compta/bank/account_statement_document.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/bank/annuel.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/bank/bankentries_list.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/bank/budget.php' => ['PhanTypeMismatchArgumentInternal'],
+ 'htdocs/compta/bank/card.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/bank/class/account.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/bank/class/api_bankaccounts.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUnextractableAnnotation'],
+ 'htdocs/compta/bank/class/bankcateg.class.php' => ['PhanPluginUnknownArrayPropertyType'],
+ 'htdocs/compta/bank/class/paymentvarious.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/bank/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/bank/graph.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginPrintfIncompatibleArgumentType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeArraySuspicious', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/bank/info.php' => ['PhanUndeclaredVariableDim'],
+ 'htdocs/compta/bank/line.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/compta/bank/list.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/bank/releve.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/bank/transfer.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/bank/treso.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/compta/bank/various_payment/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignment', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/bank/various_payment/document.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/bank/various_payment/info.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/bank/various_payment/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/compta/cashcontrol/cashcontrol_card.php' => ['PhanNoopProperty', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/cashcontrol/cashcontrol_list.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/compta/cashcontrol/class/cashcontrol.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanUndeclaredTypeParameter'],
+ 'htdocs/compta/cashcontrol/report.php' => ['PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidUnaryOperandIncOrDec'],
+ 'htdocs/compta/charges/index.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/compta/clients.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/deplacement/card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/deplacement/class/deplacement.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/deplacement/class/deplacementstats.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/compta/deplacement/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/deplacement/index.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/deplacement/list.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/compta/deplacement/stats/index.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/compta/facture/agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/facture/card-rec.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/facture/card.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanDeprecatedFunction', 'PhanEmptyForeach', 'PhanPluginDuplicateExpressionAssignment', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginMixedKeyNoKey', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/facture/class/api_invoices.class.php' => ['DeprecatedModuleName', 'PhanEmptyForeach', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeComparisonFromArray', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/facture/class/facture-rec.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/facture/class/facture.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunction', 'PhanDeprecatedFunctionInternal', 'PhanEmptyForeach', 'PhanPluginDuplicateConditionalUnnecessary', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeInvalidRightOperandOfBitwiseOp', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/facture/class/facturestats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/facture/class/paymentterm.class.php' => ['PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/facture/contact.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/facture/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/facture/invoicetemplate_list.php' => ['GetPostUnknownSanitizeType', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/facture/list.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfCondition', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/facture/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/facture/prelevement.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/facture/stats/index.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/facture/tpl/linkedobjectblock.tpl.php' => ['PhanNonClassMethodCall', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/facture/tpl/linkedobjectblockForRec.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/index.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/journal/purchasesjournal.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/compta/journal/sellsjournal.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/compta/localtax/card.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/localtax/class/localtax.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/localtax/clients.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/localtax/index.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanRedefineFunction', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/localtax/list.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/localtax/quadri_detail.php' => ['PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/paiement.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty'],
+ 'htdocs/compta/paiement/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/paiement/cheque/card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/paiement/cheque/class/remisecheque.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchDefault'],
+ 'htdocs/compta/paiement/cheque/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/paiement/cheque/list.php' => ['PhanPluginSuspiciousParamOrder', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/paiement/class/cpaiement.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/paiement/class/paiement.class.php' => ['DeprecatedModuleName', 'PhanEmptyForeach', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/compta/paiement/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/paiement/rapport.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/paiement/tovalidate.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/paiement_charge.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/compta/paiement_vat.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/compta/payment_sc/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/payment_vat/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/paymentbybanktransfer/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/prelevement/card.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/class/bonprelevement.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginPrintfIncompatibleArgumentType', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/class/ligneprelevement.class.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/class/rejetprelevement.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/create.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/demandes.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/compta/prelevement/factures.php' => ['PhanPluginSuspiciousParamOrder', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/fiche-rejet.php' => ['PhanPluginSuspiciousParamOrder', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/fiche-stat.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/prelevement/line.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/rejets.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/compta/prelevement/stats.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/recap-compta.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/resultat/clientfourn.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/resultat/index.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/compta/resultat/result.php' => ['PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimAssignment', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/sociales/card.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/sociales/class/cchargesociales.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/sociales/class/chargesociales.class.php' => ['PhanPluginDuplicateExpressionAssignment', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredTypeReturnType'],
+ 'htdocs/compta/sociales/class/paymentsocialcontribution.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/sociales/document.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/sociales/info.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/sociales/list.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamOrder', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/sociales/note.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/sociales/payments.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/compta/stats/byratecountry.php' => ['PhanPluginEmptyStatementIf', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/stats/cabyprodserv.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/stats/cabyuser.php' => ['DeprecatedModuleName', 'PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/stats/casoc.php' => ['DeprecatedModuleName', 'PhanPluginEmptyStatementIf', 'PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/stats/index.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/compta/stats/supplier_turnover.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/compta/stats/supplier_turnover_by_prodserv.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/stats/supplier_turnover_by_thirdparty.php' => ['PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/compta/tva/card.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/tva/class/paymentvat.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/tva/class/tva.class.php' => ['DeprecatedModuleName', 'PhanPluginAlwaysReturnMethod', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMissingReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/tva/clients.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchDimFetchNullable', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/tva/document.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/tva/index.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanRedefineFunction', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/tva/info.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/compta/tva/initdatesforvat.inc.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/tva/list.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/compta/tva/payments.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/compta/tva/quadri_detail.php' => ['PhanPluginSimplifyExpressionBool', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/contact/agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contact/canvas/actions_contactcard_common.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeSuspiciousNonTraversableForeach'],
+ 'htdocs/contact/canvas/default/actions_contactcard_default.class.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contact/card.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/contact/class/contact.class.php' => ['PhanPluginDuplicateConditionalUnnecessary', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/contact/consumption.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/contact/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contact/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/contact/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contact/perso.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/contact/vcard.php' => ['PhanDeprecatedFunction'],
+ 'htdocs/contrat/agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contrat/card.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanPluginDuplicateExpressionAssignment', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginMixedKeyNoKey', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/contrat/class/api_contracts.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contrat/class/contrat.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanNonClassMethodCall', 'PhanPluginDuplicateExpressionAssignment', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimEmpty', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredFunctionInCallable', 'PhanUndeclaredProperty'],
+ 'htdocs/contrat/contact.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contrat/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contrat/index.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/contrat/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/contrat/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/contrat/services_list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanParamSpecial1', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/contrat/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/core/actions_addupdatedelete.inc.php' => ['DeprecatedModuleName', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/actions_builddoc.inc.php' => ['PhanTypeMismatchProperty', 'PhanUndeclaredMethod'],
+ 'htdocs/core/actions_comments.inc.php' => ['PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/actions_dellink.inc.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/core/actions_extrafields.inc.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/actions_lineupdown.inc.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod'],
+ 'htdocs/core/actions_linkedfiles.inc.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/actions_massactions.inc.php' => ['GetPostUnknownSanitizeType', 'PhanDeprecatedFunctionInternal', 'PhanParamTooFew', 'PhanPluginDuplicateIfStatements', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredClass', 'PhanUndeclaredClassProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/actions_printing.inc.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/core/actions_sendmails.inc.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/actions_setmoduleoptions.inc.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/core/actions_setnotes.inc.php' => ['PhanUndeclaredMethod'],
+ 'htdocs/core/ajax/ajaxdirpreview.php' => ['PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/ajax/ajaxdirtree.php' => ['PhanDeprecatedFunctionInternal', 'PhanEmptyForeachBody', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/ajax/ajaxstatusprospect.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/ajax/ajaxtooltip.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/ajax/check_notifications.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/ajax/extraparams.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/core/ajax/fileupload.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/ajax/flowjs-server.php' => ['PhanDeprecatedFunctionInternal', 'PhanSuspiciousMagicConstant', 'PhanTypeInvalidRightOperandOfNumericOp'],
+ 'htdocs/core/ajax/loadinplace.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/ajax/locationincoterms.php' => ['PhanUndeclaredVariableDim'],
+ 'htdocs/core/ajax/objectonoff.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/core/ajax/onlineSign.php' => ['PhanUndeclaredMagicConstant', 'PhanUndeclaredMethod'],
+ 'htdocs/core/ajax/row.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/core/ajax/saveinplace.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/core/ajax/selectobject.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/ajax/selectsearchbox.php' => ['DeprecatedModuleName', 'PhanPluginUndeclaredVariableIsset', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/ajax/ziptown.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/boxes/box_accountancy_last_manual_entries.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_accountancy_suspense_account.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_actions.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_actions_future.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_activity.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_birthdays.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_birthdays_members.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_boms.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/box_bookmarks.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_clients.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_commandes.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_comptes.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/box_contacts.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_contracts.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_customers_outstanding_bill_reached.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_dolibarr_state_board.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_external_rss.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/box_factures.php' => ['PhanPluginPrintfVariableFormatString', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_factures_fourn.php' => ['PhanPluginPrintfVariableFormatString', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_factures_fourn_imp.php' => ['PhanPluginPrintfVariableFormatString', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_factures_imp.php' => ['PhanPluginPrintfVariableFormatString', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_ficheinter.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_fournisseurs.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_funnel_of_prospection.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_goodcustomers.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_invoices_permonth.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_invoices_peryear.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_invoices_supplier_permonth.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_nb_ticket_last_x_days.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_nb_tickets_type.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/box_graph_new_vs_close_ticket.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanRedundantArrayValuesCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_orders_permonth.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_orders_supplier_permonth.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable'],
+ 'htdocs/core/boxes/box_graph_product_distribution.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_propales_permonth.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_graph_ticket_by_severity.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_last_knowledgerecord.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_last_modified_knowledgerecord.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_last_modified_ticket.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_last_ticket.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_lastlogin.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/box_members_by_tags.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/boxes/box_members_by_type.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/boxes/box_members_last_modified.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_members_last_subscriptions.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_members_subscriptions_by_year.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_mos.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/box_produits.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_produits_alerte_stock.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_project.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/core/boxes/box_project_opportunities.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_propales.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_prospect.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_scheduled_jobs.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_services_contracts.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_services_expired.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_shipments.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/box_supplier_orders.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_supplier_orders_awaiting_reception.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/boxes/box_task.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/box_validated_projects.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/boxes/modules_boxes.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeSuspiciousStringExpression'],
+ 'htdocs/core/class/CMailFile.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginEmptyStatementIf', 'PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredMethod', 'PhanUndeclaredVariable'],
+ 'htdocs/core/class/CSMSFile.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredClassMethod', 'PhanUndeclaredClassProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/antivir.class.php' => ['PhanTypeMismatchArgumentInternal'],
+ 'htdocs/core/class/canvas.class.php' => ['PhanPluginAlwaysReturnMethod', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/ccountry.class.php' => ['PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/cgenericdic.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/comment.class.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/commondocgenerator.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeArraySuspiciousNull', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchDefault', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/commonincoterm.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/commoninvoice.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/class/commonobject.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanEmptyFQSENInClasslike', 'PhanPluginDuplicateIfCondition', 'PhanPluginDuplicateIfStatements', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeInvalidPropertyName', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable', 'PhanTypeMismatchReturnProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/class/commonobjectline.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/class/commonorder.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredMethod'],
+ 'htdocs/core/class/commonpeople.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUnextractableAnnotationSuffix'],
+ 'htdocs/core/class/commonsocialnetworks.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/commonstickergenerator.class.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchDimFetch', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/conf.class.php' => ['PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredClassAttribute'],
+ 'htdocs/core/class/cproductnature.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType'],
+ 'htdocs/core/class/cregion.class.php' => ['PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/cstate.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/core/class/ctypent.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchProperty'],
+ 'htdocs/core/class/ctyperesource.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/cunits.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/defaultvalues.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/class/discount.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/doleditor.class.php' => ['PhanPluginDuplicateConditionalUnnecessary', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/dolgeoip.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchReturnProbablyReal'],
+ 'htdocs/core/class/dolgraph.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/dolreceiptprinter.class.php' => ['PhanEmptyForeach', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginPHPDocInWrongComment', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUnreferencedUseNormal'],
+ 'htdocs/core/class/emailsenderprofile.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchPropertyDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/evalmath.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPluginUnsafeEval', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredTypeReturnType'],
+ 'htdocs/core/class/events.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/core/class/extrafields.class.php' => ['PhanPluginDuplicateExpressionAssignment', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturnNullable', 'PhanUndeclaredVariable'],
+ 'htdocs/core/class/extralanguages.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/fileupload.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/core/class/fiscalyear.class.php' => ['PhanPluginMixedKeyNoKey', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty'],
+ 'htdocs/core/class/google.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/core/class/hookmanager.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/html.form.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginConstantVariableNull', 'PhanPluginDuplicateConditionalUnnecessary', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginDuplicateIfStatements', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredVariable'],
+ 'htdocs/core/class/html.formaccounting.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/class/html.formactions.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/class/html.formadmin.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchDefault', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/class/html.formbarcode.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/html.formcategory.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/html.formcompany.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDeclaredParam', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/html.formcontract.class.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/html.formexpensereport.class.php' => ['PhanTypeMismatchDefault'],
+ 'htdocs/core/class/html.formfile.class.php' => ['PhanPluginConstantVariableNull', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty', 'PhanUndeclaredStaticMethod'],
+ 'htdocs/core/class/html.formintervention.class.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnProbablyReal'],
+ 'htdocs/core/class/html.formldap.class.php' => ['PhanPluginUnknownArrayMethodParamType'],
+ 'htdocs/core/class/html.formmail.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanNoopArray', 'PhanPluginEmptyStatementIf', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeConversionFromArray', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/class/html.formmailing.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation'],
+ 'htdocs/core/class/html.formmargin.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/html.formother.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/html.formprojet.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturnNullable'],
+ 'htdocs/core/class/html.formsetup.class.php' => ['PhanDeprecatedFunction', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimEmpty', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/core/class/html.formsms.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanUndeclaredClassMethod', 'PhanUndeclaredClassProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/html.formticket.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/html.formwebsite.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/class/infobox.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/class/interfaces.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeSuspiciousStringExpression'],
+ 'htdocs/core/class/ldap.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturn', 'PhanUndeclaredFunction', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/link.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/menu.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/core/class/menubase.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/notify.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/class/openid.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchReturn', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/class/rssparser.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPluginDuplicateIfStatements', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternalProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredFunctionInCallable', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/smtps.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturnNullable', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/class/stats.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeArraySuspicious', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturnNullable', 'PhanUndeclaredMethod'],
+ 'htdocs/core/class/timespent.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredClassMethod', 'PhanUndeclaredClassProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/translate.class.php' => ['PhanPluginPrintfVariableFormatString', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable'],
+ 'htdocs/core/class/utils.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginConstantVariableNull', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/class/utils_diff.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/validate.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/class/vcard.class.php' => ['PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/core/commonfieldsinexport.inc.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/core/commonfieldsinimport.inc.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/core/customreports.php' => ['DeprecatedModuleName', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchDimFetchNullable', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/core/db/Database.interface.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredTypeParameter'],
+ 'htdocs/core/db/DoliDB.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/db/mysqli.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginDuplicateIfStatements', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeComparisonFromArray', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/core/db/pgsql.class.php' => ['PhanParamSignatureMismatch', 'PhanParamSpecial1', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/db/sqlite3.class.php' => ['PhanParamSignatureMismatch', 'PhanParamSpecial1', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchBitwiseBinaryOperands', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/extrafieldsinexport.inc.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/core/extrafieldsinimport.inc.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/core/filemanagerdol/connectors/php/connector.lib.php' => ['PhanPluginConstantVariableNull', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/filemanagerdol/connectors/php/connector.php' => ['PhanPluginConstantVariableNull'],
+ 'htdocs/core/get_info.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/core/get_menudiv.php' => ['PhanRedefinedClassReference'],
+ 'htdocs/core/js/lib_head.js.php' => ['PhanTypeMismatchArgumentInternal'],
+ 'htdocs/core/lib/accounting.lib.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/lib/admin.lib.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/agenda.lib.php' => ['DeprecatedModuleName', 'PhanPluginConstantVariableNull', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/lib/ajax.lib.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturnNullable'],
+ 'htdocs/core/lib/asset.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/bank.lib.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/core/lib/barcode.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/core/lib/categories.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/company.lib.php' => ['DeprecatedModuleName', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchPropertyProbablyReal'],
+ 'htdocs/core/lib/contact.lib.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/contract.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/cron.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/date.lib.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginPrintfIncompatibleArgumentType', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable', 'PhanTypeMismatchReturnProbablyReal'],
+ 'htdocs/core/lib/doc.lib.php' => ['PhanPossiblyUndeclaredVariable'],
+ 'htdocs/core/lib/donation.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/ecm.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/emailing.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/eventorganization.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/expedition.lib.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/expensereport.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/fichinter.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/files.lib.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPluginDuplicateIfCondition', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanSuspiciousMagicConstant', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentInternalReal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturnNullable', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/lib/fiscalyear.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/fourn.lib.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/ftp.lib.php' => ['PhanPluginDuplicateIfStatements', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUseReturnValueInternalKnown', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/core/lib/functions.lib.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanNonClassMethodCall', 'PhanParamTooMany', 'PhanPluginAlwaysReturnFunction', 'PhanPluginDuplicateArrayKey', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginDuplicateIfCondition', 'PhanPluginPrintfIncompatibleArgumentType', 'PhanPluginPrintfNoSpecifiers', 'PhanPluginPrintfNotPercent', 'PhanPluginPrintfVariableFormatString', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginSuspiciousParamPosition', 'PhanPluginSuspiciousParamPositionInternal', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnsafeEval', 'PhanPossiblyUndeclaredVariable', 'PhanRedefineFunctionInternal', 'PhanTypeArraySuspicious', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentInternalReal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable', 'PhanTypeMismatchReturnProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'UnknownSanitizeType'],
+ 'htdocs/core/lib/functions2.lib.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSuspiciousOrder', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnsafeEval', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturnNullable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/core/lib/functions_ch.lib.php' => ['PhanTypeMismatchDimFetch', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/lib/functionsnumtoword.lib.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal'],
+ 'htdocs/core/lib/geturl.lib.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginConstantVariableNull', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/core/lib/holiday.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/hrm.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/images.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/lib/import.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/intracommreport.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/invoice.lib.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredVariable'],
+ 'htdocs/core/lib/invoice2.lib.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredMethod'],
+ 'htdocs/core/lib/json.lib.php' => ['PhanPluginUnsafeEval', 'PhanRedefineFunctionInternal'],
+ 'htdocs/core/lib/ldap.lib.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/lib/loan.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/mailmanspip.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/member.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/memory.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturnProbablyReal'],
+ 'htdocs/core/lib/modulebuilder.lib.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnsafeEval', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeSuspiciousStringExpression'],
+ 'htdocs/core/lib/multicurrency.lib.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/oauth.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/order.lib.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredVariable'],
+ 'htdocs/core/lib/payments.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/lib/pdf.lib.php' => ['DeprecatedModuleName', 'PhanAccessMethodProtected', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable', 'PhanUndeclaredClassMethod', 'PhanUndeclaredClassProperty', 'PhanUndeclaredProperty', 'PhanUndeclaredTypeReturnType'],
+ 'htdocs/core/lib/prelevement.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/price.lib.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/lib/product.lib.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/lib/project.lib.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/lib/propal.lib.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredVariable'],
+ 'htdocs/core/lib/receiptprinter.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/reception.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/report.lib.php' => ['PhanPluginUnknownArrayFunctionParamType'],
+ 'htdocs/core/lib/resource.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/salaries.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/security.lib.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentInternalReal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/lib/security2.lib.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternalReal', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/core/lib/sendings.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/lib/signature.lib.php' => ['PhanSuspiciousMagicConstant', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/lib/stock.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/supplier_proposal.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/takepos.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/tax.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/ticket.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/lib/treeview.lib.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/lib/trip.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/core/lib/usergroups.lib.php' => ['PhanNoopArrayAccess', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/vat.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/website.lib.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable'],
+ 'htdocs/core/lib/website2.lib.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/lib/ws.lib.php' => ['PhanPluginUnknownArrayFunctionParamType'],
+ 'htdocs/core/lib/xcal.lib.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/login/functions_dolibarr.php' => ['PhanNoopUnaryOperator'],
+ 'htdocs/core/login/functions_ldap.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrderInternal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/login/functions_openid.php' => ['PhanTypeMismatchReturn'],
+ 'htdocs/core/login/functions_openid_connect.php' => ['PhanTypeMismatchReturn'],
+ 'htdocs/core/menus/standard/auguria.lib.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayFunctionParamType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousEcho', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/core/menus/standard/auguria_menu.php' => ['PhanParamSuspiciousOrder', 'PhanPluginDuplicateIfStatements', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanRedefineClass', 'PhanTypeMismatchDimAssignment', 'PhanUndeclaredVariable'],
+ 'htdocs/core/menus/standard/eldy.lib.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeSuspiciousEcho', 'PhanTypeSuspiciousStringExpression', 'UnknownModuleName'],
+ 'htdocs/core/menus/standard/eldy_menu.php' => ['PhanParamSuspiciousOrder', 'PhanPluginDuplicateIfStatements', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanRedefineClass', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimAssignment'],
+ 'htdocs/core/menus/standard/empty.php' => ['PhanParamSuspiciousOrder', 'PhanPluginDuplicateIfStatements', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanRedefineClass', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/DolibarrModules.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnNullable'],
+ 'htdocs/core/modules/action/modules_action.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/core/modules/action/rapport.class.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanUndeclaredClassMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredTypeParameter'],
+ 'htdocs/core/modules/asset/doc/doc_generic_asset_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchArgumentSuperType', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/asset/mod_asset_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/asset/mod_asset_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/asset/modules_asset.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/bank/doc/pdf_ban.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanUndeclaredClassMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredTypeParameter'],
+ 'htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/bank/modules_bank.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/barcode/doc/phpbarcode.modules.php' => ['PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredVariable'],
+ 'htdocs/core/modules/barcode/doc/tcpdfbarcode.modules.php' => ['PhanTypeMismatchArgumentInternal'],
+ 'htdocs/core/modules/barcode/mod_barcode_product_standard.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentSuperType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/modules/barcode/mod_barcode_thirdparty_standard.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentSuperType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/modules/barcode/modules_barcode.class.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/core/modules/bom/doc/doc_generic_bom_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/bom/mod_bom_advanced.php' => ['PhanParamSignatureMismatch', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/bom/mod_bom_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/bom/modules_bom.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/cheque/doc/pdf_blochet.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/cheque/mod_chequereceipt_mint.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/cheque/mod_chequereceipt_thyme.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/cheque/modules_chequereceipts.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/commande/doc/pdf_einstein.modules.php' => ['GetPostUnknownSanitizeType', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchArgumentSuperType', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/commande/mod_commande_marbre.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/commande/mod_commande_saphir.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/commande/modules_commande.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/contract/doc/pdf_strato.modules.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredClassMethod', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredTypeParameter', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/contract/mod_contract_magre.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/contract/mod_contract_serpis.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/contract/modules_contract.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/delivery/doc/pdf_storm.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchArgumentSuperType', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/delivery/doc/pdf_typhon.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/delivery/mod_delivery_jade.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/delivery/mod_delivery_saphir.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/delivery/modules_delivery.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/dons/html_cerfafr.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentInternal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/dons/modules_don.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/core/modules/expedition/doc/pdf_espadon.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchArgumentSuperType', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/expedition/doc/pdf_merou.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/expedition/doc/pdf_rouget.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/expedition/mod_expedition_ribera.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/expedition/mod_expedition_safor.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/expedition/modules_expedition.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/expensereport/doc/pdf_standard.modules.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownPropertyType', 'PhanRedefineClass', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/expensereport/mod_expensereport_jade.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/expensereport/mod_expensereport_sand.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/expensereport/modules_expensereport.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/export/export_csviso.modules.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/export/export_csvutf8.modules.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/export/export_excel2007.modules.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchDimFetchNullable', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/export/export_tsv.modules.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/export/exportcsv.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/export/modules_export.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/facture/doc/pdf_crabe.modules.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/facture/doc/pdf_sponge.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchArgumentSuperType', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/facture/mod_facture_mars.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak'],
+ 'htdocs/core/modules/facture/mod_facture_mercure.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/facture/mod_facture_terre.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/facture/modules_facture.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDeclaredParamNullable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/fichinter/mod_arctic.php' => ['PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/fichinter/mod_pacific.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/modules/fichinter/modules_fichinter.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/modules/holiday/mod_holiday_immaculate.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/holiday/mod_holiday_madonna.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/holiday/modules_holiday.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/hrm/mod_evaluation_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/hrm/mod_evaluation_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/hrm/modules_evaluation.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/import/import_csv.modules.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSpecial1', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/import/import_xlsx.modules.php' => ['PhanParamSpecial1', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/import/modules_import.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/mailings/advthirdparties.modules.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/mailings/contacts1.modules.php' => ['PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/mailings/eventorganization.modules.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/mailings/modules_mailings.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/mailings/partnership.modules.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/mailings/thirdparties.modules.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/modules/mailings/thirdparties_services_expired.modules.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/mailings/xinputfile.modules.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/mailings/xinputuser.modules.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/member/doc/doc_generic_member_odt.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/member/doc/pdf_standard.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodParamType', 'PhanPossiblyUndeclaredVariable', 'PhanRedefineClass', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/member/mod_member_advanced.php' => ['PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/member/mod_member_simple.php' => ['PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/member/modules_cards.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/core/modules/member/modules_member.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/modAdherent.class.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/modules/modAgenda.class.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/modules/modCategorie.class.php' => ['DeprecatedModuleName'],
+ 'htdocs/core/modules/modDeplacement.class.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/core/modules/modExpedition.class.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/core/modules/modFacture.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation'],
+ 'htdocs/core/modules/modReception.class.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/core/modules/modTakePos.class.php' => ['PhanTypeMismatchProperty'],
+ 'htdocs/core/modules/modUser.class.php' => ['DeprecatedModuleName'],
+ 'htdocs/core/modules/movement/doc/pdf_standard.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPluginEmptyStatementIf', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanRedefineClass', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/movement/modules_movement.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/mrp/doc/doc_generic_mo_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/mrp/doc/pdf_vinci.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeArraySuspiciousNull', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternalProbablyReal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/mrp/mod_mo_advanced.php' => ['PhanParamSignatureMismatch', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/mrp/mod_mo_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/mrp/modules_mo.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/oauth/generic_oauthcallback.php' => ['PhanUndeclaredMethod', 'PhanUnreferencedUseNormal'],
+ 'htdocs/core/modules/oauth/github_oauthcallback.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUnreferencedUseNormal'],
+ 'htdocs/core/modules/oauth/google_oauthcallback.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredMethod', 'PhanUnreferencedUseNormal'],
+ 'htdocs/core/modules/oauth/microsoft_oauthcallback.php' => ['PhanUndeclaredMethod', 'PhanUnreferencedUseNormal'],
+ 'htdocs/core/modules/oauth/stripelive_oauthcallback.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable', 'PhanUnreferencedUseNormal'],
+ 'htdocs/core/modules/oauth/stripetest_oauthcallback.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable', 'PhanUnreferencedUseNormal'],
+ 'htdocs/core/modules/payment/mod_payment_ant.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/payment/mod_payment_cicada.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/payment/modules_payment.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/core/modules/printing/modules_printing.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/printing/printgcp.modules.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUnreferencedUseNormal'],
+ 'htdocs/core/modules/printing/printipp.modules.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeExpectedObjectPropAccess', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/printsheet/doc/pdf_standardlabel.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/printsheet/modules_labels.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/core/modules/product/doc/doc_generic_product_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/product/doc/pdf_standard.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginEmptyStatementIf', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredVariable', 'PhanRedefineClass', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/product/mod_codeproduct_elephant.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/product/mod_codeproduct_leopard.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/modules/product/modules_product.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/product_batch/mod_lot_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/product_batch/mod_lot_free.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchProperty'],
+ 'htdocs/core/modules/product_batch/mod_lot_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/product_batch/mod_sn_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/product_batch/mod_sn_free.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/product_batch/mod_sn_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/product_batch/modules_product_batch.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeArraySuspicious', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/project/doc/pdf_baleine.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/project/doc/pdf_beluga.modules.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/project/doc/pdf_timespent.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/project/mod_project_simple.php' => ['PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/project/mod_project_universal.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/project/modules_project.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType'],
+ 'htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeArraySuspicious', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/project/task/mod_task_simple.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/project/task/mod_task_universal.php' => ['PhanParamSignatureMismatch', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/project/task/modules_task.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/propale/doc/doc_generic_proposal_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/propale/doc/pdf_azur.modules.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/propale/doc/pdf_cyan.modules.php' => ['PhanPluginAlwaysReturnMethod', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchArgumentSuperType', 'PhanTypeMissingReturn', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/propale/mod_propale_marbre.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/propale/mod_propale_saphir.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/propale/modules_propale.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/rapport/pdf_paiement.class.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/reception/doc/doc_generic_reception_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/reception/doc/pdf_squille.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/reception/mod_reception_beryl.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/reception/mod_reception_moonstone.php' => ['PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/reception/modules_reception.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/security/generate/modGeneratePassNone.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/security/generate/modGeneratePassPerso.class.php' => ['PhanPluginUnknownPropertyType', 'PhanPossiblyInfiniteRecursionSameParams', 'PhanTypeMismatchArgumentInternalReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/security/generate/modGeneratePassStandard.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/societe/doc/doc_generic_odt.modules.php' => ['PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/societe/mod_codeclient_elephant.php' => ['PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/societe/mod_codeclient_leopard.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/modules/societe/mod_codeclient_monkey.php' => ['PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/societe/mod_codecompta_aquarium.php' => ['PhanPluginDuplicateIfStatements', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidPropertyName', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/societe/mod_codecompta_digitaria.php' => ['PhanNoopBinaryOperator', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/societe/mod_codecompta_panicum.php' => ['PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/societe/modules_societe.class.php' => ['PhanPluginDuplicateIfCondition', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/stock/doc/pdf_standard.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanRedefineClass', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/stock/modules_stock.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType'],
+ 'htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchDefault', 'PhanUndeclaredClassMethod', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredTypeParameter'],
+ 'htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php' => ['PhanPluginAlwaysReturnMethod', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchArgumentSuperType', 'PhanTypeMissingReturn', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/modules/stocktransfer/mod_stocktransfer_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/stocktransfer/mod_stocktransfer_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/stocktransfer/modules_stocktransfer.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php' => ['PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternalProbablyReal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_tulip.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/supplier_invoice/modules_facturefournisseur.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php' => ['PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeArraySuspiciousNull', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/modules/supplier_order/mod_commande_fournisseur_orchidee.php' => ['PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/supplier_order/modules_commandefournisseur.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault'],
+ 'htdocs/core/modules/supplier_payment/doc/pdf_standard.modules.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownPropertyType', 'PhanRedefineClass', 'PhanTypeMismatchDefault', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/supplier_payment/mod_supplier_payment_brodator.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/supplier_payment/mod_supplier_payment_bronan.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/supplier_payment/modules_supplier_payment.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/supplier_proposal/doc/doc_generic_supplier_proposal_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php' => ['PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternalProbablyReal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/supplier_proposal/mod_supplier_proposal_marbre.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/supplier_proposal/mod_supplier_proposal_saphir.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/supplier_proposal/modules_supplier_proposal.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/syslog/logHandler.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/syslog/logHandlerInterface.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/syslog/mod_syslog_file.php' => ['PhanParamSignatureMismatch', 'PhanParamSuspiciousOrder', 'PhanPluginDuplicateArrayKey', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/syslog/mod_syslog_syslog.php' => ['PhanParamSignatureMismatch', 'PhanPluginConstantVariableNull', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/modules/takepos/mod_takepos_ref_simple.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak'],
+ 'htdocs/core/modules/takepos/mod_takepos_ref_universal.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/ticket/doc/doc_generic_ticket_odt.modules.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/ticket/mod_ticket_simple.php' => ['PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/ticket/mod_ticket_universal.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/ticket/modules_ticket.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/core/modules/user/modules_user.class.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/usergroup/doc/doc_generic_usergroup_odt.modules.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/core/modules/usergroup/modules_usergroup.class.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/modules/workstation/mod_workstation_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/workstation/mod_workstation_standard.php' => ['PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/core/modules/workstation/modules_workstation.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/core/multicompany_page.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/core/photos_resize.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression'],
+ 'htdocs/core/search_page.php' => ['PhanEmptyForeach', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginSuspiciousParamPosition'],
+ 'htdocs/core/tpl/admin_extrafields_edit.tpl.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/admin_extrafields_view.tpl.php' => ['PhanPluginDuplicateConditionalUnnecessary'],
+ 'htdocs/core/tpl/advtarget.tpl.php' => ['DeprecatedModuleName', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/ajaxrow.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/bloc_comment.tpl.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/bloc_showhide.tpl.php' => ['PhanPluginSimplifyExpressionBool'],
+ 'htdocs/core/tpl/card_presend.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/tpl/commonfields_add.tpl.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/core/tpl/commonfields_edit.tpl.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/core/tpl/commonfields_view.tpl.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/contacts.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/document_actions_post_headers.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/extrafields_add.tpl.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/core/tpl/extrafields_edit.tpl.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUndeclaredVariableIsset'],
+ 'htdocs/core/tpl/extrafields_list_array_fields.tpl.php' => ['PhanUndeclaredVariableDim'],
+ 'htdocs/core/tpl/extrafields_list_print_fields.tpl.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchDimAssignment', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/extrafields_list_search_title.tpl.php' => ['PhanPluginUndeclaredVariableIsset'],
+ 'htdocs/core/tpl/extrafields_view.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/tpl/filemanager.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/core/tpl/list_print_total.tpl.php' => ['PhanTypeComparisonToArray'],
+ 'htdocs/core/tpl/login.tpl.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/massactions_pre.tpl.php' => ['PhanDeprecatedFunctionInternal', 'PhanNonClassMethodCall', 'PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/notes.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/tpl/object_discounts.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/core/tpl/objectline_create.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredThis'],
+ 'htdocs/core/tpl/objectline_edit.tpl.php' => ['PhanNonClassMethodCall', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/core/tpl/objectline_title.tpl.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredThis'],
+ 'htdocs/core/tpl/objectline_view.tpl.php' => ['PhanNonClassMethodCall', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredThis'],
+ 'htdocs/core/tpl/onlinepaymentlinks.tpl.php' => ['DeprecatedModuleName', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/originproductline.tpl.php' => ['PhanUndeclaredThis'],
+ 'htdocs/core/tpl/passwordforgotten.tpl.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/passwordreset.tpl.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/resource_add.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/tpl/resource_view.tpl.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/core/triggers/dolibarrtriggers.class.php' => ['PhanPluginUnknownArrayPropertyType'],
+ 'htdocs/core/triggers/interface_20_all_Logevents.class.php' => ['PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredVariable'],
+ 'htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignment', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/core/triggers/interface_50_modEventOrganization_EventOrganization.class.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/core/triggers/interface_50_modMailmanspip_Mailmanspipsynchro.class.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/core/triggers/interface_50_modNotification_Notification.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/core/triggers/interface_50_modTicket_TicketEmail.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanUndeclaredProperty'],
+ 'htdocs/core/triggers/interface_80_modStripe_Stripe.class.php' => ['PhanDeprecatedFunction', 'PhanPluginEmptyStatementIf', 'PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentSuperType', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/core/triggers/interface_90_modSociete_ContactRoles.class.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/cron/card.php' => ['PhanPluginBothLiteralsBinaryOp', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/cron/class/cronjob.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/cron/list.php' => ['PhanPluginDuplicateConditionalUnnecessary', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchProperty'],
+ 'htdocs/datapolicy/admin/setup.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentInternalReal'],
+ 'htdocs/datapolicy/admin/setupmail.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/datapolicy/class/actions_datapolicy.class.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredVariable'],
+ 'htdocs/datapolicy/class/datapolicy.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/datapolicy/class/datapolicycron.class.php' => ['PhanPluginPrintfVariableFormatString', 'PhanUndeclaredProperty'],
+ 'htdocs/datapolicy/lib/datapolicy.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/dav/dav.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/dav/dav.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/dav/fileserver.php' => ['PhanDeprecatedFunction', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType'],
+ 'htdocs/debugbar/class/DataCollector/DolConfigCollector.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/debugbar/class/DataCollector/DolExceptionsCollector.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/debugbar/class/DataCollector/DolLogsCollector.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanRedefinedClassReference'],
+ 'htdocs/debugbar/class/DataCollector/DolMemoryCollector.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/debugbar/class/DataCollector/DolMessagesCollector.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/debugbar/class/DataCollector/DolPhpCollector.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType', 'PhanPowerOfZero'],
+ 'htdocs/debugbar/class/DataCollector/DolQueryCollector.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUnreferencedUseNormal'],
+ 'htdocs/debugbar/class/DataCollector/DolRequestDataCollector.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/debugbar/class/DataCollector/DolTimeDataCollector.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/debugbar/class/DataCollector/DolibarrCollector.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanTypeSuspiciousStringExpression', 'PhanUnreferencedUseNormal'],
+ 'htdocs/debugbar/class/TraceableDB.php' => ['PhanAccessPropertyNonStaticAsStatic', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchProperty', 'PhanUndeclaredTypeParameter'],
+ 'htdocs/debugbar/class/autoloader.php' => ['PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType', 'PhanTypeMismatchArgumentInternal'],
+ 'htdocs/delivery/card.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/delivery/class/delivery.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimEmpty', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/document.php' => ['PhanDeprecatedFunctionInternal', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/don/admin/donation.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/don/card.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/don/class/api_donations.class.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchReturn'],
+ 'htdocs/don/class/don.class.php' => ['PhanParamTooMany', 'PhanPluginDuplicateConditionalUnnecessary', 'PhanPluginEmptyStatementIf', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/don/class/donstats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/don/class/paymentdonation.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal'],
+ 'htdocs/don/document.php' => ['PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/don/index.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/don/info.php' => ['PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/don/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/don/note.php' => ['PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/don/payment/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/don/payment/payment.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/don/stats/index.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/don/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/ecm/class/ecmdirectory.class.php' => ['PhanPluginUnknownArrayPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturnProbablyReal'],
+ 'htdocs/ecm/class/ecmfiles.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/ecm/class/htmlecm.form.class.php' => ['PhanPluginUnknownArrayMethodParamType'],
+ 'htdocs/ecm/dir_card.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/ecm/index.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/ecm/index_auto.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateIfStatements', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/ecm/index_medias.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/ecm/search.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/emailcollector/class/emailcollector.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanEmptyFQSENInClasslike', 'PhanInvalidFQSENInClasslike', 'PhanNonClassMethodCall', 'PhanNoopBinaryOperator', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable', 'PhanUnreferencedUseNormal'],
+ 'htdocs/emailcollector/class/emailcollectoraction.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/emailcollector/class/emailcollectorfilter.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/emailcollector/lib/emailcollector.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeArraySuspicious', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchReturn'],
+ 'htdocs/eventorganization/class/conferenceorbooth.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanUndeclaredProperty'],
+ 'htdocs/eventorganization/class/conferenceorboothattendee.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/eventorganization/conferenceorbooth_card.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/eventorganization/conferenceorbooth_contact.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/eventorganization/conferenceorbooth_document.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/eventorganization/conferenceorbooth_list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/eventorganization/conferenceorboothattendee_card.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/eventorganization/conferenceorboothattendee_list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/eventorganization/core/actions_massactions_mail.inc.php' => ['PhanNonClassMethodCall', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/eventorganization/lib/eventorganization_conferenceorbooth.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownFunctionParamType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/eventorganization/tpl/linkedobjectblock.tpl.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/expedition/card.php' => ['DeprecatedModuleName', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/expedition/class/api_shipments.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/expedition/class/expedition.class.php' => ['DeprecatedModuleName', 'PhanPluginAlwaysReturnMethod', 'PhanPluginPrintfVariableFormatString', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/expedition/class/expeditionlinebatch.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/expedition/class/expeditionstats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/expedition/contact.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/expedition/dispatch.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/expedition/document.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/expedition/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/expedition/note.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/expedition/shipment.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/expedition/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/expensereport/card.php' => ['DeprecatedModuleName', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginDuplicateIfStatements', 'PhanPluginMixedKeyNoKey', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/expensereport/class/api_expensereports.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn'],
+ 'htdocs/expensereport/class/expensereport.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/expensereport/class/expensereport_ik.class.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/expensereport/class/expensereport_rule.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchDefault'],
+ 'htdocs/expensereport/class/expensereportstats.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/expensereport/class/paymentexpensereport.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/expensereport/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/expensereport/index.php' => ['PhanDeprecatedFunctionInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/expensereport/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/expensereport/payment/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/expensereport/payment/info.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/expensereport/payment/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/expensereport/payment/payment.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/expensereport/stats/index.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/expensereport/tpl/expensereport_addfile.tpl.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/expensereport/tpl/expensereport_linktofile.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/expensereport/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/exports/class/export.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDimEmpty', 'PhanTypeMismatchForeach', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/exports/export.php' => ['GetPostUnknownSanitizeType', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/exports/index.php' => ['PhanPluginSuspiciousParamPosition'],
+ 'htdocs/externalsite/frames.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/fichinter/agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fichinter/card-rec.php' => ['DeprecatedModuleName', 'PhanNoopProperty', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/fichinter/card.php' => ['DeprecatedModuleName', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/fichinter/class/api_interventions.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/fichinter/class/fichinter.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/fichinter/class/fichinterrec.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/fichinter/class/fichinterstats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/fichinter/contact.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fichinter/document.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/fichinter/index.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/fichinter/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/fichinter/note.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/fichinter/tpl/linkedobjectblock.tpl.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/filefunc.inc.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/fourn/card.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/class/api_supplier_invoices.class.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeComparisonFromArray', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanUnextractableAnnotation'],
+ 'htdocs/fourn/class/api_supplier_orders.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/fourn/class/fournisseur.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturnNullable', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/class/fournisseur.commande.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/class/fournisseur.commande.dispatch.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/class/fournisseur.facture-rec.class.php' => ['PhanPluginAlwaysReturnMethod', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/fourn/class/fournisseur.facture.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionBinaryOp', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeInvalidRightOperandOfBitwiseOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/fourn/class/fournisseur.product.class.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/class/paiementfourn.class.php' => ['PhanEmptyForeach', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/commande/card.php' => ['DeprecatedModuleName', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginDuplicateIfStatements', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/commande/contact.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/fourn/commande/dispatch.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/commande/document.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/fourn/commande/index.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/fourn/commande/info.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/fourn/commande/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/commande/note.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/contact.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/fourn/facture/card-rec.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/facture/card.php' => ['DeprecatedModuleName', 'PhanEmptyForeach', 'PhanPluginMixedKeyNoKey', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetchNullable', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp', 'PhanUndeclaredVariableDim', 'UnknownModuleName'],
+ 'htdocs/fourn/facture/contact.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/facture/document.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/facture/info.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/facture/list-rec.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/facture/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/facture/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/facture/paiement.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp', 'PhanUndeclaredVariableDim'],
+ 'htdocs/fourn/facture/rapport.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/fourn/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/paiement/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/paiement/document.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/paiement/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/product/list.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/fourn/recap-fourn.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/ftp/admin/ftpclient.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/ftp/index.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/holiday/card.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/holiday/card_group.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/holiday/class/holiday.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/holiday/define_holiday.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/holiday/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/holiday/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/holiday/month_report.php' => ['PhanPluginPrintfIncompatibleArgumentType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/holiday/view_log.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/hrm/admin/admin_hrm.php' => ['PhanEmptyForeach', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/class/evaluation.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/class/evaluationdet.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/class/job.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/class/position.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/class/skill.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanNoopVariable', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/class/skilldet.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/class/skillrank.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/compare.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/hrm/core/tpl/objectline_view.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredThis'],
+ 'htdocs/hrm/core/tpl/skilldet.fiche.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod'],
+ 'htdocs/hrm/establishment/card.php' => ['PhanTypeMismatchProperty'],
+ 'htdocs/hrm/establishment/info.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/evaluation_agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/evaluation_card.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/evaluation_contact.php' => ['PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/hrm/evaluation_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/evaluation_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/index.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/hrm/job_agenda.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/job_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/hrm/job_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/job_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/lib/hrm.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/hrm/lib/hrm_evaluation.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/lib/hrm_job.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/lib/hrm_position.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/lib/hrm_skill.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/lib/hrm_skilldet.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/lib/hrm_skillrank.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/position.php' => ['PhanDeprecatedFunctionInternal', 'PhanNonClassMethodCall', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariable'],
+ 'htdocs/hrm/position_agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/position_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariable'],
+ 'htdocs/hrm/position_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/position_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/skill_agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/skill_card.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/hrm/skill_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/skill_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/hrm/skill_tab.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/imports/class/import.class.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/imports/emptyexample.php' => ['PhanRedefineFunction', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/imports/import.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/imports/index.php' => ['PhanPluginSuspiciousParamPosition'],
+ 'htdocs/index.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/install/check.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/install/fileconf.php' => ['PhanParamSuspiciousOrder', 'PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/install/inc.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType', 'PhanRedefineFunction'],
+ 'htdocs/install/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/install/repair.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression'],
+ 'htdocs/install/step1.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/install/step2.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/install/step5.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/install/upgrade.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredConstantOfClass'],
+ 'htdocs/install/upgrade2.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredVariable'],
+ 'htdocs/intracommreport/admin/intracommreport.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/intracommreport/card.php' => ['PhanAccessPropertyStaticAsNonStatic', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/intracommreport/class/intracommreport.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/intracommreport/list.php' => ['PhanAccessPropertyStaticAsNonStatic', 'PhanDeprecatedFunctionInternal', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/knowledgemanagement/class/api_knowledgemanagement.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/knowledgemanagement/class/knowledgerecord.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/knowledgemanagement/core/modules/knowledgemanagement/mod_knowledgerecord_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/knowledgemanagement/core/modules/knowledgemanagement/mod_knowledgerecord_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/knowledgemanagement/core/modules/knowledgemanagement/modules_knowledgerecord.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/knowledgemanagement/knowledgerecord_agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/knowledgemanagement/knowledgerecord_card.php' => ['DeprecatedModuleName', 'PhanPluginEmptyStatementIf', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/knowledgemanagement/knowledgerecord_contact.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/knowledgemanagement/knowledgerecord_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/knowledgemanagement/knowledgerecord_list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/knowledgemanagement/knowledgerecord_note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/knowledgemanagement/lib/knowledgemanagement.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/knowledgemanagement/lib/knowledgemanagement_knowledgerecord.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/loan/card.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUnreferencedUseNormal'],
+ 'htdocs/loan/class/loan.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUnsetPropertyOfThis'],
+ 'htdocs/loan/class/loanschedule.class.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/loan/class/paymentloan.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/loan/document.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/loan/info.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/loan/list.php' => ['PhanPluginSuspiciousParamOrder', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/loan/note.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/loan/payment/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentInternal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/loan/payment/payment.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/loan/schedule.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/mailmanspip/class/mailmanspip.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault'],
+ 'htdocs/main.inc.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanDeprecatedFunctionInternal', 'PhanEmptyForeach', 'PhanPluginConstantVariableNull', 'PhanPluginPrintfVariableFormatString', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanPossiblyUndeclaredVariable', 'PhanRedefineFunction', 'PhanRedefinedClassReference', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentInternalReal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchForeach', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredVariable'],
+ 'htdocs/margin/agentMargins.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/margin/checkMargins.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/margin/customerMargins.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/margin/index.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/margin/lib/margins.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/margin/productMargins.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/margin/tabs/productMargins.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/margin/tabs/thirdpartyMargins.php' => ['PhanPluginSuspiciousParamPosition'],
+ 'htdocs/master.inc.php' => ['PhanRedefineFunctionInternal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/modulebuilder/admin/setup.php' => ['GetPostUnknownSanitizeType'],
+ 'htdocs/modulebuilder/index.php' => ['PhanNoopBinaryOperator', 'PhanNoopStringLiteral', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/mrp/class/api_mos.class.php' => ['PhanPluginRedundantReturnComment', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchForeach', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression'],
+ 'htdocs/mrp/class/mo.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyDefault', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/mrp/lib/mrp.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/mrp/lib/mrp_mo.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/mrp/mo_agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/mrp/mo_card.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/mrp/mo_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/mrp/mo_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/mrp/mo_movements.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/mrp/mo_production.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeSuspiciousStringExpression'],
+ 'htdocs/mrp/tpl/linkedobjectblock.tpl.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/mrp/tpl/originproductline.tpl.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/multicurrency/class/api_multicurrencies.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredVariable'],
+ 'htdocs/multicurrency/class/multicurrency.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturn', 'PhanTypeMismatchReturnProbablyReal'],
+ 'htdocs/multicurrency/multicurrency_rate.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/opcachepreload.php' => ['PhanEmptyForeach'],
+ 'htdocs/opensurvey/card.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/opensurvey/class/opensurveysondage.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchProperty'],
+ 'htdocs/opensurvey/lib/opensurvey.lib.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault'],
+ 'htdocs/opensurvey/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanEmptyForeach', 'PhanParamSpecial1', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/opensurvey/results.php' => ['PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/opensurvey/wizard/choix_autre.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool'],
+ 'htdocs/opensurvey/wizard/choix_date.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/opensurvey/wizard/create_survey.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/partnership/class/api_partnership.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchReturn'],
+ 'htdocs/partnership/class/partnership.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchDimEmpty', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/partnership/class/partnership_type.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredMethod'],
+ 'htdocs/partnership/class/partnershiputils.class.php' => ['PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/partnership/core/modules/partnership/mod_partnership_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/partnership/core/modules/partnership/mod_partnership_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/partnership/core/modules/partnership/modules_partnership.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/partnership/lib/partnership.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/partnership/partnership_agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/partnership/partnership_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/partnership/partnership_contact.php' => ['PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/partnership/partnership_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/partnership/partnership_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/paybox/admin/paybox.php' => ['DeprecatedModuleName'],
+ 'htdocs/paybox/lib/paybox.lib.php' => ['PhanNoopBinaryOperator'],
+ 'htdocs/paypal/admin/paypal.php' => ['DeprecatedModuleName'],
+ 'htdocs/paypal/lib/paypal.lib.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/paypal/lib/paypalfunctions.lib.php' => ['PhanPluginSimplifyExpressionBool'],
+ 'htdocs/printing/admin/printing.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/printing/index.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/printing/lib/printing.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/product/admin/dynamic_prices.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/product/admin/product.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginEmptyStatementIf', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/admin/product_lot.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/admin/product_tools.php' => ['PhanNoopStringLiteral', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/agenda.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/ajax/products.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/product/canvas/product/actions_card_product.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/product/canvas/service/actions_card_service.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/product/card.php' => ['DeprecatedModuleName', 'PhanPluginMixedKeyNoKey', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/product/class/api_products.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/product/class/html.formproduct.class.php' => ['PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/product/class/product.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/class/productbatch.class.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault'],
+ 'htdocs/product/class/productcustomerprice.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/product/class/productfournisseurprice.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/product/class/propalmergepdfproduct.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturnProbablyReal'],
+ 'htdocs/product/composition/card.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/product/document.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/dynamic_price/class/price_expression.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault'],
+ 'htdocs/product/dynamic_price/class/price_global_variable.class.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault'],
+ 'htdocs/product/dynamic_price/class/price_global_variable_updater.class.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchPropertyProbablyReal'],
+ 'htdocs/product/dynamic_price/class/price_parser.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/product/fournisseurs.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/product/index.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/inventory/card.php' => ['PhanPluginEmptyStatementIf', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/product/inventory/class/inventory.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyDefault', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/inventory/inventory.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/product/inventory/lib/inventory.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/product/inventory/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/popuprop.php' => ['PhanPluginDuplicateIfStatements', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidUnaryOperandIncOrDec'],
+ 'htdocs/product/price.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/product/reassort.php' => ['DeprecatedModuleName', 'PhanPluginWhitespaceTrailing', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/reassortlot.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stats/card.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanTypeComparisonFromArray', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stats/commande.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stats/commande_fournisseur.php' => ['PhanPluginSuspiciousParamOrder'],
+ 'htdocs/product/stats/contrat.php' => ['PhanPluginSuspiciousParamOrder'],
+ 'htdocs/product/stats/facture.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/product/stats/facture_fournisseur.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/product/stats/facturerec.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stats/mo.php' => ['PhanPluginSuspiciousParamOrder'],
+ 'htdocs/product/stats/propal.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stats/supplier_proposal.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/card.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/product/stock/class/api_stockmovements.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchDefault'],
+ 'htdocs/product/stock/class/api_warehouses.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchReturn'],
+ 'htdocs/product/stock/class/entrepot.class.php' => ['DeprecatedModuleName', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/class/mouvementstock.class.php' => ['PhanPluginAlwaysReturnMethod', 'PhanPluginDuplicateIfStatements', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/class/productlot.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/class/productstockentrepot.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchPropertyProbablyReal'],
+ 'htdocs/product/stock/index.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/product/stock/info.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/lib/replenishment.lib.php' => ['PhanTypeExpectedObjectPropAccessButGotNull', 'PhanUndeclaredVariable'],
+ 'htdocs/product/stock/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/massstockmove.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/movement_card.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSpecial1', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/stock/movement_list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanParamSpecial1', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginDuplicateIfStatements', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/stock/product.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/product/stock/productlot_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/productlot_document.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/productlot_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/replenish.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/stats/commande_fournisseur.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/product/stock/stats/expedition.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/product/stock/stats/mo.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/stats/reception.php' => ['PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/product/stock/stockatdate.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/stocktransfer/class/stocktransfer.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanStaticCallToNonStatic', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/stocktransfer/class/stocktransferline.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/product/stock/stocktransfer/lib/stocktransfer.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/product/stock/stocktransfer/lib/stocktransfer_stocktransfer.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/stocktransfer/stocktransfer_agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/stocktransfer/stocktransfer_card.php' => ['PhanPluginMixedKeyNoKey', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/stocktransfer/stocktransfer_contact.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/stocktransfer/stocktransfer_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/stocktransfer/stocktransfer_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/product/stock/tpl/extrafields_add.tpl.php' => ['PhanDeprecatedFunctionInternal'],
+ 'htdocs/product/stock/tpl/stockcorrection.tpl.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/product/stock/tpl/stocktransfer.tpl.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/product/traduction.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/activity/index.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/activity/perday.php' => ['PhanPluginDuplicateConditionalUnnecessary', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/activity/permonth.php' => ['PhanPluginDuplicateConditionalUnnecessary', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/activity/perweek.php' => ['PhanPluginDuplicateConditionalUnnecessary', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/admin/project.php' => ['PhanEmptyFQSENInClasslike', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/projet/agenda.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/card.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanEmptyFQSENInClasslike', 'PhanPluginMixedKeyNoKey', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/projet/class/api_projects.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/class/api_tasks.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/class/project.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginAlwaysReturnMethod', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimAssignment', 'PhanTypeMismatchReturnNullable', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/class/projectstats.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchReturnNullable', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/class/task.class.php' => ['PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturnNullable', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/class/taskstats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/comment.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/contact.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/document.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/element.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/ganttchart.inc.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/projet/ganttview.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/graph_opportunities.inc.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUndeclaredVariableIsset', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/projet/index.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/projet/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/messaging.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/note.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/stats/index.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/projet/tasks.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/projet/tasks/comment.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/projet/tasks/contact.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/tasks/document.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/tasks/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeArraySuspiciousNull', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/tasks/note.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/projet/tasks/task.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginMixedKeyNoKey', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/projet/tasks/time.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanDeprecatedFunctionInternal', 'PhanEmptyForeach', 'PhanPluginDuplicateIfStatements', 'PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/public/agenda/agendaexport.php' => ['PhanRedefineFunction'],
+ 'htdocs/public/cron/cron_run_jobs_by_url.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/public/datapolicy/index.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/public/demo/index.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanRedefineFunction', 'PhanTypeInvalidPropertyName'],
+ 'htdocs/public/donations/donateurs_code.php' => ['PhanRedefineFunction', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/public/emailing/mailing-read.php' => ['PhanRedefineFunction'],
+ 'htdocs/public/error-401.php' => ['PhanPluginWhitespaceTrailing'],
+ 'htdocs/public/eventorganization/attendee_new.php' => ['PhanParamTooMany', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/public/eventorganization/subscriptionok.php' => ['PhanRedefineFunction', 'PhanTypeMismatchDefault', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/public/members/new.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUndeclaredVariableIsset', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/public/members/public_card.php' => ['DeprecatedModuleName', 'PhanRedefineFunction'],
+ 'htdocs/public/members/public_list.php' => ['DeprecatedModuleName', 'PhanRedefineFunction'],
+ 'htdocs/public/onlinesign/newonlinesign.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredMagicConstant'],
+ 'htdocs/public/opensurvey/studs.php' => ['PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/public/partnership/new.php' => ['PhanDeprecatedFunctionInternal', 'PhanRedefineFunction', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/public/payment/newpayment.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginEmptyStatementIf', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredClassCatch', 'PhanUndeclaredClassMethod', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/public/payment/paymentko.php' => ['PhanPluginEmptyStatementIf', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/public/payment/paymentok.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/public/project/index.php' => ['PhanRedefineFunction', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/public/project/new.php' => ['PhanDeprecatedFunctionInternal', 'PhanEmptyFQSENInClasslike', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/public/project/suggestbooth.php' => ['PhanParamTooMany', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/public/project/suggestconference.php' => ['PhanParamTooMany', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/public/project/viewandvote.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/public/recruitment/index.php' => ['PhanPluginSuspiciousParamOrder'],
+ 'htdocs/public/recruitment/view.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/public/stripe/ipn.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginEmptyStatementIf', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/public/test/test_arrays.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/public/test/test_forms.php' => ['PhanPluginWhitespaceTrailing', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/public/ticket/create_ticket.php' => ['PhanPluginSimplifyExpressionBool', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetchNullable', 'PhanTypeMismatchProperty'],
+ 'htdocs/public/ticket/list.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/public/ticket/view.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/public/users/view.php' => ['PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/public/website/index.php' => ['PhanPluginSuspiciousParamPosition', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/public/website/styles.css.php' => ['PhanRedefineFunction'],
+ 'htdocs/reception/card.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/reception/class/api_receptions.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/reception/class/reception.class.php' => ['DeprecatedModuleName', 'PhanPluginPrintfVariableFormatString', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/reception/class/receptionstats.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/reception/contact.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/reception/dispatch.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/reception/document.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/reception/index.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/reception/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanNoopArrayAccess', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUndeclaredVariableIsset', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/reception/note.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/reception/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/recruitment/admin/setup.php' => ['PhanEmptyFQSENInClasslike', 'PhanEmptyForeach', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/recruitment/admin/setup_candidatures.php' => ['PhanEmptyFQSENInClasslike', 'PhanEmptyForeach', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/recruitment/class/api_recruitment.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/recruitment/class/recruitmentcandidature.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/class/recruitmentjobposition.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/core/modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamOrderInternal', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchArgumentSuperType', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/core/modules/recruitment/mod_recruitmentcandidature_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/recruitment/core/modules/recruitment/mod_recruitmentcandidature_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/recruitment/core/modules/recruitment/mod_recruitmentjobposition_advanced.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/recruitment/core/modules/recruitment/mod_recruitmentjobposition_standard.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginPrintfIncompatibleArgumentTypeWeak', 'PhanTypeMismatchReturn'],
+ 'htdocs/recruitment/core/modules/recruitment/modules_recruitmentcandidature.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/core/modules/recruitment/modules_recruitmentjobposition.php' => ['PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/index.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/recruitment/lib/recruitment.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/recruitment/lib/recruitment_recruitmentcandidature.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/recruitment/lib/recruitment_recruitmentjobposition.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/recruitment/recruitmentcandidature_agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/recruitment/recruitmentcandidature_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/recruitmentcandidature_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/recruitment/recruitmentcandidature_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/recruitmentcandidature_note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/recruitment/recruitmentjobposition_agenda.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/recruitmentjobposition_applications.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/recruitmentjobposition_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/recruitmentjobposition_document.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/recruitment/recruitmentjobposition_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/recruitment/recruitmentjobposition_note.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
+ 'htdocs/rector.php' => ['PhanUndeclaredClassConstant', 'PhanUndeclaredClassMethod', 'PhanUndeclaredClassReference', 'PhanUndeclaredTypeParameter', 'PhanUnreferencedUseNormal'],
+ 'htdocs/resource/agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/resource/card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/resource/class/dolresource.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/resource/class/html.formresource.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/resource/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/resource/element_resource.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/resource/list.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/salaries/admin/salaries.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/salaries/ajax/ajaxsalaries.php' => ['PhanUndeclaredVariableDim'],
+ 'htdocs/salaries/card.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredProperty'],
+ 'htdocs/salaries/class/paymentsalary.class.php' => ['DeprecatedModuleName', 'PhanPluginEmptyStatementIf', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidUnaryOperandNumeric', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/salaries/class/salariesstats.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/salaries/class/salary.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal'],
+ 'htdocs/salaries/document.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredProperty'],
+ 'htdocs/salaries/info.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredProperty'],
+ 'htdocs/salaries/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamOrder', 'PhanTypeMismatchProperty'],
+ 'htdocs/salaries/paiement_salary.php' => ['DeprecatedModuleName', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableAssignOp'],
+ 'htdocs/salaries/payment_salary/card.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/salaries/payments.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchProperty'],
+ 'htdocs/societe/admin/societe.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentNullableInternal', 'PhanUndeclaredVariableDim'],
+ 'htdocs/societe/agenda.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/ajax/ajaxcompanies.php' => ['PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/societe/ajax/company.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/societe/canvas/actions_card_common.class.php' => ['DeprecatedModuleName', 'PhanParamTooMany', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/societe/canvas/company/actions_card_company.class.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/societe/canvas/individual/actions_card_individual.class.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredStaticMethod'],
+ 'htdocs/societe/card.php' => ['DeprecatedModuleName', 'PhanParamTooMany', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/societe/checkvat/checkVatPopup.php' => ['PhanPossiblyUndeclaredGlobalVariable'],
+ 'htdocs/societe/class/api_contacts.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/class/api_thirdparties.class.php' => ['PhanPluginDuplicateExpressionAssignment', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchReturn', 'PhanTypeSuspiciousNonTraversableForeach', 'PhanUndeclaredProperty'],
+ 'htdocs/societe/class/companybankaccount.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty'],
+ 'htdocs/societe/class/companypaymentmode.class.php' => ['PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanTypeMismatchPropertyDefault'],
+ 'htdocs/societe/class/societe.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateConditionalUnnecessary', 'PhanPluginEmptyStatementIf', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeInvalidRightOperandOfAdd', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/societe/class/societeaccount.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchPropertyDefault'],
+ 'htdocs/societe/consumption.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanParamTooMany', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/societe/contact.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/index.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/messaging.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/notify/card.php' => ['PhanPluginSuspiciousParamOrder'],
+ 'htdocs/societe/paymentmodes.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunction', 'PhanPluginPrintfIncompatibleArgumentType', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/societe/price.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/societe/project.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/societecontact.php' => ['DeprecatedModuleName', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/tpl/linesalesrepresentative.tpl.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/societe/website.php' => ['PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/stripe/admin/stripe.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/stripe/ajax/ajax.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/stripe/charge.php' => ['PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/stripe/class/actions_stripe.class.php' => ['PhanPluginBothLiteralsBinaryOp', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/stripe/class/stripe.class.php' => ['PhanPluginConstantVariableNull', 'PhanPluginEmptyStatementIf', 'PhanPluginMixedKeyNoKey', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredClassCatch', 'PhanUndeclaredClassMethod'],
+ 'htdocs/stripe/lib/stripe.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/stripe/payout.php' => ['PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/stripe/transaction.php' => ['PhanTypeExpectedObjectPropAccess', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/supplier_proposal/card.php' => ['DeprecatedModuleName', 'PhanPluginBothLiteralsBinaryOp', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/supplier_proposal/class/api_supplier_proposals.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/supplier_proposal/class/supplier_proposal.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeInvalidRightOperandOfNumericOp', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
+ 'htdocs/supplier_proposal/document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/supplier_proposal/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/supplier_proposal/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/supplier_proposal/tpl/linkedobjectblock.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/support/inc.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanRedefineFunction', 'PhanTypeMismatchDimAssignment'],
+ 'htdocs/takepos/admin/orderprinters.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch'],
+ 'htdocs/takepos/admin/receipt.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/admin/setup.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/admin/terminal.php' => ['DeprecatedModuleName', 'PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/ajax/ajax.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/floors.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/freezone.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/genimg/index.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/index.php' => ['DeprecatedModuleName', 'PhanPluginSimplifyExpressionBool', 'PhanPluginUndeclaredVariableIsset', 'PhanTypeMismatchArgumentInternalReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/takepos/invoice.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignment', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/takepos/pay.php' => ['DeprecatedModuleName', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidPropertyName', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/receipt.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/takepos/split.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/theme/eldy/badges.inc.php' => ['PhanRedefineFunction', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/eldy/btn.inc.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/eldy/dropdown.inc.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/eldy/global.inc.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/eldy/main_menu_fa_icons.inc.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/eldy/progress.inc.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/eldy/style.css.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateExpressionAssignmentOperation', 'PhanRedefinedClassReference', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/md/badges.inc.php' => ['PhanRedefineFunction', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/md/btn.inc.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/md/dropdown.inc.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/md/progress.inc.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/theme/md/style.css.php' => ['PhanDeprecatedFunctionInternal', 'PhanRedefinedClassReference', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/ticket/agenda.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/ticket/card.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/ticket/class/actions_ticket.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/ticket/class/api_tickets.class.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
+ 'htdocs/ticket/class/cticketcategory.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/ticket/class/ticket.class.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanEmptyFQSENInClasslike', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectOrClassName', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/ticket/class/ticketstats.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownPropertyType'],
+ 'htdocs/ticket/contact.php' => ['PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/ticket/document.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/ticket/index.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/ticket/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanTypeComparisonFromArray', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/ticket/messaging.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/ticket/tpl/linkedobjectblock.tpl.php' => ['PhanPluginUnknownObjectMethodCall'],
+ 'htdocs/user/agenda_extsites.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/bank.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/user/card.php' => ['DeprecatedModuleName', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredVariableDim'],
+ 'htdocs/user/class/api_users.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault'],
+ 'htdocs/user/class/user.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredVariable', 'PhanRedefinedClassReference', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentInternalReal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/user/class/userbankaccount.class.php' => ['PhanUndeclaredProperty'],
+ 'htdocs/user/class/usergroup.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/user/clicktodial.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/document.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/group/card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/user/group/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/group/perms.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/hierarchy.php' => ['PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/info.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/ldap.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/list.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateIfStatements', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/user/note.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/notify/card.php' => ['PhanPluginSuspiciousParamOrder', 'PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/user/param_ihm.php' => ['DeprecatedModuleName', 'PhanDeprecatedFunctionInternal', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/passwordforgotten.php' => ['PhanPluginSimplifyExpressionBool'],
+ 'htdocs/user/perms.php' => ['PhanNonClassMethodCall', 'PhanPluginUnknownObjectMethodCall', 'PhanRedefinedClassReference', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/user/vcard.php' => ['PhanPluginSuspiciousParamPosition'],
+ 'htdocs/user/virtualcard.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/variants/ajax/get_attribute_values.php' => ['PhanTypeComparisonFromArray'],
+ 'htdocs/variants/card.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/variants/class/ProductAttribute.class.php' => ['PhanParamSignatureMismatch', 'PhanPluginUnknownArrayMethodParamType', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/variants/class/ProductAttributeValue.class.php' => ['PhanPluginUnknownPropertyType'],
+ 'htdocs/variants/class/ProductCombination.class.php' => ['PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownClosureParamType', 'PhanPluginUnknownClosureReturnType', 'PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchDimEmpty', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturn'],
+ 'htdocs/variants/combinations.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty'],
+ 'htdocs/variants/lib/variants.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/variants/list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/variants/tpl/productattributevalueline_create.tpl.php' => ['PhanUndeclaredThis'],
+ 'htdocs/variants/tpl/productattributevalueline_edit.tpl.php' => ['PhanUndeclaredGlobalVariable'],
+ 'htdocs/variants/tpl/productattributevalueline_view.tpl.php' => ['PhanPluginDuplicateExpressionAssignmentOperation', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredThis'],
+ 'htdocs/viewimage.php' => ['PhanPluginUnknownObjectMethodCall', 'PhanRedefineFunction', 'PhanTypeMismatchArgumentNullableInternal'],
+ 'htdocs/webhook/class/target.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchProperty', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/webhook/lib/webhook.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/webhook/lib/webhook_target.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/webhook/target_card.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/webhook/target_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod'],
+ 'htdocs/webservices/server_actioncomm.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeArraySuspicious', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_category.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownObjectMethodCall', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_contact.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeArraySuspicious', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty', 'PhanUndeclaredVariableDim'],
+ 'htdocs/webservices/server_invoice.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeArraySuspicious', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_order.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeExpectedObjectPropAccessButGotNull', 'PhanTypeMismatchDefault', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty', 'PhanUndeclaredVariable'],
+ 'htdocs/webservices/server_other.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchDimFetch', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_payment.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeArraySuspicious', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_productorservice.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeArraySuspicious', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_project.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_supplier_invoice.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchDefault', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_thirdparty.php' => ['PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeArraySuspicious', 'PhanUndeclaredProperty'],
+ 'htdocs/webservices/server_user.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayFunctionParamType', 'PhanPluginUnknownArrayFunctionReturnType', 'PhanUndeclaredProperty'],
+ 'htdocs/website/class/website.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginSimplifyExpressionBool', 'PhanPluginSuspiciousParamOrder', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayPropertyType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanPossiblyNullTypeMismatchProperty', 'PhanPossiblyUndeclaredVariable', 'PhanTypeExpectedObjectPropAccess', 'PhanTypeInvalidLeftOperandOfAdd', 'PhanTypeMagicVoidWithReturn', 'PhanTypeMismatchArgumentNullableInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchPropertyDefault', 'PhanTypeMismatchPropertyProbablyReal', 'PhanTypeMismatchReturnProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/website/class/websitepage.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownPropertyType', 'PhanTypeMismatchPropertyProbablyReal'],
+ 'htdocs/website/index.php' => ['DeprecatedModuleName', 'GetPostUnknownSanitizeType', 'PhanDeprecatedFunctionInternal', 'PhanPluginDuplicateConditionalUnnecessary', 'PhanPluginEmptyStatementIf', 'PhanPluginSuspiciousParamPosition', 'PhanPluginUnknownObjectMethodCall', 'PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeInvalidUnaryOperandIncOrDec', 'PhanTypeMismatchArgumentProbablyReal', 'PhanTypeMismatchProperty', 'PhanTypeSuspiciousStringExpression', 'PhanUndeclaredProperty'],
+ 'htdocs/website/lib/websiteaccount.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/website/samples/wrapper.php' => ['PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/website/websiteaccount_card.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable'],
+ 'htdocs/workstation/class/workstation.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType', 'PhanPluginUnknownObjectMethodCall', 'PhanPluginUnknownPropertyType', 'PhanTypeInvalidLeftOperandOfBitwiseOp', 'PhanTypeMismatchPropertyProbablyReal', 'PhanUndeclaredProperty'],
+ 'htdocs/workstation/class/workstationresource.class.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/workstation/class/workstationusergroup.class.php' => ['PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/workstation/lib/workstation.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'htdocs/workstation/lib/workstation_workstation.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/workstation/workstation_agenda.php' => ['PhanTypeMismatchArgumentInternal', 'PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/workstation/workstation_card.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredConstantOfClass', 'PhanUndeclaredProperty'],
+ 'htdocs/workstation/workstation_document.php' => ['PhanTypeMismatchArgumentProbablyReal'],
+ 'htdocs/workstation/workstation_list.php' => ['PhanDeprecatedFunctionInternal', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredGlobalVariable', 'PhanUndeclaredMethod'],
+ 'htdocs/zapier/admin/setup.php' => ['PhanEmptyForeach'],
+ 'htdocs/zapier/class/api_zapier.class.php' => ['PhanPluginUnknownArrayMethodParamType', 'PhanPluginUnknownArrayMethodReturnType'],
+ 'htdocs/zapier/class/hook.class.php' => ['PhanDeprecatedFunctionInternal', 'PhanPluginUnknownArrayMethodParamType', 'PhanUndeclaredProperty'],
+ 'htdocs/zapier/lib/zapier.lib.php' => ['PhanPluginUnknownArrayFunctionReturnType'],
+ 'internal' => ['PhanUndeclaredConstant'],
+ ],
+ // 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
+ // (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
+];
diff --git a/dev/tools/phan/baseline_extended.txt b/dev/tools/phan/baseline_extended.txt
new file mode 100644
index 0000000000000..e5296d4bffc7e
--- /dev/null
+++ b/dev/tools/phan/baseline_extended.txt
@@ -0,0 +1,23 @@
+ [
+ 'htdocs/accountancy/admin/productaccount.php' => ['PhanTypeMismatchArgumentNullableInternal'], // false positive
+ 'internal' => ['PhanUndeclaredConstant'],
+ ],
+ // 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
+ // (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
+];
diff --git a/dev/tools/phan/config.php b/dev/tools/phan/config.php
new file mode 100644
index 0000000000000..7d5e244a8cf98
--- /dev/null
+++ b/dev/tools/phan/config.php
@@ -0,0 +1,496 @@
+
+ * Copyright (C) 2024 Frédéric France
+ */
+define('DOL_PROJECT_ROOT', __DIR__.'/../../..');
+define('DOL_DOCUMENT_ROOT', DOL_PROJECT_ROOT.'/htdocs');
+define('PHAN_DIR', __DIR__);
+$sanitizeRegex
+ = '/^(array:)?(?:'.implode(
+ '|',
+ array(
+ // Documented:
+ 'none',
+ 'password',
+ 'array',
+ 'int',
+ 'intcomma',
+ 'alpha',
+ 'alphawithlgt',
+ 'alphanohtml',
+ 'MS',
+ 'aZ',
+ 'aZ09',
+ 'aZ09arobase',
+ 'aZ09comma',
+ 'email',
+ 'san_alpha',
+ 'restricthtml',
+ 'nohtml',
+ 'custom',
+ // Not documented:
+ 'restricthtmlallowclass',
+ 'restricthtmlallowunvalid',
+ 'restricthtmlnolink'
+ )
+ ).')*$/';
+
+/**
+ * Map deprecated module names to new module names
+ */
+$DEPRECATED_MODULE_MAPPING = array(
+ 'actioncomm' => 'agenda',
+ 'adherent' => 'member',
+ 'adherent_type' => 'member_type',
+ 'banque' => 'bank',
+ 'categorie' => 'category',
+ 'commande' => 'order',
+ 'contrat' => 'contract',
+ 'entrepot' => 'stock',
+ 'expedition' => 'shipping',
+ 'facture' => 'invoice',
+ 'ficheinter' => 'intervention',
+ 'product_fournisseur_price' => 'productsupplierprice',
+ 'product_price' => 'productprice',
+ 'projet' => 'project',
+ 'propale' => 'propal',
+ 'socpeople' => 'contact',
+);
+
+/**
+ * Map module names to the 'class' name (the class is: mod)
+ * Value is null when the module is not internal to the default
+ * Dolibarr setup.
+ */
+$VALID_MODULE_MAPPING = array(
+ 'accounting' => 'Accounting',
+ 'agenda' => 'Agenda',
+ 'ai' => 'Ai',
+ 'anothermodule' => null,
+ 'api' => 'Api',
+ 'asset' => 'Asset',
+ 'bank' => 'Banque',
+ 'barcode' => 'Barcode',
+ 'blockedlog' => 'BlockedLog',
+ 'bom' => 'Bom',
+ 'bookcal' => 'BookCal',
+ 'bookmark' => 'Bookmark',
+ 'cashdesk' => null, // TODO: fill in proper class
+ 'category' => 'Categorie',
+ 'clicktodial' => 'ClickToDial',
+ 'collab' => 'Collab',
+ 'comptabilite' => 'Comptabilite',
+ 'contact' => null, // TODO: fill in proper class
+ 'contract' => 'Contrat',
+ 'cron' => 'Cron',
+ 'datapolicy' => 'DataPolicy',
+ 'dav' => 'Dav',
+ 'debugbar' => 'DebugBar',
+ 'shipping' => 'Expedition',
+ 'deplacement' => 'Deplacement',
+ "documentgeneration" => 'DocumentGeneration',
+ 'don' => 'Don',
+ 'dynamicprices' => 'DynamicPrices',
+ 'ecm' => 'ECM',
+ 'ecotax' => null, // TODO: External module ?
+ 'emailcollector' => 'EmailCollector',
+ 'eventorganization' => 'EventOrganization',
+ 'expensereport' => 'ExpenseReport',
+ 'export' => 'Export',
+ 'externalrss' => 'ExternalRss',
+ 'externalsite' => 'ExternalSite',
+ 'fckeditor' => 'Fckeditor',
+ 'fournisseur' => 'Fournisseur',
+ 'ftp' => 'FTP',
+ 'geoipmaxmind' => 'GeoIPMaxmind',
+ 'google' => null, // External ?
+ 'gravatar' => 'Gravatar',
+ 'holiday' => 'Holiday',
+ 'hrm' => 'HRM',
+ 'import' => 'Import',
+ 'incoterm' => 'Incoterm',
+ 'intervention' => 'Ficheinter',
+ 'intracommreport' => 'Intracommreport',
+ 'invoice' => 'Facture',
+ 'knowledgemanagement' => 'KnowledgeManagement',
+ 'label' => 'Label',
+ 'ldap' => 'Ldap',
+ 'loan' => 'Loan',
+ 'mailing' => 'Mailing',
+ 'mailman' => null, // Same module as mailmanspip -> MailmanSpip ??
+ 'mailmanspip' => 'MailmanSpip',
+ 'margin' => 'Margin',
+ 'member' => 'Adherent',
+ 'memcached' => null, // TODO: External module?
+ 'modulebuilder' => 'ModuleBuilder',
+ 'mrp' => 'Mrp',
+ 'multicompany' => null, // Not provided by default, no module tests
+ 'multicurrency' => 'MultiCurrency',
+ 'mymodule' => null, // modMyModule - Name used in module builder (avoid false positives)
+ 'notification' => 'Notification',
+ 'numberwords' => null, // Not provided by default, no module tests
+ 'oauth' => 'Oauth',
+ 'openstreetmap' => null, // External module?
+ 'opensurvey' => 'OpenSurvey',
+ 'order' => 'Commande',
+ 'partnership' => 'Partnership',
+ 'paybox' => 'Paybox',
+ 'paymentbybanktransfer' => 'PaymentByBankTransfer',
+ 'paypal' => 'Paypal',
+ 'paypalplus' => null,
+ 'prelevement' => 'Prelevement',
+ 'printing' => 'Printing',
+ 'product' => 'Product',
+ 'productbatch' => 'ProductBatch',
+ 'productprice' => null,
+ 'productsupplierprice' => null,
+ 'project' => 'Projet',
+ 'propal' => 'Propale',
+ 'receiptprinter' => 'ReceiptPrinter',
+ 'reception' => 'Reception',
+ 'recruitment' => 'Recruitment',
+ 'resource' => 'Resource',
+ 'salaries' => 'Salaries',
+ 'service' => 'Service',
+ 'socialnetworks' => 'SocialNetworks',
+ 'societe' => 'Societe',
+ 'stock' => 'Stock',
+ 'stocktransfer' => 'StockTransfer',
+ 'stripe' => 'Stripe',
+ 'supplier_invoice' => null, // Special case, uses invoice
+ 'supplier_order' => null, // Special case, uses invoice
+ 'supplier_proposal' => 'SupplierProposal',
+ 'syslog' => 'Syslog',
+ 'takepos' => 'TakePos',
+ 'tax' => 'Tax',
+ 'theme_datacolor' => 'array{0:array{0:int,1:int,2:int},1:array{0:int,1:int,2:int},2:array{0:int,1:int,2:int},3:array{0:int,1:int,2:int}}',
+ 'ticket' => 'Ticket',
+ 'user' => 'User',
+ 'variants' => 'Variants',
+ 'webhook' => 'Webhook',
+ 'webportal' => 'WebPortal',
+ 'webservices' => 'WebServices',
+ 'webservicesclient' => 'WebServicesClient',
+ 'website' => 'Website',
+ 'workflow' => 'Workflow',
+ 'workstation' => 'Workstation',
+ 'zapier' => 'Zapier',
+);
+
+// From ExtraFields class
+$EXTRAFIELDS_TYPE2LABEL = array(
+ 'varchar' => 'String1Line',
+ 'text' => 'TextLongNLines',
+ 'html' => 'HtmlText',
+ 'int' => 'Int',
+ 'double' => 'Float',
+ 'date' => 'Date',
+ 'datetime' => 'DateAndTime',
+ //'datetimegmt'=>'DateAndTimeUTC',
+ 'boolean' => 'Boolean', // Remove as test
+ 'price' => 'ExtrafieldPrice',
+ 'pricecy' => 'ExtrafieldPriceWithCurrency',
+ 'phone' => 'ExtrafieldPhone',
+ 'mail' => 'ExtrafieldMail',
+ 'url' => 'ExtrafieldUrl',
+ 'ip' => 'ExtrafieldIP',
+ 'icon' => 'Icon',
+ 'password' => 'ExtrafieldPassword',
+ 'select' => 'ExtrafieldSelect',
+ 'sellist' => 'ExtrafieldSelectList',
+ 'radio' => 'ExtrafieldRadio',
+ 'checkbox' => 'ExtrafieldCheckBox',
+ 'chkbxlst' => 'ExtrafieldCheckBoxFromList',
+ 'link' => 'ExtrafieldLink',
+ 'separate' => 'ExtrafieldSeparator',
+ );
+
+
+$moduleNameRegex = '/^(?:'.implode('|', array_merge(array_keys($DEPRECATED_MODULE_MAPPING), array_keys($VALID_MODULE_MAPPING), array('\$modulename'))).')$/';
+$deprecatedModuleNameRegex = '/^(?!(?:'.implode('|', array_keys($DEPRECATED_MODULE_MAPPING)).')$).*/';
+
+$extraFieldTypeRegex = '/^(?:'.implode('|', array_keys($EXTRAFIELDS_TYPE2LABEL)).')$/';
+
+/**
+ * This configuration will be read and overlaid on top of the
+ * default configuration. Command line arguments will be applied
+ * after this file is read.
+ */
+return [
+ // 'processes' => 6,
+ 'backward_compatibility_checks' => false,
+ 'simplify_ast' => true,
+ 'analyzed_file_extensions' => ['php','inc'],
+ 'globals_type_map' => [
+ 'action' => 'string',
+ 'actioncode' => 'string',
+ 'badgeStatus0' => 'string',
+ 'badgeStatus1' => 'string',
+ 'badgeStatus11' => 'string',
+ 'badgeStatus3' => 'string',
+ 'badgeStatus4' => 'string',
+ 'badgeStatus6' => 'string',
+ 'badgeStatus8' => 'string',
+ 'badgeStatus9' => 'string',
+ 'classname' => 'string',
+ 'conf' => '\Conf',
+ 'conffile' => 'string',
+ 'conffiletoshow' => 'string',
+ 'conffiletoshowshort' => 'string',
+ 'dateSelector' => 'int<0,1>',
+ 'db' => '\DoliDB',
+ 'disableedit' => 'int<0,1>',
+ 'disablemove' => 'int<0,1>',
+ 'disableremove' => 'int<0,1>',
+ 'dolibarr_main_authentication' => 'string',
+ 'dolibarr_main_data_root' => 'string',
+ 'dolibarr_main_data_root' => 'string',
+ 'dolibarr_main_db_encrypted_pass' => 'string',
+ 'dolibarr_main_db_host' => 'string',
+ 'dolibarr_main_db_pass' => 'string',
+ 'dolibarr_main_demo' => 'string',
+ 'dolibarr_main_document_root' => 'string',
+ 'dolibarr_main_url_root' => 'string',
+ 'errormsg' => 'string',
+ 'extrafields' => '\ExtraFields',
+ 'filter' => 'string',
+ 'filtert' => 'int',
+ 'forceall' => 'int<0,1>',
+ 'form' => '\Form',
+ 'hookmanager' => '\HookManager',
+ 'inputalsopricewithtax' => 'int<0,1>',
+ 'langs' => '\Translate',
+ 'leftmenu' => 'string',
+ 'mainmenu' => 'string',
+ 'menumanager' => '\MenuManager',
+ 'mysoc' => '\Societe',
+ 'nblines' => '\int',
+ 'obj' => '\CommonObject', // Deprecated
+ 'object_rights' => 'int|stdClass',
+ 'objectoffield' => '\CommonObject',
+ 'senderissupplier' => 'int<0,2>',
+ 'user' => '\User',
+ 'website' => 'string', // See discussion https://github.com/Dolibarr/dolibarr/pull/28891#issuecomment-2002268334 // Disable because Phan infers Website type
+ 'websitepage' => '\WebSitePage',
+ 'websitepagefile' => 'string',
+ // 'object' => '\CommonObject', // Deprecated, not enabled because conflicts with $object assignments
+ ],
+
+ // Supported values: `'5.6'`, `'7.0'`, `'7.1'`, `'7.2'`, `'7.3'`, `'7.4'`, `null`.
+ // If this is set to `null`,
+ // then Phan assumes the PHP version which is closest to the minor version
+ // of the php executable used to execute Phan.
+ //"target_php_version" => null,
+ "target_php_version" => '8.2',
+ //"target_php_version" => '7.3',
+ //"target_php_version" => '5.6',
+
+ // A list of directories that should be parsed for class and
+ // method information. After excluding the directories
+ // defined in exclude_analysis_directory_list, the remaining
+ // files will be statically analyzed for errors.
+ //
+ // Thus, both first-party and third-party code being used by
+ // your application should be included in this list.
+ 'directory_list' => [
+ 'htdocs',
+ PHAN_DIR . '/stubs/',
+ ],
+
+ // A directory list that defines files that will be excluded
+ // from static analysis, but whose class and method
+ // information should be included.
+ //
+ // Generally, you'll want to include the directories for
+ // third-party code (such as "vendor/") in this list.
+ //
+ // n.b.: If you'd like to parse but not analyze 3rd
+ // party code, directories containing that code
+ // should be added to the `directory_list` as
+ // to `exclude_analysis_directory_list`.
+ "exclude_analysis_directory_list" => [
+ 'htdocs/includes/',
+ 'htdocs/install/doctemplates/websites/',
+ 'htdocs/core/class/lessc.class.php', // External library
+ PHAN_DIR . '/stubs/',
+ ],
+ //'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@',
+ 'exclude_file_regex' => '@^(' // @phpstan-ignore-line
+ .'dummy' // @phpstan-ignore-line
+ // mymodule seen in cti, but not in git.
+ .'|htdocs/core/mymodule/.*' // @phpstan-ignore-line
+ .'|htdocs/.*/canvas/.*/tpl/.*.tpl.php' // @phpstan-ignore-line
+ .'|htdocs/modulebuilder/template/.*' // @phpstan-ignore-line
+ // Included as stub (better analysis)
+ .'|htdocs/includes/nusoap/.*' // @phpstan-ignore-line
+ // Included as stub (old version + incompatible typing hints)
+ .'|htdocs/includes/restler/.*' // @phpstan-ignore-line
+ // Included as stub (did not seem properly analysed by phan without it)
+ .'|htdocs/includes/stripe/.*' // @phpstan-ignore-line
+ .'|htdocs/conf/conf.php' // @phpstan-ignore-line
+ // .'|htdocs/[^h].*/.*' // For testing @phpstan-ignore-line
+ .')@', // @phpstan-ignore-line
+
+ // A list of plugin files to execute.
+ // Plugins which are bundled with Phan can be added here by providing their name
+ // (e.g. 'AlwaysReturnPlugin')
+ //
+ // Documentation about available bundled plugins can be found
+ // at https://github.com/phan/phan/tree/master/.phan/plugins
+ //
+ // Alternately, you can pass in the full path to a PHP file
+ // with the plugin's implementation (e.g. 'vendor/phan/phan/.phan/plugins/AlwaysReturnPlugin.php')
+ 'ParamMatchRegexPlugin' => [
+ '/^GETPOST$/' => [1, $sanitizeRegex, 'GetPostUnknownSanitizeType'],
+ '/^isModEnabled$/' => [0, $moduleNameRegex, 'UnknownModuleName'],
+ // Note: trick to have different key for same regex:
+ '/^isModEnable[d]$/' => [0, $deprecatedModuleNameRegex, "DeprecatedModuleName"],
+ '/^sanitizeVal$/' => [1, $sanitizeRegex,"UnknownSanitizeType"],
+ '/^checkVal$/' => [1, $sanitizeRegex,"UnknownCheckValSanitizeType"],
+ '/^\\\\ExtraFields::addExtraField$/' => [2, $extraFieldTypeRegex,"UnknownExtrafieldTypeBack"],
+ '/^dol_now$/' => [0, '{^(?:auto|gmt|tz(?:server|ref|user(?:rel)?))$}',"InvalidDolNowArgument"],
+ '/^dol_mktime$/' => [6, '{^(?:|0|1|auto|gmt|tz(?:server|ref|user(?:rel)?|,[+a-zA-Z-/]+))$}',"InvalidDolMktimeArgument"], // '', 0, 1 match bool and int values
+ '/^dol_print_date$/' => [2, '{^(?:|0|1|auto|gmt|tz(?:server|user(?:rel)?))$}',"InvalidDolMktimeArgument"], // '', 0, 1 match bool and int values
+ '/^GETPOSTFLOAT$/' => [1, '{^(?:|M[UTS]|C[UT]|\d+)$}',"InvalidGetPostFloatRounding"],
+ '/^price2num$/' => [1, '{^(?:|M[UTS]|C[UT]|\d+)$}',"InvalidPrice2NumRounding"],
+ ],
+ 'plugins' => [
+ __DIR__.'/plugins/NoVarDumpPlugin.php',
+ __DIR__.'/plugins/ParamMatchRegexPlugin.php',
+ // checks if a function, closure or method unconditionally returns.
+ // can also be written as 'vendor/phan/phan/.phan/plugins/AlwaysReturnPlugin.php'
+ 'DeprecateAliasPlugin',
+ //'EmptyMethodAndFunctionPlugin',
+ // 'InvalidVariableIssetPlugin',
+ //'MoreSpecificElementTypePlugin',
+ 'NoAssertPlugin',
+ 'NotFullyQualifiedUsagePlugin',
+ //'PHPDocRedundantPlugin',
+ 'PHPUnitNotDeadCodePlugin',
+ //'PossiblyStaticMethodPlugin',
+ 'PreferNamespaceUsePlugin',
+ 'PrintfCheckerPlugin',
+ 'RedundantAssignmentPlugin',
+
+ 'ConstantVariablePlugin', // Warns about values that are actually constant
+ //'HasPHPDocPlugin', // Requires PHPDoc
+ // 'InlineHTMLPlugin', // html in PHP file, or at end of file
+ //'NonBoolBranchPlugin', // Requires test on bool, nont on ints
+ //'NonBoolInLogicalArithPlugin',
+ 'NumericalComparisonPlugin',
+ //'PHPDocToRealTypesPlugin',
+ 'PHPDocInWrongCommentPlugin', // Missing /** (/* was used)
+ //'ShortArrayPlugin', // Checks that [] is used
+ //'StrictLiteralComparisonPlugin',
+ 'UnknownClassElementAccessPlugin',
+ 'UnknownElementTypePlugin',
+ 'WhitespacePlugin',
+ //'RemoveDebugStatementPlugin', // Reports echo, print, ...
+ 'SimplifyExpressionPlugin',
+ //'StrictComparisonPlugin', // Expects ===
+ 'SuspiciousParamOrderPlugin',
+ 'UnsafeCodePlugin',
+ //'UnusedSuppressionPlugin',
+
+ 'AlwaysReturnPlugin',
+ //'DollarDollarPlugin',
+ 'DuplicateArrayKeyPlugin',
+ 'DuplicateExpressionPlugin',
+ 'PregRegexCheckerPlugin',
+ 'PrintfCheckerPlugin',
+ 'SleepCheckerPlugin',
+ // Checks for syntactically unreachable statements in
+ // the global scope or function bodies.
+ 'UnreachableCodePlugin',
+ 'UseReturnValuePlugin',
+ 'EmptyStatementListPlugin',
+ 'LoopVariableReusePlugin',
+ ],
+
+ // Add any issue types (such as 'PhanUndeclaredMethod')
+ // here to inhibit them from being reported
+ 'suppress_issue_types' => [
+ // Dolibarr uses a lot of internal deprecated stuff, not reporting
+ 'PhanDeprecatedProperty',
+
+ 'PhanCompatibleNegativeStringOffset', // return false positive
+ 'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is
+ 'PhanPluginUnknownArrayPropertyType', // this option costs more time to be supported than it solves time
+ 'PhanTypeArraySuspiciousNullable', // this option costs more time to be supported than it solves time
+ 'PhanTypeInvalidDimOffset', // this option costs more time to be supported than it solves time
+ 'PhanTypeObjectUnsetDeclaredProperty',
+ 'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is
+ 'PhanPluginUnknownArrayFunctionReturnType', // a lot of false positive, in most cases, we want to keep the code as it is
+
+ 'PhanPluginWhitespaceTab', // Dolibarr used tabs
+ 'PhanPluginCanUsePHP71Void', // Dolibarr is maintaining 7.0 compatibility
+ 'PhanPluginShortArray', // Dolibarr uses array()
+ 'PhanPluginShortArrayList', // Dolibarr uses array()
+ // Fixers From PHPDocToRealTypesPlugin:
+ 'PhanPluginCanUseParamType', // Fixer - Report/Add types in the function definition (function abc(string $var) (adds string)
+ 'PhanPluginCanUseReturnType', // Fixer - Report/Add return types in the function definition (function abc(string $var) (adds string)
+ 'PhanPluginCanUseNullableParamType', // Fixer - Report/Add nullable parameter types in the function definition
+ 'PhanPluginCanUseNullableReturnType', // Fixer - Report/Add nullable return types in the function definition
+
+ 'PhanPluginNonBoolBranch', // Not essential - 31240+ occurrences
+ 'PhanPluginNumericalComparison', // Not essential - 19870+ occurrences
+ 'PhanTypeMismatchArgument', // Not essential - 12300+ occurrences
+ 'PhanPluginNonBoolInLogicalArith', // Not essential - 11040+ occurrences
+ 'PhanPluginConstantVariableScalar', // Not essential - 5180+ occurrences
+ 'PhanPluginDuplicateAdjacentStatement',
+ 'PhanPluginDuplicateConditionalTernaryDuplication', // 2750+ occurrences
+ 'PhanPluginDuplicateConditionalNullCoalescing', // Not essential - 990+ occurrences
+ 'PhanPluginRedundantAssignmentInGlobalScope', // Not essential, a lot of false warning
+ 'PhanPluginRedundantAssignment', // Not essential, useless
+ 'PhanPluginDuplicateCatchStatementBody', // Requires PHP7.1 - 50+ occurrences
+
+ 'PhanPluginUnknownArrayMethodParamType', // Too many troubles to manage. Is enabled into config_extended only.
+ 'PhanPluginUnknownArrayMethodReturnType', // Too many troubles to manage. Is enabled into config_extended only.
+ 'PhanUndeclaredGlobalVariable', // Too many false positives on .tpl.php files. Is enabled into config_extended only.
+ 'PhanPluginUnknownObjectMethodCall', // False positive for some class. Is enabled into config_extended only.
+ ],
+ // You can put relative paths to internal stubs in this config option.
+ // Phan will continue using its detailed type annotations,
+ // but load the constants, classes, functions, and classes (and their Reflection types)
+ // from these stub files (doubling as valid php files).
+ // Use a different extension from php (and preferably a separate folder)
+ // to avoid accidentally parsing these as PHP (includes projects depending on this).
+ // The 'mkstubs' script can be used to generate your own stubs (compatible with php 7.0+ right now)
+ // Note: The array key must be the same as the extension name reported by `php -m`,
+ // so that phan can skip loading the stubs if the extension is actually available.
+ 'autoload_internal_extension_signatures' => [
+ // Stubs may be available at https://github.com/JetBrains/phpstorm-stubs/tree/master
+
+ // Xdebug stubs are bundled with Phan 0.10.1+/0.8.9+ for usage,
+ // because Phan disables xdebug by default.
+ //'xdebug' => 'vendor/phan/phan/.phan/internal_stubs/xdebug.phan_php',
+ //'memcached' => PHAN_DIR . '/your_internal_stubs_folder_name/memcached.phan_php',
+ //'PDO' => PHAN_DIR . '/stubs/PDO.phan_php',
+ 'brotli' => PHAN_DIR . '/stubs/brotli.phan_php',
+ 'curl' => PHAN_DIR . '/stubs/curl.phan_php',
+ 'calendar' => PHAN_DIR . '/stubs/calendar.phan_php',
+ 'fileinfo' => PHAN_DIR . '/stubs/fileinfo.phan_php',
+ 'ftp' => PHAN_DIR . '/stubs/ftp.phan_php',
+ 'gd' => PHAN_DIR . '/stubs/gd.phan_php',
+ 'geoip' => PHAN_DIR . '/stubs/geoip.phan_php',
+ 'imagick' => PHAN_DIR . '/stubs/imagick.phan_php',
+ 'imap' => PHAN_DIR . '/stubs/imap.phan_php',
+ 'intl' => PHAN_DIR . '/stubs/intl.phan_php',
+ 'ldap' => PHAN_DIR . '/stubs/ldap.phan_php',
+ 'mcrypt' => PHAN_DIR . '/stubs/mcrypt.phan_php',
+ 'memcache' => PHAN_DIR . '/stubs/memcache.phan_php',
+ 'memcached' => PHAN_DIR . '/stubs/memcached.phan_php',
+ 'mysqli' => PHAN_DIR . '/stubs/mysqli.phan_php',
+ 'pdo_cubrid' => PHAN_DIR . '/stubs/pdo_cubrid.phan_php',
+ 'pdo_mysql' => PHAN_DIR . '/stubs/pdo_mysql.phan_php',
+ 'pdo_pgsql' => PHAN_DIR . '/stubs/pdo_pgsql.phan_php',
+ 'pdo_sqlite' => PHAN_DIR . '/stubs/pdo_sqlite.phan_php',
+ 'pgsql' => PHAN_DIR . '/stubs/pgsql.phan_php',
+ 'session' => PHAN_DIR . '/stubs/session.phan_php',
+ 'simplexml' => PHAN_DIR . '/stubs/SimpleXML.phan_php',
+ 'soap' => PHAN_DIR . '/stubs/soap.phan_php',
+ 'sockets' => PHAN_DIR . '/stubs/sockets.phan_php',
+ 'tidy' => PHAN_DIR . '/stubs/tidy.phan_php',
+ 'zip' => PHAN_DIR . '/stubs/zip.phan_php',
+ ],
+];
diff --git a/dev/tools/phan/config_extended.php b/dev/tools/phan/config_extended.php
new file mode 100644
index 0000000000000..94346c93296f5
--- /dev/null
+++ b/dev/tools/phan/config_extended.php
@@ -0,0 +1,102 @@
+
+ * Copyright (C) 2024 Frédéric France
+ */
+
+// Load default configuration (with many exclusions)
+//
+$config = include __DIR__.DIRECTORY_SEPARATOR."config.php";
+
+$config['plugins'] = [
+ __DIR__.'/plugins/NoVarDumpPlugin.php',
+ __DIR__.'/plugins/ParamMatchRegexPlugin.php',
+ 'DeprecateAliasPlugin',
+ //'EmptyMethodAndFunctionPlugin',
+ 'InvalidVariableIssetPlugin',
+ //'MoreSpecificElementTypePlugin',
+ 'NoAssertPlugin',
+ 'NotFullyQualifiedUsagePlugin',
+ 'PHPDocRedundantPlugin',
+ 'PHPUnitNotDeadCodePlugin',
+ //'PossiblyStaticMethodPlugin',
+ 'PreferNamespaceUsePlugin',
+ 'PrintfCheckerPlugin',
+ 'RedundantAssignmentPlugin',
+
+ 'ConstantVariablePlugin', // Warns about values that are actually constant
+ //'HasPHPDocPlugin', // Requires PHPDoc
+ // 'InlineHTMLPlugin', // html in PHP file, or at end of file
+ 'NonBoolBranchPlugin', // Requires test on bool, nont on ints
+ 'NonBoolInLogicalArithPlugin',
+ 'NumericalComparisonPlugin',
+ // 'PHPDocToRealTypesPlugin', // Report/Add types to function definitions
+ 'PHPDocInWrongCommentPlugin', // Missing /** (/* was used)
+ //'ShortArrayPlugin', // Checks that [] is used
+ //'StrictLiteralComparisonPlugin',
+ 'UnknownClassElementAccessPlugin',
+ 'UnknownElementTypePlugin',
+ 'WhitespacePlugin',
+ //'RemoveDebugStatementPlugin', // Reports echo, print, ...
+ 'SimplifyExpressionPlugin',
+ //'StrictComparisonPlugin', // Expects ===
+ 'SuspiciousParamOrderPlugin',
+ 'UnsafeCodePlugin',
+ //'UnusedSuppressionPlugin',
+
+ 'AlwaysReturnPlugin',
+ //'DollarDollarPlugin',
+ 'DuplicateArrayKeyPlugin',
+ 'DuplicateExpressionPlugin',
+ 'PregRegexCheckerPlugin',
+ 'PrintfCheckerPlugin',
+ 'SleepCheckerPlugin',
+ // Checks for syntactically unreachable statements in
+ // the global scope or function bodies.
+ 'UnreachableCodePlugin',
+ 'UseReturnValuePlugin',
+ 'EmptyStatementListPlugin',
+ 'LoopVariableReusePlugin',
+ ];
+
+// Add any issue types (such as 'PhanUndeclaredMethod')
+// here to inhibit them from being reported
+$config['suppress_issue_types'] = [
+ // Dolibarr uses a lot of internal deprecated stuff, not reporting
+ 'PhanDeprecatedProperty',
+
+ 'PhanCompatibleNegativeStringOffset', // return false positive
+ 'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is
+ 'PhanPluginUnknownArrayPropertyType', // this option costs more time to be supported than it solves time
+ 'PhanTypeArraySuspiciousNullable', // this option costs more time to be supported than it solves time
+ 'PhanTypeInvalidDimOffset', // this option costs more time to be supported than it solves time
+ 'PhanTypeObjectUnsetDeclaredProperty',
+ 'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is
+ 'PhanPluginUnknownArrayFunctionReturnType', // a lot of false positive, in most cases, we want to keep the code as it is
+
+ 'PhanPluginWhitespaceTab', // Dolibarr used tabs
+ 'PhanPluginCanUsePHP71Void', // Dolibarr is maintaining 7.0 compatibility
+ 'PhanPluginShortArray', // Dolibarr uses array()
+ 'PhanPluginShortArrayList', // Dolibarr uses array()
+ // Fixers From PHPDocToRealTypesPlugin:
+ 'PhanPluginCanUseParamType', // Fixer - Report/Add types in the function definition (function abc(string $var) (adds string)
+ 'PhanPluginCanUseReturnType', // Fixer - Report/Add return types in the function definition (function abc(string $var) (adds string)
+ 'PhanPluginCanUseNullableParamType', // Fixer - Report/Add nullable parameter types in the function definition
+ 'PhanPluginCanUseNullableReturnType', // Fixer - Report/Add nullable return types in the function definition
+
+ 'PhanPluginNonBoolBranch', // Not essential - 31240+ occurrences
+ 'PhanPluginNumericalComparison', // Not essential - 19870+ occurrences
+ 'PhanTypeMismatchArgument', // Not essential - 12300+ occurrences
+ 'PhanPluginNonBoolInLogicalArith', // Not essential - 11040+ occurrences
+ 'PhanPluginConstantVariableScalar', // Not essential - 5180+ occurrences
+ 'PhanPluginDuplicateAdjacentStatement',
+ 'PhanPluginDuplicateConditionalTernaryDuplication', // 2750+ occurrences
+ 'PhanPluginDuplicateConditionalNullCoalescing', // Not essential - 990+ occurrences
+ 'PhanPluginRedundantAssignmentInGlobalScope', // Not essential, a lot of false warning
+ 'PhanPluginRedundantAssignment', // Not essential, useless
+ 'PhanPluginDuplicateCatchStatementBody', // Requires PHP7.1 - 50+ occurrences
+
+ 'PhanPluginUnknownArrayMethodParamType', // this option costs more time to be supported than it solves time
+ 'PhanPluginUnknownArrayMethodReturnType', // this option costs more time to be supported than it solves time
+];
+
+return $config;
diff --git a/dev/tools/phan/config_fixer.php b/dev/tools/phan/config_fixer.php
new file mode 100644
index 0000000000000..79a3d589d38e4
--- /dev/null
+++ b/dev/tools/phan/config_fixer.php
@@ -0,0 +1,40 @@
+
+ * Copyright (C) 2024 Frédéric France
+ */
+
+
+// Load default configuration (with many exclusions)
+//
+$config = include __DIR__.DIRECTORY_SEPARATOR."config.php";
+
+
+//require_once __DIR__.'/plugins/DeprecatedModuleNameFixer.php';
+//require_once __DIR__.'/plugins/PriceFormFixer.php';
+//require_once __DIR__.'/plugins/UrlEncodeStringifyFixer.php';
+require_once __DIR__.'/plugins/SelectDateFixer.php';
+
+//$deprecatedModuleNameRegex = '/^(?!(?:'.implode('|', array_keys($DEPRECATED_MODULE_MAPPING)).')$).*/';
+
+require_once __DIR__.'/plugins/DeprecatedModuleNameFixer.php';
+
+$config['exclude_file_regex'] = '@^(' // @phpstan-ignore-line
+ .'dummy' // @phpstan-ignore-line
+ .'|htdocs/.*/canvas/.*/tpl/.*.tpl.php' // @phpstan-ignore-line
+ .'|htdocs/modulebuilder/template/.*' // @phpstan-ignore-line
+ // Included as stub (old version + incompatible typing hints)
+ .'|htdocs/includes/restler/.*' // @phpstan-ignore-line
+ // Included as stub (did not seem properly analysed by phan without it)
+ .'|htdocs/includes/stripe/.*' // @phpstan-ignore-line
+ .'|htdocs/conf/conf.php' // @phpstan-ignore-line
+ //.'|htdocs/[^c][^o][^r][^e][^/].*' // For testing @phpstan-ignore-line
+ //.'|htdocs/[^h].*' // For testing on restricted set @phpstan-ignore-line
+ .')@'; // @phpstan-ignore-line
+
+// $config['plugins'][] = __DIR__.'/plugins/ParamMatchRegexPlugin.php';
+$config['plugins'][] = 'DeprecateAliasPlugin';
+$config['plugins'][] = 'DeprecateAliasPlugin';
+// $config['plugins'][] = __DIR__.'/plugins/GetPostFixerPlugin.php';
+// $config['plugins'][] = 'PHPDocToRealTypesPlugin';
+
+return $config;
diff --git a/dev/tools/phan/plugins/DeprecatedModuleNameFixer.php b/dev/tools/phan/plugins/DeprecatedModuleNameFixer.php
new file mode 100644
index 0000000000000..cf8a9bc7c623e
--- /dev/null
+++ b/dev/tools/phan/plugins/DeprecatedModuleNameFixer.php
@@ -0,0 +1,124 @@
+
+ */
+
+declare(strict_types=1);
+
+use Microsoft\PhpParser\Node\Expression\CallExpression;
+use Microsoft\PhpParser\Node\QualifiedName;
+use Phan\AST\TolerantASTConverter\NodeUtils;
+use Phan\CodeBase;
+use Phan\IssueInstance;
+use Phan\Library\FileCacheEntry;
+use Phan\Plugin\Internal\IssueFixingPlugin\FileEdit;
+use Phan\Plugin\Internal\IssueFixingPlugin\FileEditSet;
+use Phan\Plugin\Internal\IssueFixingPlugin\IssueFixer;
+use Microsoft\PhpParser\Node\Expression\ArgumentExpression;
+use Microsoft\PhpParser\Node\DelimitedList\ArgumentExpressionList;
+use Microsoft\PhpParser\Node\StringLiteral;
+
+/**
+ * This is a prototype, there are various features it does not implement.
+ */
+
+call_user_func(static function (): void {
+ /**
+ * @param $code_base @unused-param
+ * @return ?FileEditSet a representation of the edit to make to replace a call to a function alias with a call to the original function
+ */
+ $fix = static function (CodeBase $code_base, FileCacheEntry $contents, IssueInstance $instance): ?FileEditSet {
+ $DEPRECATED_MODULE_MAPPING = array(
+ 'actioncomm' => 'agenda',
+ 'adherent' => 'member',
+ 'adherent_type' => 'member_type',
+ 'banque' => 'bank',
+ 'categorie' => 'category',
+ 'commande' => 'order',
+ 'contrat' => 'contract',
+ 'entrepot' => 'stock',
+ 'expedition' => 'shipping',
+ 'facture' => 'invoice',
+ 'ficheinter' => 'intervention',
+ 'product_fournisseur_price' => 'productsupplierprice',
+ 'product_price' => 'productprice',
+ 'projet' => 'project',
+ 'propale' => 'propal',
+ 'socpeople' => 'contact',
+ );
+
+ $line = $instance->getLine();
+ $expected_name = 'isModEnabled';
+ $edits = [];
+ foreach ($contents->getNodesAtLine($line) as $node) {
+ if (!$node instanceof ArgumentExpressionList) {
+ continue;
+ }
+ $arguments = $node->children;
+ if (count($arguments) != 1) {
+ print "Arg Count is ".count($arguments)." - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ $is_actual_call = $node->parent instanceof CallExpression;
+ if (!$is_actual_call) {
+ print "Not actual call - Skip $instance".PHP_EOL;
+ continue;
+ }
+ $callable = $node->parent;
+
+ $callableExpression = $callable->callableExpression;
+
+ if ($callableExpression instanceof Microsoft\PhpParser\Node\QualifiedName) {
+ $actual_name = $callableExpression->getResolvedName();
+ } else {
+ print "Callable expression is ".get_class($callableExpression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ if ((string) $actual_name !== (string) $expected_name) {
+ print "Name unexpected '$actual_name'!='$expected_name' - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ foreach ($arguments as $i => $argument) {
+ print "Type$i: ".get_class($argument).PHP_EOL;
+ }
+
+ $arg1 = $arguments[0];
+
+ if ($arg1 instanceof ArgumentExpression && $arg1->expression instanceof StringLiteral) {
+ // Get the string value of the StringLiteral
+ $stringValue = $arg1->expression->getStringContentsText();
+ } else {
+ print "Expression is not string ".get_class($arg1)."/".get_class($arg1->expression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+ print "Fixture elem on $line - $actual_name('$stringValue') - $instance".PHP_EOL;
+
+ // Check that module is deprecated
+ if (isset($DEPRECATED_MODULE_MAPPING[$stringValue])) {
+ $replacement = $DEPRECATED_MODULE_MAPPING[$stringValue];
+ } else {
+ print "Module is not deprecated in $expected_name - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ // Get the first argument (delimiter)
+ $moduleargument = $arguments[0];
+
+ $arg_start_pos = $moduleargument->getStartPosition() + 1;
+ $arg_end_pos = $moduleargument->getEndPosition() - 1;
+
+ // Remove deprecated module name
+ $edits[] = new FileEdit($arg_start_pos, $arg_end_pos, $replacement);
+ }
+ if ($edits) {
+ return new FileEditSet($edits);
+ }
+ return null;
+ };
+ IssueFixer::registerFixerClosure(
+ 'DeprecatedModuleName',
+ $fix
+ );
+});
diff --git a/dev/tools/phan/plugins/NoVarDumpPlugin.php b/dev/tools/phan/plugins/NoVarDumpPlugin.php
new file mode 100644
index 0000000000000..b2b093922f7c4
--- /dev/null
+++ b/dev/tools/phan/plugins/NoVarDumpPlugin.php
@@ -0,0 +1,81 @@
+
+ */
+
+declare(strict_types=1);
+
+use ast\Node;
+use Phan\PluginV3;
+use Phan\PluginV3\PluginAwarePostAnalysisVisitor;
+use Phan\PluginV3\PostAnalyzeNodeCapability;
+
+/**
+ * NoVarDumpPlugin hooks into one event:
+ *
+ * - getPostAnalyzeNodeVisitorClassName
+ * This method returns a visitor that is called on every AST node from every
+ * file being analyzed
+ *
+ * A plugin file must
+ *
+ * - Contain a class that inherits from \Phan\PluginV3
+ *
+ * - End by returning an instance of that class.
+ *
+ * It is assumed without being checked that plugins aren't
+ * mangling state within the passed code base or context.
+ *
+ * Note: When adding new plugins,
+ * add them to the corresponding section of README.md
+ */
+class NoVarDumpPlugin extends PluginV3 implements PostAnalyzeNodeCapability
+{
+ /**
+ * @return string - name of PluginAwarePostAnalysisVisitor subclass
+ */
+ public static function getPostAnalyzeNodeVisitorClassName(): string
+ {
+ return NoVarDumpVisitor::class;
+ }
+}
+
+/**
+ * When __invoke on this class is called with a node, a method
+ * will be dispatched based on the `kind` of the given node.
+ *
+ * Visitors such as this are useful for defining lots of different
+ * checks on a node based on its kind.
+ */
+class NoVarDumpVisitor extends PluginAwarePostAnalysisVisitor
+{
+ // A plugin's visitors should not override visit() unless they need to.
+
+ /**
+ * @param Node $node A node to analyze
+ *
+ * @return void
+ *
+ * @override
+ */
+ public function visitCall(Node $node): void
+ {
+ $name = $node->children['expr']->children['name'] ?? null;
+ if (!is_string($name)) {
+ return;
+ }
+ if (strcasecmp($name, 'var_dump') !== 0) {
+ return;
+ }
+ $this->emitPluginIssue(
+ $this->code_base,
+ $this->context,
+ 'NoVarDumpPlugin',
+ 'var_dump() should be commented in submitted code',
+ []
+ );
+ }
+}
+
+// Every plugin needs to return an instance of itself at the
+// end of the file in which it's defined.
+return new NoVarDumpPlugin();
diff --git a/dev/tools/phan/plugins/ParamMatchRegexPlugin.php b/dev/tools/phan/plugins/ParamMatchRegexPlugin.php
new file mode 100644
index 0000000000000..674631aa45980
--- /dev/null
+++ b/dev/tools/phan/plugins/ParamMatchRegexPlugin.php
@@ -0,0 +1,248 @@
+
+ *
+ * Phan Plugin to validate that arguments match a regex
+ *
+ *
+ * "ParamMatchRegexPlugin" => [
+ * "/^test1$/" => [ 0, "/^OK$/"], // Argument 0 must be 'OK'
+ * "/^test2$/" => [ 1, "/^NOK$/", "Test2Arg1NokError"], // Argument 1 must be 'NOK', error code
+ * "/^\\MyTest::mymethod$/" => [ 0, "/^NOK$/"], // Argument 0 must be 'NOK'
+ * ],
+ * 'plugins' => [
+ * ".phan/plugins/ParamMatchRegexPlugin.php",
+ * // [...]
+ * ],
+ */
+declare(strict_types=1);
+
+
+use ast\Node;
+use Phan\Config;
+use Phan\AST\UnionTypeVisitor;
+//use Phan\Language\Element\FunctionInterface;
+use Phan\Language\UnionType;
+use Phan\Language\Type;
+use Phan\PluginV3;
+use Phan\PluginV3\PluginAwarePostAnalysisVisitor;
+use Phan\PluginV3\PostAnalyzeNodeCapability;
+use Phan\Exception\NodeException;
+use Phan\Language\FQSEN\FullyQualifiedClassName;
+use Phan\Exception\FQSENException;
+
+/**
+ * ParamMatchPlugin hooks into one event:
+ *
+ * - getPostAnalyzeNodeVisitorClassName
+ * This method returns a visitor that is called on every AST node from every
+ * file being analyzed
+ *
+ * A plugin file must
+ *
+ * - Contain a class that inherits from \Phan\PluginV3
+ *
+ * - End by returning an instance of that class.
+ *
+ * It is assumed without being checked that plugins aren't
+ * mangling state within the passed code base or context.
+ *
+ * Note: When adding new plugins,
+ * add them to the corresponding section of README.md
+ */
+class ParamMatchPlugin extends PluginV3 implements PostAnalyzeNodeCapability
+{
+ /**
+ * @return string - name of PluginAwarePostAnalysisVisitor subclass
+ */
+ public static function getPostAnalyzeNodeVisitorClassName(): string
+ {
+ return ParamMatchVisitor::class;
+ }
+}
+
+/**
+ * When __invoke on this class is called with a node, a method
+ * will be dispatched based on the `kind` of the given node.
+ *
+ * Visitors such as this are useful for defining lots of different
+ * checks on a node based on its kind.
+ */
+class ParamMatchVisitor extends PluginAwarePostAnalysisVisitor
+{
+ // A plugin's visitors should not override visit() unless they need to.
+
+ /**
+ * @override
+ * @param Node $node Node to analyze
+ *
+ * @return void
+ */
+ public function visitMethodCall(Node $node): void
+ {
+ $method_name = $node->children['method'] ?? null;
+ if (!\is_string($method_name)) {
+ return; // Not handled, TODO: handle variable(?) methods
+ // throw new NodeException($node);
+ }
+ try {
+ // Fetch the list of valid classes, and warn about any undefined classes.
+ $union_type = UnionTypeVisitor::unionTypeFromNode($this->code_base, $this->context, $node->children['expr']);
+ } catch (Exception $_) {
+ // Phan should already throw for this
+ return;
+ }
+
+ $class_list = [];
+ foreach ($union_type->getTypeSet() as $type) {
+ $class_fqsen = "NoFSQENType";
+ if ($type instanceof Type) {
+ try {
+ $class_fqsen = (string) FullyQualifiedClassName::fromFullyQualifiedString($type->getName());
+ } catch (FQSENException $_) {
+ // var_dump([$_, $node]);
+ continue;
+ }
+ } else {
+ // var_dump( $type) ;
+ continue;
+ }
+ $class_name = (string) $class_fqsen;
+ $class_list[] = $class_name;
+ }
+
+ /* May need to check list of classes
+ */
+
+ /*
+ if (!$class->hasMethodWithName($this->code_base, $method_name, true)) {
+ throw new NodeException($expr, 'does not have method');
+ }
+ $class_name = $class->getName();
+ */
+ foreach ($class_list as $class_name) {
+ $this->checkRule($node, "$class_name::$method_name");
+ }
+ }
+
+ /**
+ * @override
+ * @param Node $node Node to analyze
+ *
+ * @return void
+ */
+ public function visitStaticCall(Node $node): void
+ {
+ $class_name = $node->children['class']->children['name'] ?? null;
+ if (!\is_string($class_name)) {
+ throw new NodeException($expr, 'does not have class');
+ }
+ try {
+ $class_name = (string) FullyQualifiedClassName::fromFullyQualifiedString($class_name);
+ } catch (FQSENException $_) {
+ }
+ $method_name = $node->children['method'] ?? null;
+
+ if (!\is_string($method_name)) {
+ return;
+ }
+ $this->checkRule($node, "$class_name::$method_name");
+ }
+ /**
+ * @override
+ *
+ * @param Node $node A node to analyze
+ *
+ * @return void
+ */
+ public function visitCall(Node $node): void
+ {
+ $name = $node->children['expr']->children['name'] ?? null;
+ if (!\is_string($name)) {
+ return;
+ }
+
+
+ $this->checkRule($node, $name);
+ }
+
+ /**
+ *
+ * @param Node $node A node to analyze
+ * @param string $name function name or fqsn of class::
+ *
+ * @return void
+ */
+ public function checkRule(Node $node, string $name)
+ {
+ $rules = Config::getValue('ParamMatchRegexPlugin');
+ foreach ($rules as $regex => $rule) {
+ if (preg_match($regex, $name)) {
+ $this->checkParam($node, $rule[0], $rule[1], $name, $rule[2] ?? null);
+ }
+ }
+ }
+
+ /**
+ * Check that argument matches regex at node
+ *
+ * @param Node $node Visited node for which to verify arguments match regex
+ * @param int $argPosition Position of argument to check
+ * @param string $argRegex Regex to validate against argument
+ * @param string $functionName Function name for report
+ * @param string $messageCode Message code to provide in message
+ *
+ * @return void
+ */
+ public function checkParam(Node $node, int $argPosition, string $argRegex, $functionName, $messageCode = null): void
+ {
+ $args = $node->children['args']->children;
+
+ if (!array_key_exists($argPosition, $args)) {
+ /*
+ $this->emitPluginIssue(
+ $this->code_base,
+ $this->context,
+ 'ParamMatchMissingArgument',
+ "Argument at %s for %s is missing",
+ [$argPosition, $function_name]
+ );
+ */
+ return;
+ }
+ $expr = $args[$argPosition];
+ try {
+ $expr_type = UnionTypeVisitor::unionTypeFromNode($this->code_base, $this->context, $expr, false);
+ } catch (Exception $_) {
+ return;
+ }
+
+ $expr_value = $expr_type->getRealUnionType()->asValueOrNullOrSelf();
+ if (!is_object($expr_value)) {
+ $list = [(string) $expr_value];
+ } elseif ($expr_value instanceof UnionType) {
+ $list = $expr_value->asScalarValues();
+ } else {
+ // Note: maybe more types could be supported
+ return;
+ }
+
+ foreach ($list as $argValue) {
+ if (!\preg_match($argRegex, (string) $argValue)) {
+ // Emit an issue if the argument does not match the expected regex pattern
+ // var_dump([$node,$expr_value,$expr_type->getRealUnionType()]); // Information about node
+ $this->emitPluginIssue(
+ $this->code_base,
+ $this->context,
+ $messageCode ?? 'ParamMatchRegexError',
+ "Argument {INDEX} function {FUNCTION} can't have the value {STRING_LITERAL} that does not match the expected pattern '{STRING_LITERAL}'",
+ [$argPosition, $functionName, json_encode($argValue), $argRegex]
+ );
+ }
+ }
+ }
+}
+
+// Every plugin needs to return an instance of itself at the
+// end of the file in which it's defined.
+return new ParamMatchPlugin();
diff --git a/dev/tools/phan/plugins/PriceFormFixer.php b/dev/tools/phan/plugins/PriceFormFixer.php
new file mode 100644
index 0000000000000..1d384d2243bf7
--- /dev/null
+++ b/dev/tools/phan/plugins/PriceFormFixer.php
@@ -0,0 +1,138 @@
+
+ *
+ * For 'price()', replace $form parameter that is '' with 0.
+ */
+
+declare(strict_types=1);
+
+use ast\flags;
+use Microsoft\PhpParser\Node\Expression\CallExpression;
+use Microsoft\PhpParser\Node\QualifiedName;
+use Phan\AST\TolerantASTConverter\NodeUtils;
+use Phan\CodeBase;
+use Phan\IssueInstance;
+use Phan\Library\FileCacheEntry;
+use Phan\Plugin\Internal\IssueFixingPlugin\FileEdit;
+use Phan\Plugin\Internal\IssueFixingPlugin\FileEditSet;
+use Phan\Plugin\Internal\IssueFixingPlugin\IssueFixer;
+use Microsoft\PhpParser\Node\Expression\ArgumentExpression;
+use Microsoft\PhpParser\Node\DelimitedList\ArgumentExpressionList;
+use Microsoft\PhpParser\Node\StringLiteral;
+use Microsoft\PhpParser\Node\ReservedWord;
+use Microsoft\PhpParser\Token;
+
+/**
+ * This is a prototype, there are various features it does not implement.
+ */
+
+call_user_func(static function (): void {
+ /**
+ * @param $code_base @unused-param
+ * @return ?FileEditSet a representation of the edit to make to replace a call to a function alias with a call to the original function
+ */
+ $fix = static function (CodeBase $code_base, FileCacheEntry $contents, IssueInstance $instance): ?FileEditSet {
+ $line = $instance->getLine();
+ // print flags\TYPE_NULL;
+ $expected_name = 'price';
+ $edits = [];
+ foreach ($contents->getNodesAtLine($line) as $node) {
+ if (!$node instanceof ArgumentExpressionList) {
+ continue;
+ }
+ $arguments = $node->children;
+ if (count($arguments) < 2) {
+ // print "Arg Count is ".count($arguments)." - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ $is_actual_call = $node->parent instanceof CallExpression;
+ if (!$is_actual_call) {
+ print "Not actual call - Skip $instance".PHP_EOL;
+ continue;
+ }
+ print "Actual call - $instance".PHP_EOL;
+ $callable = $node->parent;
+
+ $callableExpression = $callable->callableExpression;
+
+ if ($callableExpression instanceof Microsoft\PhpParser\Node\QualifiedName) {
+ $actual_name = $callableExpression->getResolvedName();
+ } else {
+ print "Callable expression is ".get_class($callableExpression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ if ((string) $actual_name !== (string) $expected_name) {
+ print "Name unexpected '$actual_name'!='$expected_name' - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ foreach ($arguments as $i => $argument) {
+ if ($argument instanceof ArgumentExpression) {
+ print "Type$i: ".get_class($argument->expression).PHP_EOL;
+ }
+ }
+
+ $stringValue = null;
+ foreach ([1] as $argIdx) {
+ $arg = $arguments[$argIdx * 2]; // Pair number to skip "TOKEN" (,)
+
+ if (
+ $arg instanceof ArgumentExpression
+ && $arg->expression instanceof StringLiteral
+ ) {
+ // Get the string value of the StringLiteral
+ $stringValue = $arg->expression->getStringContentsText();
+ print "String is '$stringValue'".PHP_EOL;
+ } elseif ($arg instanceof ArgumentExpression && $arg->expression instanceof ReservedWord) {
+ $child = $arg->expression->children;
+ if (!$child instanceof Token) {
+ continue;
+ }
+ $token_str = (new NodeUtils($contents->getContents()))->tokenToString($child);
+ print "$token_str KIND:".($child->kind ?? 'no kind')." ".get_class($child).PHP_EOL;
+
+ if ($token_str !== 'null') {
+ continue;
+ }
+
+ $stringValue = ''; // Fake empty
+ } else {
+ print "Expression is not string or null ".get_class($arg)."/".get_class($arg->expression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ if ($stringValue !== '') {
+ print "Not replacing \$form which is '$stringValue'/".get_class($arg)."/".get_class($arg->expression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ // Reached end of switch case without "continue" -> replace
+ $replacement = 0;
+
+ print "Fixture elem on $line - $actual_name(...'$stringValue'...) - $instance".PHP_EOL;
+
+ // Determine replacement
+ $replacement = '0';
+
+ // Get the first argument (delimiter)
+ $argument_to_replace = $arg;
+
+ $arg_start_pos = $argument_to_replace->getStartPosition();
+ $arg_end_pos = $argument_to_replace->getEndPosition();
+
+ // Remove deprecated module name
+ $edits[] = new FileEdit($arg_start_pos, $arg_end_pos, $replacement);
+ }
+ }
+ if ($edits) {
+ return new FileEditSet($edits);
+ }
+ return null;
+ };
+ IssueFixer::registerFixerClosure(
+ 'PhanTypeMismatchArgumentProbablyReal',
+ $fix
+ );
+});
diff --git a/dev/tools/phan/plugins/SelectDateFixer.php b/dev/tools/phan/plugins/SelectDateFixer.php
new file mode 100644
index 0000000000000..c475d7b2b8192
--- /dev/null
+++ b/dev/tools/phan/plugins/SelectDateFixer.php
@@ -0,0 +1,175 @@
+
+ *
+ * For 'price()', replace $form parameter that is '' with 0.
+ */
+
+declare(strict_types=1);
+
+use ast\flags;
+use Microsoft\PhpParser\Node\Expression\CallExpression;
+use Microsoft\PhpParser\Node\QualifiedName;
+use Phan\AST\TolerantASTConverter\NodeUtils;
+use Phan\CodeBase;
+use Phan\IssueInstance;
+use Phan\Library\FileCacheEntry;
+use Phan\Plugin\Internal\IssueFixingPlugin\FileEdit;
+use Phan\Plugin\Internal\IssueFixingPlugin\FileEditSet;
+use Phan\Plugin\Internal\IssueFixingPlugin\IssueFixer;
+use Microsoft\PhpParser\Node\Expression\ArgumentExpression;
+use Microsoft\PhpParser\Node\DelimitedList\ArgumentExpressionList;
+use Microsoft\PhpParser\Node\StringLiteral;
+use Microsoft\PhpParser\Node\ReservedWord;
+use Microsoft\PhpParser\Token;
+
+/**
+ * This is a prototype, there are various features it does not implement.
+ */
+
+call_user_func(static function (): void {
+ /**
+ * @param $code_base @unused-param
+ * @return ?FileEditSet a representation of the edit to make to replace a call to a function alias with a call to the original function
+ */
+ $fix = static function (CodeBase $code_base, FileCacheEntry $contents, IssueInstance $instance): ?FileEditSet {
+
+ // Argument {INDEX} (${PARAMETER}) is {CODE} of type {TYPE}{DETAILS} but
+ // {FUNCTIONLIKE} takes {TYPE}{DETAILS} defined at {FILE}:{LINE} (the inferred real argument type has nothing in common with the parameter's phpdoc type)
+
+ //htdocs\supplier_proposal\card.php:1705 PhanTypeMismatchArgumentProbablyReal Argument 3 ($h) is '' of type '' but \Form::selectDate() takes int (no real type) defined at htdocs\core\class\html.form.class.php:6799 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
+ //htdocs\supplier_proposal\card.php:1705 PhanTypeMismatchArgumentProbablyReal Argument 4 ($m) is '' of type '' but \Form::selectDate() takes int (no real type) defined at htdocs\core\class\html.form.class.php:6799 (the inferred real argument type has nothing in common with the parameter's phpdoc type)
+
+ $argument_index = (string) $instance->getTemplateParameters()[0];
+ $argument_name = (string) $instance->getTemplateParameters()[1];
+ $argument_code = (string) $instance->getTemplateParameters()[2];
+ $argument_type = (string) $instance->getTemplateParameters()[3];
+ $details = (string) $instance->getTemplateParameters()[4];
+ $functionlike = (string) $instance->getTemplateParameters()[5];
+
+ $expected_functionlike = "\\Form::selectDate()";
+ $expected_name = "selectDate";
+ if ($functionlike !== $expected_functionlike) {
+ print "$functionlike != '$expected_functionlike'".PHP_EOL;
+ return null;
+ }
+
+ // Check if we fix any of this
+ if (
+ ($argument_name === 'h' && $argument_code === "''")
+ || ($argument_name === 'm' && $argument_code === "''")
+ || ($argument_name === 'empty' && $argument_code === "''")
+ ) {
+ $replacement = '0';
+ $argIdx = ($argument_index - 1) * 2;
+ $expectedStringValue = "";
+ } else {
+ print "ARG$argument_index:$argument_name CODE:$argument_code".PHP_EOL;
+ return null;
+ }
+
+ // At this point we established that the notification
+ // matches some we fix.
+
+ $line = $instance->getLine();
+
+ $edits = [];
+ foreach ($contents->getNodesAtLine($line) as $node) {
+ if (!$node instanceof ArgumentExpressionList) {
+ continue;
+ }
+ $arguments = $node->children;
+ if (count($arguments) <= $argIdx) {
+ // print "Arg Count is ".count($arguments)." - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ $is_actual_call = $node->parent instanceof CallExpression;
+ if (!$is_actual_call) {
+ // print "Not actual call - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ print "Actual call - $instance".PHP_EOL;
+ $callable = $node->parent;
+
+ $callableExpression = $callable->callableExpression;
+
+ if ($callableExpression instanceof Microsoft\PhpParser\Node\QualifiedName) {
+ $actual_name = $callableExpression->getResolvedName();
+ } elseif ($callableExpression instanceof Microsoft\PhpParser\Node\Expression\MemberAccessExpression) {
+ $memberNameToken = $callableExpression->memberName;
+ $actual_name = (new NodeUtils($contents->getContents()))->tokenToString($memberNameToken);
+ } else {
+ print "Callable expression is ".get_class($callableExpression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ if ((string) $actual_name !== (string) $expected_name) {
+ // print "Name unexpected '$actual_name'!='$expected_name' - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ foreach ($arguments as $i => $argument) {
+ if ($argument instanceof ArgumentExpression) {
+ print "Type$i: ".get_class($argument->expression).PHP_EOL;
+ }
+ }
+
+ $stringValue = null;
+
+
+ $arg = $arguments[$argIdx];
+
+ if (
+ $arg instanceof ArgumentExpression
+ && $arg->expression instanceof StringLiteral
+ ) {
+ // Get the string value of the StringLiteral
+ $stringValue = $arg->expression->getStringContentsText();
+ print "String is '$stringValue'".PHP_EOL;
+ } elseif ($arg instanceof ArgumentExpression && $arg->expression instanceof ReservedWord) {
+ $child = $arg->expression->children;
+ if (!$child instanceof Token) {
+ continue;
+ }
+ $token_str = (new NodeUtils($contents->getContents()))->tokenToString($child);
+ print "$token_str KIND:".($child->kind ?? 'no kind')." ".get_class($child).PHP_EOL;
+
+ if ($token_str !== 'null') {
+ continue;
+ }
+
+ $stringValue = ''; // Fake empty
+ } else {
+ print "Expression is not string or null ".get_class($arg)."/".get_class($arg->expression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ if ($stringValue !== $expectedStringValue) {
+ print "Not replacing $argument_name which is '$stringValue'/".get_class($arg)."/".get_class($arg->expression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ print "Fixture elem on $line - $actual_name(...'$stringValue'...) - $instance".PHP_EOL;
+
+
+
+ // Get the first argument (delimiter)
+ $argument_to_replace = $arg;
+
+ $arg_start_pos = $argument_to_replace->getStartPosition();
+ $arg_end_pos = $argument_to_replace->getEndPosition();
+
+ // Set edit instruction
+ $edits[] = new FileEdit($arg_start_pos, $arg_end_pos, $replacement);
+ }
+ if ($edits) {
+ return new FileEditSet($edits);
+ }
+ return null;
+ };
+ IssueFixer::registerFixerClosure(
+ 'PhanTypeMismatchArgumentProbablyReal',
+ $fix
+ );
+});
diff --git a/dev/tools/phan/plugins/UrlEncodeStringifyFixer.php b/dev/tools/phan/plugins/UrlEncodeStringifyFixer.php
new file mode 100644
index 0000000000000..52084b1b72104
--- /dev/null
+++ b/dev/tools/phan/plugins/UrlEncodeStringifyFixer.php
@@ -0,0 +1,106 @@
+
+ *
+ * For 'price()', replace $form parameter that is '' with 0.
+ */
+
+declare(strict_types=1);
+
+use ast\flags;
+use Microsoft\PhpParser\Node\Expression\CallExpression;
+use Microsoft\PhpParser\Node\QualifiedName;
+use Phan\AST\TolerantASTConverter\NodeUtils;
+use Phan\CodeBase;
+use Phan\IssueInstance;
+use Phan\Library\FileCacheEntry;
+use Phan\Plugin\Internal\IssueFixingPlugin\FileEdit;
+use Phan\Plugin\Internal\IssueFixingPlugin\FileEditSet;
+use Phan\Plugin\Internal\IssueFixingPlugin\IssueFixer;
+use Microsoft\PhpParser\Node\Expression\ArgumentExpression;
+use Microsoft\PhpParser\Node\DelimitedList\ArgumentExpressionList;
+use Microsoft\PhpParser\Node\StringLiteral;
+use Microsoft\PhpParser\Node\ReservedWord;
+use Microsoft\PhpParser\Token;
+
+/**
+ * This is a prototype, there are various features it does not implement.
+ */
+
+call_user_func(static function (): void {
+ /**
+ * @param $code_base @unused-param
+ * @return ?FileEditSet a representation of the edit to make to replace a call to a function alias with a call to the original function
+ */
+ $fix = static function (CodeBase $code_base, FileCacheEntry $contents, IssueInstance $instance): ?FileEditSet {
+ $line = $instance->getLine();
+ // print flags\TYPE_NULL;
+ $expected_name = 'urlencode';
+ $edits = [];
+ foreach ($contents->getNodesAtLine($line) as $node) {
+ if (!$node instanceof ArgumentExpressionList) {
+ continue;
+ }
+ $arguments = $node->children;
+ if (count($arguments) < 1) {
+ // print "Arg Count is ".count($arguments)." - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ $is_actual_call = $node->parent instanceof CallExpression;
+ if (!$is_actual_call) {
+ print "Not actual call - Skip $instance".PHP_EOL;
+ continue;
+ }
+ print "Actual call - $instance".PHP_EOL;
+ $callable = $node->parent;
+
+ $callableExpression = $callable->callableExpression;
+
+ if ($callableExpression instanceof Microsoft\PhpParser\Node\QualifiedName) {
+ $actual_name = $callableExpression->getResolvedName();
+ } else {
+ print "Callable expression is ".get_class($callableExpression)."- Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ if ((string) $actual_name !== (string) $expected_name) {
+ print "Name unexpected '$actual_name'!='$expected_name' - Skip $instance".PHP_EOL;
+ continue;
+ }
+
+ foreach ($arguments as $i => $argument) {
+ if ($argument instanceof ArgumentExpression) {
+ print "Type$i: ".get_class($argument->expression).PHP_EOL;
+ }
+ }
+
+ $arg = $arguments[0];
+
+ // Reached end of switch case without "continue" -> replace
+ $replacement = 0;
+
+ print "Fixture elem on $line - $actual_name() - $instance".PHP_EOL;
+
+ // Determine replacement
+ $replacement = '0';
+
+ // Get the first argument (delimiter)
+ $argument_to_replace = $arg;
+
+ $arg_start_pos = $argument_to_replace->getStartPosition();
+ $arg_end_pos = $argument_to_replace->getEndPosition();
+
+ // Remove deprecated module name
+ $edits[] = new FileEdit($arg_start_pos, $arg_start_pos, "(string) (");
+ $edits[] = new FileEdit($arg_end_pos, $arg_end_pos, ")");
+ }
+ if ($edits) {
+ return new FileEditSet($edits);
+ }
+ return null;
+ };
+ IssueFixer::registerFixerClosure(
+ 'PhanTypeMismatchArgumentInternal',
+ $fix
+ );
+});
diff --git a/dev/tools/phan/runPhanDocker.sh b/dev/tools/phan/runPhanDocker.sh
new file mode 100755
index 0000000000000..54a6d53572993
--- /dev/null
+++ b/dev/tools/phan/runPhanDocker.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+# Script compatible with Cygwin
+# When argument is '1', save baseline
+#
+# Copyright (C) 2024 MDW
+
+MYPATH=$(realpath "$(dirname "$(readlink -f "$0")")/../../..")
+if [[ $(uname) = CYGWIN* ]] ; then
+ MYPATH="$(cygpath -w "$MYPATH")"
+fi
+
+# BASELINE_PATH=.phan/baseline.txt
+CONFIG_PATH=dev/tools/phan/config.php
+BASELINE_PATH=dev/tools/phan/baseline.txt
+
+# When full is provided as an argument,
+# still use the baseline, but verify all
+# rules.
+if [ "$1" = "full" ] || [ "$2" = "full" ] ; then
+ CONFIG_PATH=dev/tools/phan/config_extended.php
+fi
+
+if [ "$1" = "1" ] ; then
+ docker run -v "$MYPATH:/mnt/src" phanphp/phan:latest -k /mnt/src/${CONFIG_PATH} --analyze-twice --save-baseline /mnt/src/${BASELINE_PATH}
+else
+ docker run -v "$MYPATH:/mnt/src" phanphp/phan:latest -k /mnt/src/${CONFIG_PATH} -B /mnt/src/${BASELINE_PATH} --analyze-twice
+fi
diff --git a/dev/tools/phan/stubs/GeoIP2.php b/dev/tools/phan/stubs/GeoIP2.php
new file mode 100644
index 0000000000000..9ee16447fa2e6
--- /dev/null
+++ b/dev/tools/phan/stubs/GeoIP2.php
@@ -0,0 +1,1293 @@
+ An array of \GeoIp2\Record\Subdivision
+ * objects representing the country subdivisions for the requested IP
+ * address. The number and type of subdivisions varies by country, but a
+ * subdivision is typically a state, province, county, etc. Subdivisions
+ * are ordered from most general (largest) to most specific (smallest).
+ * If the response did not contain any subdivisions, this method returns
+ * an empty array.
+ */
+ public readonly array $subdivisions;
+ /**
+ * @ignore
+ */
+ public function __construct(array $raw, array $locales = ['en'])
+ {
+ }
+ public function jsonSerialize() : ?array
+ {
+ }
+ }
+ /**
+ * This class provides the GeoIP2 Connection-Type model.
+ */
+ class ConnectionType implements \JsonSerializable
+ {
+ /**
+ * @var string|null The connection type may take the
+ * following values: "Dialup", "Cable/DSL", "Corporate", "Cellular", and
+ * "Satellite". Additional values may be added in the future.
+ */
+ public readonly ?string $connectionType;
+ /**
+ * @var string the IP address that the data in the model is
+ * for
+ */
+ public readonly string $ipAddress;
+ /**
+ * @var string The network in CIDR notation associated with
+ * the record. In particular, this is the largest network where all of the
+ * fields besides $ipAddress have the same value.
+ */
+ public readonly string $network;
+ /**
+ * @ignore
+ */
+ public function __construct(array $raw)
+ {
+ }
+ public function jsonSerialize() : ?array
+ {
+ }
+ }
+ /**
+ * This class provides the GeoIP2 Domain model.
+ */
+ class Domain implements \JsonSerializable
+ {
+ /**
+ * @var string|null The second level domain associated with the
+ * IP address. This will be something like "example.com" or
+ * "example.co.uk", not "foo.example.com".
+ */
+ public readonly ?string $domain;
+ /**
+ * @var string the IP address that the data in the model is
+ * for
+ */
+ public readonly string $ipAddress;
+ /**
+ * @var string The network in CIDR notation associated with
+ * the record. In particular, this is the largest network where all of the
+ * fields besides $ipAddress have the same value.
+ */
+ public readonly string $network;
+ /**
+ * @ignore
+ */
+ public function __construct(array $raw)
+ {
+ }
+ public function jsonSerialize() : ?array
+ {
+ }
+ }
+ /**
+ * Model class for the data returned by GeoIP2 Enterprise database lookups.
+ *
+ * See https://dev.maxmind.com/geoip/docs/web-services?lang=en for more
+ * details.
+ */
+ // phpcs:disable
+ class Enterprise extends \GeoIp2\Model\City
+ {
+ }
+ /**
+ * Model class for the data returned by GeoIP2 Insights web service.
+ *
+ * See https://dev.maxmind.com/geoip/docs/web-services?lang=en for
+ * more details.
+ */
+ // phpcs:disable
+ class Insights extends \GeoIp2\Model\City
+ {
+ }
+ /**
+ * This class provides the GeoIP2 ISP model.
+ */
+ class Isp implements \JsonSerializable
+ {
+ /**
+ * @var int|null the autonomous system number
+ * associated with the IP address
+ */
+ public readonly ?int $autonomousSystemNumber;
+ /**
+ * @var string|null the organization
+ * associated with the registered autonomous system number for the IP
+ * address
+ */
+ public readonly ?string $autonomousSystemOrganization;
+ /**
+ * @var string|null the name of the ISP associated with the IP
+ * address
+ */
+ public readonly ?string $isp;
+ /**
+ * @var string|null The [mobile country code
+ * (MCC)](https://en.wikipedia.org/wiki/Mobile_country_code) associated with
+ * the IP address and ISP.
+ */
+ public readonly ?string $mobileCountryCode;
+ /**
+ * @var string|null The [mobile network code
+ * (MNC)](https://en.wikipedia.org/wiki/Mobile_country_code) associated with
+ * the IP address and ISP.
+ */
+ public readonly ?string $mobileNetworkCode;
+ /**
+ * @var string|null the name of the organization associated
+ * with the IP address
+ */
+ public readonly ?string $organization;
+ /**
+ * @var string the IP address that the data in the model is
+ * for
+ */
+ public readonly string $ipAddress;
+ /**
+ * @var string The network in CIDR notation associated with
+ * the record. In particular, this is the largest network where all of the
+ * fields besides $ipAddress have the same value.
+ */
+ public readonly string $network;
+ /**
+ * @ignore
+ */
+ public function __construct(array $raw)
+ {
+ }
+ public function jsonSerialize() : ?array
+ {
+ }
+ }
+}
+
+namespace GeoIp2\Record {
+ abstract class AbstractNamedRecord implements \JsonSerializable
+ {
+ /**
+ * @var string|null The name based on the locales list
+ * passed to the constructor. This attribute is returned by all location
+ * services and databases.
+ */
+ public readonly ?string $name;
+ /**
+ * @var array An array map where the keys are locale codes
+ * and the values are names. This attribute is returned by all location
+ * services and databases.
+ */
+ public readonly array $names;
+ /**
+ * @ignore
+ */
+ public function __construct(array $record, array $locales = ['en'])
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ abstract class AbstractPlaceRecord extends \GeoIp2\Record\AbstractNamedRecord
+ {
+ /**
+ * @var int|null A value from 0-100 indicating MaxMind's
+ * confidence that the location level is correct. This attribute is only available
+ * from the Insights service and the GeoIP2 Enterprise database.
+ */
+ public readonly ?int $confidence;
+ /**
+ * @var int|null The GeoName ID for the location level. This attribute
+ * is returned by all location services and databases.
+ */
+ public readonly ?int $geonameId;
+ /**
+ * @ignore
+ */
+ public function __construct(array $record, array $locales = ['en'])
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ /**
+ * City-level data associated with an IP address.
+ *
+ * This record is returned by all location services and databases besides
+ * Country.
+ */
+ // phpcs:disable
+ class City extends \GeoIp2\Record\AbstractPlaceRecord
+ {
+ }
+ /**
+ * Contains data for the continent record associated with an IP address.
+ *
+ * This record is returned by all location services and databases.
+ */
+ class Continent extends \GeoIp2\Record\AbstractNamedRecord
+ {
+ /**
+ * @var string|null A two character continent code like "NA" (North
+ * America) or "OC" (Oceania). This attribute is returned by all location
+ * services and databases.
+ */
+ public readonly ?string $code;
+ /**
+ * @var int|null The GeoName ID for the continent. This
+ * attribute is returned by all location services and databases.
+ */
+ public readonly ?int $geonameId;
+ /**
+ * @ignore
+ */
+ public function __construct(array $record, array $locales = ['en'])
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ /**
+ * Contains data for the country record associated with an IP address.
+ *
+ * This record is returned by all location services and databases.
+ */
+ class Country extends \GeoIp2\Record\AbstractPlaceRecord
+ {
+ /**
+ * @var bool This is true if the country is a
+ * member state of the European Union. This attribute is returned by all
+ * location services and databases.
+ */
+ public readonly bool $isInEuropeanUnion;
+ /**
+ * @var string|null The two-character ISO 3166-1 alpha code
+ * for the country. See https://en.wikipedia.org/wiki/ISO_3166-1. This
+ * attribute is returned by all location services and databases.
+ */
+ public readonly ?string $isoCode;
+ /**
+ * @ignore
+ */
+ public function __construct(array $record, array $locales = ['en'])
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ /**
+ * Contains data for the location record associated with an IP address.
+ *
+ * This record is returned by all location services and databases besides
+ * Country.
+ */
+ class Location implements \JsonSerializable
+ {
+ /**
+ * @var int|null The average income in US dollars
+ * associated with the requested IP address. This attribute is only available
+ * from the Insights service.
+ */
+ public readonly ?int $averageIncome;
+ /**
+ * @var int|null The approximate accuracy radius in
+ * kilometers around the latitude and longitude for the IP address. This is
+ * the radius where we have a 67% confidence that the device using the IP
+ * address resides within the circle centered at the latitude and longitude
+ * with the provided radius.
+ */
+ public readonly ?int $accuracyRadius;
+ /**
+ * @var float|null The approximate latitude of the location
+ * associated with the IP address. This value is not precise and should not be
+ * used to identify a particular address or household.
+ */
+ public readonly ?float $latitude;
+ /**
+ * @var float|null The approximate longitude of the location
+ * associated with the IP address. This value is not precise and should not be
+ * used to identify a particular address or household.
+ */
+ public readonly ?float $longitude;
+ /**
+ * @var int|null The metro code of the location if the location
+ * is in the US. MaxMind returns the same metro codes as the
+ * Google AdWords API. See
+ * https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions.
+ */
+ public readonly ?int $metroCode;
+ /**
+ * @var int|null The estimated population per square
+ * kilometer associated with the IP address. This attribute is only available
+ * from the Insights service.
+ */
+ public readonly ?int $populationDensity;
+ /**
+ * @var string|null The time zone associated with location, as
+ * specified by the IANA Time Zone Database, e.g., "America/New_York". See
+ * https://www.iana.org/time-zones.
+ */
+ public readonly ?string $timeZone;
+ public function __construct(array $record)
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ /**
+ * Contains data about your account.
+ *
+ * This record is returned by all location services and databases.
+ */
+ class MaxMind implements \JsonSerializable
+ {
+ /**
+ * @var int|null the number of remaining queries you
+ * have for the service you are calling
+ */
+ public readonly ?int $queriesRemaining;
+ public function __construct(array $record)
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ /**
+ * Contains data for the postal record associated with an IP address.
+ *
+ * This record is returned by all location databases and services besides
+ * Country.
+ */
+ class Postal implements \JsonSerializable
+ {
+ /**
+ * @var string|null The postal code of the location. Postal codes
+ * are not available for all countries. In some countries, this will only
+ * contain part of the postal code. This attribute is returned by all location
+ * databases and services besides Country.
+ */
+ public readonly ?string $code;
+ /**
+ * @var int|null A value from 0-100 indicating MaxMind's
+ * confidence that the postal code is correct. This attribute is only
+ * available from the Insights service and the GeoIP2 Enterprise
+ * database.
+ */
+ public readonly ?int $confidence;
+ /**
+ * @ignore
+ */
+ public function __construct(array $record)
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ /**
+ * Contains data for the represented country associated with an IP address.
+ *
+ * This class contains the country-level data associated with an IP address
+ * for the IP's represented country. The represented country is the country
+ * represented by something like a military base.
+ */
+ class RepresentedCountry extends \GeoIp2\Record\Country
+ {
+ /**
+ * @var string|null A string indicating the type of entity that is
+ * representing the country. Currently we only return military
+ * but this could expand to include other types in the future.
+ */
+ public readonly ?string $type;
+ /**
+ * @ignore
+ */
+ public function __construct(array $record, array $locales = ['en'])
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ /**
+ * Contains data for the subdivisions associated with an IP address.
+ *
+ * This record is returned by all location databases and services besides
+ * Country.
+ */
+ class Subdivision extends \GeoIp2\Record\AbstractPlaceRecord
+ {
+ /**
+ * @var string|null This is a string up to three characters long
+ * contain the subdivision portion of the ISO 3166-2 code. See
+ * https://en.wikipedia.org/wiki/ISO_3166-2. This attribute is returned by all
+ * location databases and services except Country.
+ */
+ public readonly ?string $isoCode;
+ /**
+ * @ignore
+ */
+ public function __construct(array $record, array $locales = ['en'])
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+ /**
+ * Contains data for the traits record associated with an IP address.
+ *
+ * This record is returned by all location services and databases.
+ */
+ class Traits implements \JsonSerializable
+ {
+ /**
+ * @var int|null The autonomous system number
+ * associated with the IP address. See
+ * https://en.wikipedia.org/wiki/Autonomous_system_(Internet%29. This attribute
+ * is only available from the City Plus and Insights web services and the
+ * GeoIP2 Enterprise database.
+ */
+ public readonly ?int $autonomousSystemNumber;
+ /**
+ * @var string|null The organization
+ * associated with the registered autonomous system number for the IP address.
+ * See https://en.wikipedia.org/wiki/Autonomous_system_(Internet%29. This
+ * attribute is only available from the City Plus and Insights web services and
+ * the GeoIP2 Enterprise database.
+ */
+ public readonly ?string $autonomousSystemOrganization;
+ /**
+ * @var string|null The connection type may take the
+ * following values: "Dialup", "Cable/DSL", "Corporate", "Cellular", and
+ * "Satellite". Additional values may be added in the future. This attribute is
+ * only available from the City Plus and Insights web services and the GeoIP2
+ * Enterprise database.
+ */
+ public readonly ?string $connectionType;
+ /**
+ * @var string|null The second level domain associated with the
+ * IP address. This will be something like "example.com" or "example.co.uk",
+ * not "foo.example.com". This attribute is only available from the
+ * City Plus and Insights web services and the GeoIP2 Enterprise
+ * database.
+ */
+ public readonly ?string $domain;
+ /**
+ * @var string|null The IP address that the data in the model
+ * is for. If you performed a "me" lookup against the web service, this
+ * will be the externally routable IP address for the system the code is
+ * running on. If the system is behind a NAT, this may differ from the IP
+ * address locally assigned to it. This attribute is returned by all end
+ * points.
+ */
+ public readonly ?string $ipAddress;
+ /**
+ * @var bool This is true if the IP address belongs to
+ * any sort of anonymous network. This property is only available from GeoIP2
+ * Insights.
+ */
+ public readonly bool $isAnonymous;
+ /**
+ * @var bool This is true if the IP address is
+ * registered to an anonymous VPN provider. If a VPN provider does not register
+ * subnets under names associated with them, we will likely only flag their IP
+ * ranges using the isHostingProvider property. This property is only available
+ * from GeoIP2 Insights.
+ */
+ public readonly bool $isAnonymousVpn;
+ /**
+ * @var bool This is true if the IP address belongs to an [anycast
+ * network](https://en.wikipedia.org/wiki/Anycast). This property is not
+ * available from GeoLite databases or web services.
+ */
+ public readonly bool $isAnycast;
+ /**
+ * @var bool This is true if the IP address belongs
+ * to a hosting or VPN provider (see description of isAnonymousVpn property).
+ * This property is only available from GeoIP2 Insights.
+ */
+ public readonly bool $isHostingProvider;
+ /**
+ * @var bool This attribute is true if MaxMind
+ * believes this IP address to be a legitimate proxy, such as an internal
+ * VPN used by a corporation. This attribute is only available in the GeoIP2
+ * Enterprise database.
+ */
+ public readonly bool $isLegitimateProxy;
+ /**
+ * @var bool This is true if the IP address belongs to
+ * a public proxy. This property is only available from GeoIP2 Insights.
+ */
+ public readonly bool $isPublicProxy;
+ /**
+ * @var bool This is true if the IP address is
+ * on a suspected anonymizing network and belongs to a residential ISP. This
+ * property is only available from GeoIP2 Insights.
+ */
+ public readonly bool $isResidentialProxy;
+ /**
+ * @var bool This is true if the IP address is a Tor
+ * exit node. This property is only available from GeoIP2 Insights.
+ */
+ public readonly bool $isTorExitNode;
+ /**
+ * @var string|null The name of the ISP associated with the IP
+ * address. This attribute is only available from the City Plus and Insights
+ * web services and the GeoIP2 Enterprise database.
+ */
+ public readonly ?string $isp;
+ /**
+ * @var string|null The [mobile country code
+ * (MCC)](https://en.wikipedia.org/wiki/Mobile_country_code) associated with
+ * the IP address and ISP. This property is available from the City Plus and
+ * Insights web services and the GeoIP2 Enterprise database.
+ */
+ public readonly ?string $mobileCountryCode;
+ /**
+ * @var string|null The [mobile network code
+ * (MNC)](https://en.wikipedia.org/wiki/Mobile_country_code) associated with
+ * the IP address and ISP. This property is available from the City Plus and
+ * Insights web services and the GeoIP2 Enterprise database.
+ */
+ public readonly ?string $mobileNetworkCode;
+ /**
+ * @var string|null The network in CIDR notation associated with
+ * the record. In particular, this is the largest network where all of the
+ * fields besides $ipAddress have the same value.
+ */
+ public readonly ?string $network;
+ /**
+ * @var string|null The name of the organization
+ * associated with the IP address. This attribute is only available from the
+ * City Plus and Insights web services and the GeoIP2 Enterprise database.
+ */
+ public readonly ?string $organization;
+ /**
+ * @var float|null An indicator of how static or
+ * dynamic an IP address is. This property is only available from GeoIP2
+ * Insights.
+ */
+ public readonly ?float $staticIpScore;
+ /**
+ * @var int|null The estimated number of users sharing
+ * the IP/network during the past 24 hours. For IPv4, the count is for the
+ * individual IP. For IPv6, the count is for the /64 network. This property is
+ * only available from GeoIP2 Insights.
+ */
+ public readonly ?int $userCount;
+ /**
+ * @var string|null
The user type associated with the IP
+ * address. This can be one of the following values:
+ *
+ *
business
+ *
cafe
+ *
cellular
+ *
college
+ *
consumer_privacy_network
+ *
content_delivery_network
+ *
dialup
+ *
government
+ *
hosting
+ *
library
+ *
military
+ *
residential
+ *
router
+ *
school
+ *
search_engine_spider
+ *
traveler
+ *
+ *
+ * This attribute is only available from the Insights web service and the
+ * GeoIP2 Enterprise database.
+ *
+ */
+ public readonly ?string $userType;
+ public function __construct(array $record)
+ {
+ }
+ public function jsonSerialize() : array
+ {
+ }
+ }
+}
+
+namespace GeoIp2 {
+ class Util
+ {
+ /**
+ * This returns the network in CIDR notation for the given IP and prefix
+ * length. This is for internal use only.
+ *
+ * @internal
+ *
+ * @ignore
+ */
+ public static function cidr(string $ipAddress, int $prefixLen) : string
+ {
+ }
+ }
+}
+
+namespace GeoIp2\WebService {
+ /**
+ * This class provides a client API for all the GeoIP2 web services.
+ * The services are Country, City Plus, and Insights. Each service returns
+ * a different set of data about an IP address, with Country returning the
+ * least data and Insights the most.
+ *
+ * Each web service is represented by a different model class, and these model
+ * classes in turn contain multiple record classes. The record classes have
+ * attributes which contain data about the IP address.
+ *
+ * If the web service does not return a particular piece of data for an IP
+ * address, the associated attribute is not populated.
+ *
+ * The web service may not return any information for an entire record, in
+ * which case all of the attributes for that record class will be empty.
+ *
+ * ## Usage ##
+ *
+ * The basic API for this class is the same for all of the web service end
+ * points. First you create a web service object with your MaxMind `$accountId`
+ * and `$licenseKey`, then you call the method corresponding to a specific end
+ * point, passing it the IP address you want to look up.
+ *
+ * If the request succeeds, the method call will return a model class for
+ * the service you called. This model in turn contains multiple record
+ * classes, each of which represents part of the data returned by the web
+ * service.
+ *
+ * If the request fails, the client class throws an exception.
+ */
+ class Client implements \GeoIp2\ProviderInterface
+ {
+ public const VERSION = 'v3.0.0';
+ /**
+ * Constructor.
+ *
+ * @param int $accountId your MaxMind account ID
+ * @param string $licenseKey your MaxMind license key
+ * @param array $locales list of locale codes to use in name property
+ * from most preferred to least preferred
+ * @param array $options array of options. Valid options include:
+ * * `host` - The host to use when querying the web
+ * service. To query the GeoLite2 web service
+ * instead of the GeoIP2 web service, set the
+ * host to `geolite.info`. To query the Sandbox
+ * GeoIP2 web service instead of the production
+ * GeoIP2 web service, set the host to
+ * `sandbox.maxmind.com`. The sandbox allows you to
+ * experiment with the API without affecting your
+ * production data.
+ * * `timeout` - Timeout in seconds.
+ * * `connectTimeout` - Initial connection timeout in seconds.
+ * * `proxy` - The HTTP proxy to use. May include a schema, port,
+ * username, and password, e.g.,
+ * `http://username:password@127.0.0.1:10`.
+ */
+ public function __construct(int $accountId, string $licenseKey, array $locales = ['en'], array $options = [])
+ {
+ }
+ /**
+ * This method calls the City Plus service.
+ *
+ * @param string $ipAddress IPv4 or IPv6 address as a string. If no
+ * address is provided, the address that the web service is called
+ * from will be used.
+ *
+ * @throws \GeoIp2\Exception\AddressNotFoundException if the address you
+ * provided is not in our database (e.g., a private address).
+ * @throws \GeoIp2\Exception\AuthenticationException if there is a problem
+ * with the account ID or license key that you provided
+ * @throws \GeoIp2\Exception\OutOfQueriesException if your account is out
+ * of queries
+ * @throws \GeoIp2\Exception\InvalidRequestException} if your request was received by the web service but is
+ * invalid for some other reason. This may indicate an issue
+ * with this API. Please report the error to MaxMind.
+ * @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error code or message was returned.
+ * This could indicate a problem with the connection between
+ * your server and the web service or that the web service
+ * returned an invalid document or 500 error code
+ * @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent
+ * class to the above exceptions. It will be thrown directly
+ * if a 200 status code is returned but the body is invalid.
+ * @throws \InvalidArgumentException if something other than a single IP address or "me" is
+ * passed to the method
+ */
+ public function city(string $ipAddress = 'me') : \GeoIp2\Model\City
+ {
+ }
+ /**
+ * This method calls the Country service.
+ *
+ * @param string $ipAddress IPv4 or IPv6 address as a string. If no
+ * address is provided, the address that the web service is called
+ * from will be used.
+ *
+ * @throws \GeoIp2\Exception\AddressNotFoundException if the address you provided is not in our database (e.g.,
+ * a private address).
+ * @throws \GeoIp2\Exception\AuthenticationException if there is a problem
+ * with the account ID or license key that you provided
+ * @throws \GeoIp2\Exception\OutOfQueriesException if your account is out of queries
+ * @throws \GeoIp2\Exception\InvalidRequestException} if your request was received by the web service but is
+ * invalid for some other reason. This may indicate an
+ * issue with this API. Please report the error to MaxMind.
+ * @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error
+ * code or message was returned. This could indicate a problem
+ * with the connection between your server and the web service
+ * or that the web service returned an invalid document or 500
+ * error code.
+ * @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent class to the above exceptions. It
+ * will be thrown directly if a 200 status code is returned but
+ * the body is invalid.
+ * @throws \InvalidArgumentException if something other than a single IP address or "me" is
+ * passed to the method
+ */
+ public function country(string $ipAddress = 'me') : \GeoIp2\Model\Country
+ {
+ }
+ /**
+ * This method calls the Insights service. Insights is only supported by
+ * the GeoIP2 web service. The GeoLite2 web service does not support it.
+ *
+ * @param string $ipAddress IPv4 or IPv6 address as a string. If no
+ * address is provided, the address that the web service is called
+ * from will be used.
+ *
+ * @throws \GeoIp2\Exception\AddressNotFoundException if the address you
+ * provided is not in our database (e.g., a private address).
+ * @throws \GeoIp2\Exception\AuthenticationException if there is a problem
+ * with the account ID or license key that you provided
+ * @throws \GeoIp2\Exception\OutOfQueriesException if your account is out
+ * of queries
+ * @throws \GeoIp2\Exception\InvalidRequestException} if your request was received by the web service but is
+ * invalid for some other reason. This may indicate an
+ * issue with this API. Please report the error to MaxMind.
+ * @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error code or message was returned.
+ * This could indicate a problem with the connection between
+ * your server and the web service or that the web service
+ * returned an invalid document or 500 error code
+ * @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent
+ * class to the above exceptions. It will be thrown directly
+ * if a 200 status code is returned but the body is invalid.
+ * @throws \InvalidArgumentException if something other than a single IP address or "me" is
+ * passed to the method
+ */
+ public function insights(string $ipAddress = 'me') : \GeoIp2\Model\Insights
+ {
+ }
+ }
+}
diff --git a/dev/tools/phan/stubs/SimpleXML.phan_php b/dev/tools/phan/stubs/SimpleXML.phan_php
new file mode 100644
index 0000000000000..c9e4ad305b8a5
--- /dev/null
+++ b/dev/tools/phan/stubs/SimpleXML.phan_php
@@ -0,0 +1,43 @@
+ 0, "AP" => 1, "EU" => 2, "AD" => 3, "AE" => 4, "AF" => 5, "AG" => 6, "AI" => 7, "AL" => 8, "AM" => 9, "CW" => 10, "AO" => 11, "AQ" => 12, "AR" => 13, "AS" => 14, "AT" => 15, "AU" => 16, "AW" => 17, "AZ" => 18, "BA" => 19, "BB" => 20, "BD" => 21, "BE" => 22, "BF" => 23, "BG" => 24, "BH" => 25, "BI" => 26, "BJ" => 27, "BM" => 28, "BN" => 29, "BO" => 30, "BR" => 31, "BS" => 32, "BT" => 33, "BV" => 34, "BW" => 35, "BY" => 36, "BZ" => 37, "CA" => 38, "CC" => 39, "CD" => 40, "CF" => 41, "CG" => 42, "CH" => 43, "CI" => 44, "CK" => 45, "CL" => 46, "CM" => 47, "CN" => 48, "CO" => 49, "CR" => 50, "CU" => 51, "CV" => 52, "CX" => 53, "CY" => 54, "CZ" => 55, "DE" => 56, "DJ" => 57, "DK" => 58, "DM" => 59, "DO" => 60, "DZ" => 61, "EC" => 62, "EE" => 63, "EG" => 64, "EH" => 65, "ER" => 66, "ES" => 67, "ET" => 68, "FI" => 69, "FJ" => 70, "FK" => 71, "FM" => 72, "FO" => 73, "FR" => 74, "SX" => 75, "GA" => 76, "GB" => 77, "GD" => 78, "GE" => 79, "GF" => 80, "GH" => 81, "GI" => 82, "GL" => 83, "GM" => 84, "GN" => 85, "GP" => 86, "GQ" => 87, "GR" => 88, "GS" => 89, "GT" => 90, "GU" => 91, "GW" => 92, "GY" => 93, "HK" => 94, "HM" => 95, "HN" => 96, "HR" => 97, "HT" => 98, "HU" => 99, "ID" => 100, "IE" => 101, "IL" => 102, "IN" => 103, "IO" => 104, "IQ" => 105, "IR" => 106, "IS" => 107, "IT" => 108, "JM" => 109, "JO" => 110, "JP" => 111, "KE" => 112, "KG" => 113, "KH" => 114, "KI" => 115, "KM" => 116, "KN" => 117, "KP" => 118, "KR" => 119, "KW" => 120, "KY" => 121, "KZ" => 122, "LA" => 123, "LB" => 124, "LC" => 125, "LI" => 126, "LK" => 127, "LR" => 128, "LS" => 129, "LT" => 130, "LU" => 131, "LV" => 132, "LY" => 133, "MA" => 134, "MC" => 135, "MD" => 136, "MG" => 137, "MH" => 138, "MK" => 139, "ML" => 140, "MM" => 141, "MN" => 142, "MO" => 143, "MP" => 144, "MQ" => 145, "MR" => 146, "MS" => 147, "MT" => 148, "MU" => 149, "MV" => 150, "MW" => 151, "MX" => 152, "MY" => 153, "MZ" => 154, "NA" => 155, "NC" => 156, "NE" => 157, "NF" => 158, "NG" => 159, "NI" => 160, "NL" => 161, "NO" => 162, "NP" => 163, "NR" => 164, "NU" => 165, "NZ" => 166, "OM" => 167, "PA" => 168, "PE" => 169, "PF" => 170, "PG" => 171, "PH" => 172, "PK" => 173, "PL" => 174, "PM" => 175, "PN" => 176, "PR" => 177, "PS" => 178, "PT" => 179, "PW" => 180, "PY" => 181, "QA" => 182, "RE" => 183, "RO" => 184, "RU" => 185, "RW" => 186, "SA" => 187, "SB" => 188, "SC" => 189, "SD" => 190, "SE" => 191, "SG" => 192, "SH" => 193, "SI" => 194, "SJ" => 195, "SK" => 196, "SL" => 197, "SM" => 198, "SN" => 199, "SO" => 200, "SR" => 201, "ST" => 202, "SV" => 203, "SY" => 204, "SZ" => 205, "TC" => 206, "TD" => 207, "TF" => 208, "TG" => 209, "TH" => 210, "TJ" => 211, "TK" => 212, "TM" => 213, "TN" => 214, "TO" => 215, "TL" => 216, "TR" => 217, "TT" => 218, "TV" => 219, "TW" => 220, "TZ" => 221, "UA" => 222, "UG" => 223, "UM" => 224, "US" => 225, "UY" => 226, "UZ" => 227, "VA" => 228, "VC" => 229, "VE" => 230, "VG" => 231, "VI" => 232, "VN" => 233, "VU" => 234, "WF" => 235, "WS" => 236, "YE" => 237, "YT" => 238, "RS" => 239, "ZA" => 240, "ZM" => 241, "ME" => 242, "ZW" => 243, "A1" => 244, "A2" => 245, "O1" => 246, "AX" => 247, "GG" => 248, "IM" => 249, "JE" => 250, "BL" => 251, "MF" => 252, "BQ" => 253, "SS" => 254);
+ public $GEOIP_COUNTRY_CODES = array("", "AP", "EU", "AD", "AE", "AF", "AG", "AI", "AL", "AM", "CW", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "SX", "GA", "GB", "GD", "GE", "GF", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IN", "IO", "IQ", "IR", "IS", "IT", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "ST", "SV", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TM", "TN", "TO", "TL", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "RS", "ZA", "ZM", "ME", "ZW", "A1", "A2", "O1", "AX", "GG", "IM", "JE", "BL", "MF", "BQ", "SS", "O1");
+ public $GEOIP_COUNTRY_CODES3 = array("", "AP", "EU", "AND", "ARE", "AFG", "ATG", "AIA", "ALB", "ARM", "CUW", "AGO", "ATA", "ARG", "ASM", "AUT", "AUS", "ABW", "AZE", "BIH", "BRB", "BGD", "BEL", "BFA", "BGR", "BHR", "BDI", "BEN", "BMU", "BRN", "BOL", "BRA", "BHS", "BTN", "BVT", "BWA", "BLR", "BLZ", "CAN", "CCK", "COD", "CAF", "COG", "CHE", "CIV", "COK", "CHL", "CMR", "CHN", "COL", "CRI", "CUB", "CPV", "CXR", "CYP", "CZE", "DEU", "DJI", "DNK", "DMA", "DOM", "DZA", "ECU", "EST", "EGY", "ESH", "ERI", "ESP", "ETH", "FIN", "FJI", "FLK", "FSM", "FRO", "FRA", "SXM", "GAB", "GBR", "GRD", "GEO", "GUF", "GHA", "GIB", "GRL", "GMB", "GIN", "GLP", "GNQ", "GRC", "SGS", "GTM", "GUM", "GNB", "GUY", "HKG", "HMD", "HND", "HRV", "HTI", "HUN", "IDN", "IRL", "ISR", "IND", "IOT", "IRQ", "IRN", "ISL", "ITA", "JAM", "JOR", "JPN", "KEN", "KGZ", "KHM", "KIR", "COM", "KNA", "PRK", "KOR", "KWT", "CYM", "KAZ", "LAO", "LBN", "LCA", "LIE", "LKA", "LBR", "LSO", "LTU", "LUX", "LVA", "LBY", "MAR", "MCO", "MDA", "MDG", "MHL", "MKD", "MLI", "MMR", "MNG", "MAC", "MNP", "MTQ", "MRT", "MSR", "MLT", "MUS", "MDV", "MWI", "MEX", "MYS", "MOZ", "NAM", "NCL", "NER", "NFK", "NGA", "NIC", "NLD", "NOR", "NPL", "NRU", "NIU", "NZL", "OMN", "PAN", "PER", "PYF", "PNG", "PHL", "PAK", "POL", "SPM", "PCN", "PRI", "PSE", "PRT", "PLW", "PRY", "QAT", "REU", "ROU", "RUS", "RWA", "SAU", "SLB", "SYC", "SDN", "SWE", "SGP", "SHN", "SVN", "SJM", "SVK", "SLE", "SMR", "SEN", "SOM", "SUR", "STP", "SLV", "SYR", "SWZ", "TCA", "TCD", "ATF", "TGO", "THA", "TJK", "TKL", "TKM", "TUN", "TON", "TLS", "TUR", "TTO", "TUV", "TWN", "TZA", "UKR", "UGA", "UMI", "USA", "URY", "UZB", "VAT", "VCT", "VEN", "VGB", "VIR", "VNM", "VUT", "WLF", "WSM", "YEM", "MYT", "SRB", "ZAF", "ZMB", "MNE", "ZWE", "A1", "A2", "O1", "ALA", "GGY", "IMN", "JEY", "BLM", "MAF", "BES", "SSD", "O1");
+ public $GEOIP_COUNTRY_NAMES = array("", "Asia/Pacific Region", "Europe", "Andorra", "United Arab Emirates", "Afghanistan", "Antigua and Barbuda", "Anguilla", "Albania", "Armenia", "Curacao", "Angola", "Antarctica", "Argentina", "American Samoa", "Austria", "Australia", "Aruba", "Azerbaijan", "Bosnia and Herzegovina", "Barbados", "Bangladesh", "Belgium", "Burkina Faso", "Bulgaria", "Bahrain", "Burundi", "Benin", "Bermuda", "Brunei Darussalam", "Bolivia", "Brazil", "Bahamas", "Bhutan", "Bouvet Island", "Botswana", "Belarus", "Belize", "Canada", "Cocos (Keeling) Islands", "Congo, The Democratic Republic of the", "Central African Republic", "Congo", "Switzerland", "Cote D'Ivoire", "Cook Islands", "Chile", "Cameroon", "China", "Colombia", "Costa Rica", "Cuba", "Cape Verde", "Christmas Island", "Cyprus", "Czech Republic", "Germany", "Djibouti", "Denmark", "Dominica", "Dominican Republic", "Algeria", "Ecuador", "Estonia", "Egypt", "Western Sahara", "Eritrea", "Spain", "Ethiopia", "Finland", "Fiji", "Falkland Islands (Malvinas)", "Micronesia, Federated States of", "Faroe Islands", "France", "Sint Maarten (Dutch part)", "Gabon", "United Kingdom", "Grenada", "Georgia", "French Guiana", "Ghana", "Gibraltar", "Greenland", "Gambia", "Guinea", "Guadeloupe", "Equatorial Guinea", "Greece", "South Georgia and the South Sandwich Islands", "Guatemala", "Guam", "Guinea-Bissau", "Guyana", "Hong Kong", "Heard Island and McDonald Islands", "Honduras", "Croatia", "Haiti", "Hungary", "Indonesia", "Ireland", "Israel", "India", "British Indian Ocean Territory", "Iraq", "Iran, Islamic Republic of", "Iceland", "Italy", "Jamaica", "Jordan", "Japan", "Kenya", "Kyrgyzstan", "Cambodia", "Kiribati", "Comoros", "Saint Kitts and Nevis", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Cayman Islands", "Kazakhstan", "Lao People's Democratic Republic", "Lebanon", "Saint Lucia", "Liechtenstein", "Sri Lanka", "Liberia", "Lesotho", "Lithuania", "Luxembourg", "Latvia", "Libya", "Morocco", "Monaco", "Moldova, Republic of", "Madagascar", "Marshall Islands", "Macedonia", "Mali", "Myanmar", "Mongolia", "Macau", "Northern Mariana Islands", "Martinique", "Mauritania", "Montserrat", "Malta", "Mauritius", "Maldives", "Malawi", "Mexico", "Malaysia", "Mozambique", "Namibia", "New Caledonia", "Niger", "Norfolk Island", "Nigeria", "Nicaragua", "Netherlands", "Norway", "Nepal", "Nauru", "Niue", "New Zealand", "Oman", "Panama", "Peru", "French Polynesia", "Papua New Guinea", "Philippines", "Pakistan", "Poland", "Saint Pierre and Miquelon", "Pitcairn Islands", "Puerto Rico", "Palestinian Territory", "Portugal", "Palau", "Paraguay", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saudi Arabia", "Solomon Islands", "Seychelles", "Sudan", "Sweden", "Singapore", "Saint Helena", "Slovenia", "Svalbard and Jan Mayen", "Slovakia", "Sierra Leone", "San Marino", "Senegal", "Somalia", "Suriname", "Sao Tome and Principe", "El Salvador", "Syrian Arab Republic", "Swaziland", "Turks and Caicos Islands", "Chad", "French Southern Territories", "Togo", "Thailand", "Tajikistan", "Tokelau", "Turkmenistan", "Tunisia", "Tonga", "Timor-Leste", "Turkey", "Trinidad and Tobago", "Tuvalu", "Taiwan", "Tanzania, United Republic of", "Ukraine", "Uganda", "United States Minor Outlying Islands", "United States", "Uruguay", "Uzbekistan", "Holy See (Vatican City State)", "Saint Vincent and the Grenadines", "Venezuela", "Virgin Islands, British", "Virgin Islands, U.S.", "Vietnam", "Vanuatu", "Wallis and Futuna", "Samoa", "Yemen", "Mayotte", "Serbia", "South Africa", "Zambia", "Montenegro", "Zimbabwe", "Anonymous Proxy", "Satellite Provider", "Other", "Aland Islands", "Guernsey", "Isle of Man", "Jersey", "Saint Barthelemy", "Saint Martin", "Bonaire, Saint Eustatius and Saba", "South Sudan", "Other");
+ public $GEOIP_CONTINENT_CODES = array("--", "AS", "EU", "EU", "AS", "AS", "NA", "NA", "EU", "AS", "NA", "AF", "AN", "SA", "OC", "EU", "OC", "NA", "AS", "EU", "NA", "AS", "EU", "AF", "EU", "AS", "AF", "AF", "NA", "AS", "SA", "SA", "NA", "AS", "AN", "AF", "EU", "NA", "NA", "AS", "AF", "AF", "AF", "EU", "AF", "OC", "SA", "AF", "AS", "SA", "NA", "NA", "AF", "AS", "AS", "EU", "EU", "AF", "EU", "NA", "NA", "AF", "SA", "EU", "AF", "AF", "AF", "EU", "AF", "EU", "OC", "SA", "OC", "EU", "EU", "NA", "AF", "EU", "NA", "AS", "SA", "AF", "EU", "NA", "AF", "AF", "NA", "AF", "EU", "AN", "NA", "OC", "AF", "SA", "AS", "AN", "NA", "EU", "NA", "EU", "AS", "EU", "AS", "AS", "AS", "AS", "AS", "EU", "EU", "NA", "AS", "AS", "AF", "AS", "AS", "OC", "AF", "NA", "AS", "AS", "AS", "NA", "AS", "AS", "AS", "NA", "EU", "AS", "AF", "AF", "EU", "EU", "EU", "AF", "AF", "EU", "EU", "AF", "OC", "EU", "AF", "AS", "AS", "AS", "OC", "NA", "AF", "NA", "EU", "AF", "AS", "AF", "NA", "AS", "AF", "AF", "OC", "AF", "OC", "AF", "NA", "EU", "EU", "AS", "OC", "OC", "OC", "AS", "NA", "SA", "OC", "OC", "AS", "AS", "EU", "NA", "OC", "NA", "AS", "EU", "OC", "SA", "AS", "AF", "EU", "EU", "AF", "AS", "OC", "AF", "AF", "EU", "AS", "AF", "EU", "EU", "EU", "AF", "EU", "AF", "AF", "SA", "AF", "NA", "AS", "AF", "NA", "AF", "AN", "AF", "AS", "AS", "OC", "AS", "AF", "OC", "AS", "EU", "NA", "OC", "AS", "AF", "EU", "AF", "OC", "NA", "SA", "AS", "EU", "NA", "SA", "NA", "NA", "AS", "OC", "OC", "OC", "AS", "AF", "EU", "AF", "AF", "EU", "AF", "--", "--", "--", "EU", "EU", "EU", "EU", "NA", "NA", "NA", "AF", "--");
+}
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
+/* geoip.inc
+ *
+ * Copyright (C) 2007 MaxMind LLC
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+\define("GEOIP_COUNTRY_BEGIN", 16776960);
+\define("GEOIP_STATE_BEGIN_REV0", 16700000);
+\define("GEOIP_STATE_BEGIN_REV1", 16000000);
+\define("GEOIP_STANDARD", 0);
+\define("GEOIP_MEMORY_CACHE", 1);
+\define("GEOIP_SHARED_MEMORY", 2);
+\define("STRUCTURE_INFO_MAX_SIZE", 20);
+\define("DATABASE_INFO_MAX_SIZE", 100);
+\define("GEOIP_COUNTRY_EDITION", 1);
+\define("GEOIP_PROXY_EDITION", 8);
+\define("GEOIP_ASNUM_EDITION", 9);
+\define("GEOIP_NETSPEED_EDITION", 10);
+\define("GEOIP_REGION_EDITION_REV0", 7);
+\define("GEOIP_REGION_EDITION_REV1", 3);
+\define("GEOIP_CITY_EDITION_REV0", 6);
+\define("GEOIP_CITY_EDITION_REV1", 2);
+\define("GEOIP_ORG_EDITION", 5);
+\define("GEOIP_ISP_EDITION", 4);
+\define("SEGMENT_RECORD_LENGTH", 3);
+\define("STANDARD_RECORD_LENGTH", 3);
+\define("ORG_RECORD_LENGTH", 4);
+\define("MAX_RECORD_LENGTH", 4);
+\define("MAX_ORG_RECORD_LENGTH", 300);
+\define("GEOIP_SHM_KEY", 0x4f415401);
+\define("US_OFFSET", 1);
+\define("CANADA_OFFSET", 677);
+\define("WORLD_OFFSET", 1353);
+\define("FIPS_RANGE", 360);
+\define("GEOIP_UNKNOWN_SPEED", 0);
+\define("GEOIP_DIALUP_SPEED", 1);
+\define("GEOIP_CABLEDSL_SPEED", 2);
+\define("GEOIP_CORPORATE_SPEED", 3);
+\define("GEOIP_DOMAIN_EDITION", 11);
+\define("GEOIP_COUNTRY_EDITION_V6", 12);
+\define("GEOIP_LOCATIONA_EDITION", 13);
+\define("GEOIP_ACCURACYRADIUS_EDITION", 14);
+\define("GEOIP_CITYCOMBINED_EDITION", 15);
+\define("GEOIP_CITY_EDITION_REV1_V6", 30);
+\define("GEOIP_CITY_EDITION_REV0_V6", 31);
+\define("GEOIP_NETSPEED_EDITION_REV1", 32);
+\define("GEOIP_NETSPEED_EDITION_REV1_V6", 33);
+\define("GEOIP_USERTYPE_EDITION", 28);
+\define("GEOIP_USERTYPE_EDITION_V6", 29);
+\define("GEOIP_ASNUM_EDITION_V6", 21);
+\define("GEOIP_ISP_EDITION_V6", 22);
+\define("GEOIP_ORG_EDITION_V6", 23);
+\define("GEOIP_DOMAIN_EDITION_V6", 24);
+\define("CITYCOMBINED_FIXED_RECORD", 7);
+function geoip_load_shared_mem($file)
+{
+}
+function _setup_segments($gi)
+{
+}
+// This should be only used for variable-length records where
+// $start + $maxLength may be greater than the shared mem size
+function _sharedMemRead($gi, $start, $maxLength)
+{
+}
+/**
+ * @param string $filename
+ * @param int $flags
+ * @return GeoIP
+ */
+function geoip_open($filename, $flags)
+{
+}
+/**
+ * @param GeoIP $gi
+ * @return bool
+ */
+function geoip_close($gi)
+{
+}
+function geoip_country_id_by_name_v6($gi, $name)
+{
+}
+function geoip_country_id_by_name($gi, $name)
+{
+}
+function geoip_country_code_by_name_v6($gi, $name)
+{
+}
+function geoip_country_code_by_name($gi, $name)
+{
+}
+function geoip_country_name_by_name_v6($gi, $name)
+{
+}
+function geoip_country_name_by_name($gi, $name)
+{
+}
+function geoip_country_id_by_addr_v6($gi, $addr)
+{
+}
+function geoip_country_id_by_addr($gi, $addr)
+{
+}
+/**
+ * @return string|false
+ */
+function geoip_country_code_by_addr_v6($gi, $addr)
+{
+}
+/**
+ * @param GeoIP $gi
+ * @return string|false
+ */
+function geoip_country_code_by_addr($gi, $addr)
+{
+}
+/**
+ * @param GeoIP $gi
+ * @return string|false
+ */
+function geoip_country_name_by_addr_v6($gi, $addr)
+{
+}
+/**
+ * @param GeoIP $gi
+ * @return string|false
+ */
+function geoip_country_name_by_addr($gi, $addr)
+{
+}
+function _geoip_seek_country_v6($gi, $ipnum)
+{
+}
+function _geoip_seek_country($gi, $ipnum)
+{
+}
+function _common_get_org($gi, $seek_org)
+{
+}
+function _get_org_v6($gi, $ipnum)
+{
+}
+function _get_org($gi, $ipnum)
+{
+}
+function geoip_name_by_addr_v6($gi, $addr)
+{
+}
+function geoip_name_by_addr($gi, $addr)
+{
+}
+function geoip_org_by_addr($gi, $addr)
+{
+}
+function _get_region($gi, $ipnum)
+{
+}
+function geoip_region_by_addr($gi, $addr)
+{
+}
+function _safe_substr($string, $start, $length)
+{
+}
diff --git a/dev/tools/phan/stubs/imagick.phan_php b/dev/tools/phan/stubs/imagick.phan_php
new file mode 100644
index 0000000000000..e9bb9db450a49
--- /dev/null
+++ b/dev/tools/phan/stubs/imagick.phan_php
@@ -0,0 +1,1216 @@
+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ * or see http://www.gnu.org/
+ */
+/**
+ * \file htdocs/core/modules/substitutions/functions_numberwords.lib.php
+ * \brief A set of functions for Dolibarr
+ * This file contains functions for plugin numberwords.
+ */
+/**
+ * Function called to complete substitution array (before generating on ODT, or a personalized email)
+ * functions xxx_completesubstitutionarray are called by make_substitutions() if file
+ * is inside directory htdocs/core/substitutions
+ *
+ * @param array $substitutionarray Array with substitution key=>val
+ * @param Translate $outlangs Output langs
+ * @param Object $object Object to use to get values
+ * @return void The entry parameter $substitutionarray is modified
+ */
+function numberwords_completesubstitutionarray(&$substitutionarray, $outlangs, $object)
+{
+}
+/**
+ * Return full text translated to language label for a key. Store key-label in a cache.
+ *
+ * @param Translate $outlangs Language for output
+ * @param int $number Number to encode in full text
+ * @param string $isamount ''=it's just a number, '1'=It's an amount (default currency), 'currencycode'=It's an amount (foreign currency)
+ * @return string Label translated in UTF8 (but without entities)
+ * 10 if setDefaultLang was en_US => ten
+ * 123 if setDefaultLang was fr_FR => cent vingt trois
+ */
+function numberwords_getLabelFromNumber($outlangs, $number, $isamount = '')
+{
+}
diff --git a/dev/tools/phan/stubs/multicompany.php b/dev/tools/phan/stubs/multicompany.php
new file mode 100644
index 0000000000000..0f2ba3b4e749a
--- /dev/null
+++ b/dev/tools/phan/stubs/multicompany.php
@@ -0,0 +1,93 @@
+
+ *
+ * Note: in this context Entity == Company.
+ */
+class ActionsMulticompany
+{
+ /**
+ * @param DoliDB $db
+ */
+ public function __construct($db)
+ {
+ }
+ /** @var string */
+ public $id;
+ /** @var string */
+ public $label;
+ /** @var array{stock:string[],referent:string} */
+ public $sharings;
+ /** @var DoliDB */
+ public $db;
+
+ /**
+ * @param string $login
+ * @param bool $bool1
+ * @param bool $bool2
+ * @return array
+ */
+ public function getEntitiesList($login = '', $bool1 = false, $bool2 = false)
+ {
+ }
+
+ /**
+ * @param string $entity
+ * @return void
+ */
+ public function getInfo($entity)
+ {
+ }
+
+ /**
+ * @param int $id
+ * @param string $key
+ * @param string $param_str
+ * @param bool $bool1
+ * @param bool $bool2
+ * @param bool $bool3
+ * @param bool $bool4
+ * @param bool $bool5
+ * @return string */
+ public function select_entities($id, $key = '', $param_str = '', $bool1 = false, $bool2 = false, $bool3 = false, $bool4 = false, $bool5 = false)
+ {
+ }
+
+ /**
+ * @param Conf $conf
+ * @return void
+ */
+ public function setValues($conf)
+ {
+ }
+ /**
+ * @param string $element
+ * @param int<0,1> $shared
+ * @param ?CommonObject $currentobject
+ * @return string
+ */
+ public function getEntity($element, $shared = 1, $currentobject = 0)
+ {
+ }
+ /**
+ * @param CommonObject $currentobject
+ * @return int
+ */
+ public function setEntity($currentobject)
+ {
+ }
+ /**
+ * @param int $entityid
+ * @return int<-1,0>
+ */
+ public function switchEntity($entityid)
+ {
+ }
+ /**
+ * @param int $id
+ * @param string $entitytotest
+ * @return int
+ */
+ public function checkRight($id, $entitytotest)
+ {
+ }
+}
diff --git a/dev/tools/phan/stubs/mysqli.phan_php b/dev/tools/phan/stubs/mysqli.phan_php
new file mode 100644
index 0000000000000..d116d5004bfe4
--- /dev/null
+++ b/dev/tools/phan/stubs/mysqli.phan_php
@@ -0,0 +1,397 @@
+
+ * @author Tomas V.V. Cox
+ * @author Cipriano Groenendal
+ * @author Sean Coates
+ * @copyright 2003-2006 PEAR
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD License
+ * @version Release: @package_version@
+ * @link http://pear.php.net/package/Mail_mime
+ */
+class Mail_mime
+{
+ /**
+ * Contains the plain text part of the email
+ *
+ * @var string
+ * @access private
+ */
+ public $_txtbody;
+ /**
+ * Contains the html part of the email
+ *
+ * @var string
+ * @access private
+ */
+ public $_htmlbody;
+ /**
+ * list of the attached images
+ *
+ * @var array
+ * @access private
+ */
+ public $_html_images = array();
+ /**
+ * list of the attachements
+ *
+ * @var array
+ * @access private
+ */
+ public $_parts = array();
+ /**
+ * Headers for the mail
+ *
+ * @var array
+ * @access private
+ */
+ public $_headers = array();
+ /**
+ * Build parameters
+ *
+ * @var array
+ * @access private
+ */
+ public $_build_params = array(
+ // What encoding to use for the headers
+ // Options: quoted-printable or base64
+ 'head_encoding' => 'quoted-printable',
+ // What encoding to use for plain text
+ // Options: 7bit, 8bit, base64, or quoted-printable
+ 'text_encoding' => 'quoted-printable',
+ // What encoding to use for html
+ // Options: 7bit, 8bit, base64, or quoted-printable
+ 'html_encoding' => 'quoted-printable',
+ // The character set to use for html
+ 'html_charset' => 'ISO-8859-1',
+ // The character set to use for text
+ 'text_charset' => 'ISO-8859-1',
+ // The character set to use for headers
+ 'head_charset' => 'ISO-8859-1',
+ // End-of-line sequence
+ 'eol' => "\r\n",
+ // Delay attachment files IO until building the message
+ 'delay_file_io' => \false,
+ );
+ /**
+ * Constructor function
+ *
+ * @param mixed $params Build parameters that change the way the email
+ * is built. Should be an associative array.
+ * See $_build_params.
+ *
+ * @return void
+ * @access public
+ */
+ public function Mail_mime($params = array())
+ {
+ }
+ /**
+ * Set build parameter value
+ *
+ * @param string $name Parameter name
+ * @param string $value Parameter value
+ *
+ * @return void
+ * @access public
+ * @since 1.6.0
+ */
+ public function setParam($name, $value)
+ {
+ }
+ /**
+ * Get build parameter value
+ *
+ * @param string $name Parameter name
+ *
+ * @return mixed Parameter value
+ * @access public
+ * @since 1.6.0
+ */
+ public function getParam($name)
+ {
+ }
+ /**
+ * Accessor function to set the body text. Body text is used if
+ * it's not an html mail being sent or else is used to fill the
+ * text/plain part that emails clients who don't support
+ * html should show.
+ *
+ * @param string $data Either a string or
+ * the file name with the contents
+ * @param bool $isfile If true the first param should be treated
+ * as a file name, else as a string (default)
+ * @param bool $append If true the text or file is appended to
+ * the existing body, else the old body is
+ * overwritten
+ *
+ * @return mixed True on success or PEAR_Error object
+ * @access public
+ */
+ public function setTXTBody($data, $isfile = \false, $append = \false)
+ {
+ }
+ /**
+ * Get message text body
+ *
+ * @return string Text body
+ * @access public
+ * @since 1.6.0
+ */
+ public function getTXTBody()
+ {
+ }
+ /**
+ * Adds a html part to the mail.
+ *
+ * @param string $data Either a string or the file name with the
+ * contents
+ * @param bool $isfile A flag that determines whether $data is a
+ * filename, or a string(false, default)
+ *
+ * @return bool True on success
+ * @access public
+ */
+ public function setHTMLBody($data, $isfile = \false)
+ {
+ }
+ /**
+ * Get message HTML body
+ *
+ * @return string HTML body
+ * @access public
+ * @since 1.6.0
+ */
+ public function getHTMLBody()
+ {
+ }
+ /**
+ * Adds an image to the list of embedded images.
+ *
+ * @param string $file The image file name OR image data itself
+ * @param string $c_type The content type
+ * @param string $name The filename of the image.
+ * Only used if $file is the image data.
+ * @param bool $isfile Whether $file is a filename or not.
+ * Defaults to true
+ * @param string $content_id Desired Content-ID of MIME part
+ * Defaults to generated unique ID
+ *
+ * @return bool True on success
+ * @access public
+ */
+ public function addHTMLImage($file, $c_type = 'application/octet-stream', $name = '', $isfile = \true, $content_id = \null)
+ {
+ }
+ /**
+ * Adds a file to the list of attachments.
+ *
+ * @param string $file The file name of the file to attach
+ * or the file contents itself
+ * @param string $c_type The content type
+ * @param string $name The filename of the attachment
+ * Only use if $file is the contents
+ * @param bool $isfile Whether $file is a filename or not. Defaults to true
+ * @param string $encoding The type of encoding to use. Defaults to base64.
+ * Possible values: 7bit, 8bit, base64 or quoted-printable.
+ * @param string $disposition The content-disposition of this file
+ * Defaults to attachment.
+ * Possible values: attachment, inline.
+ * @param string $charset The character set of attachment's content.
+ * @param string $language The language of the attachment
+ * @param string $location The RFC 2557.4 location of the attachment
+ * @param string $n_encoding Encoding of the attachment's name in Content-Type
+ * By default filenames are encoded using RFC2231 method
+ * Here you can set RFC2047 encoding (quoted-printable
+ * or base64) instead
+ * @param string $f_encoding Encoding of the attachment's filename
+ * in Content-Disposition header.
+ * @param string $description Content-Description header
+ * @param string $h_charset The character set of the headers e.g. filename
+ * If not specified, $charset will be used
+ * @param array $add_headers Additional part headers. Array keys can be in form
+ * of :
+ *
+ * @return mixed True on success or PEAR_Error object
+ * @access public
+ */
+ public function addAttachment($file, $c_type = 'application/octet-stream', $name = '', $isfile = \true, $encoding = 'base64', $disposition = 'attachment', $charset = '', $language = '', $location = '', $n_encoding = \null, $f_encoding = \null, $description = '', $h_charset = \null, $add_headers = array())
+ {
+ }
+ /**
+ * Get the contents of the given file name as string
+ *
+ * @param string $file_name Path of file to process
+ *
+ * @return string Contents of $file_name
+ * @access private
+ */
+ public function _file2str($file_name)
+ {
+ }
+ /**
+ * Adds a text subpart to the mimePart object and
+ * returns it during the build process.
+ *
+ * @param mixed &$obj The object to add the part to, or
+ * anything else if a new object is to be created.
+ * @param string $text The text to add.
+ *
+ * @return object The text mimePart object
+ * @access private
+ */
+ public function &_addTextPart(&$obj, $text = '')
+ {
+ }
+ /**
+ * Adds a html subpart to the mimePart object and
+ * returns it during the build process.
+ *
+ * @param mixed &$obj The object to add the part to, or
+ * anything else if a new object is to be created.
+ *
+ * @return object The html mimePart object
+ * @access private
+ */
+ public function &_addHtmlPart(&$obj)
+ {
+ }
+ /**
+ * Creates a new mimePart object, using multipart/mixed as
+ * the initial content-type and returns it during the
+ * build process.
+ *
+ * @return object The multipart/mixed mimePart object
+ * @access private
+ */
+ public function &_addMixedPart()
+ {
+ }
+ /**
+ * Adds a multipart/alternative part to a mimePart
+ * object (or creates one), and returns it during
+ * the build process.
+ *
+ * @param mixed &$obj The object to add the part to, or
+ * anything else if a new object is to be created.
+ *
+ * @return object The multipart/mixed mimePart object
+ * @access private
+ */
+ public function &_addAlternativePart(&$obj)
+ {
+ }
+ /**
+ * Adds a multipart/related part to a mimePart
+ * object (or creates one), and returns it during
+ * the build process.
+ *
+ * @param mixed &$obj The object to add the part to, or
+ * anything else if a new object is to be created
+ *
+ * @return object The multipart/mixed mimePart object
+ * @access private
+ */
+ public function &_addRelatedPart(&$obj)
+ {
+ }
+ /**
+ * Adds an html image subpart to a mimePart object
+ * and returns it during the build process.
+ *
+ * @param object &$obj The mimePart to add the image to
+ * @param array $value The image information
+ *
+ * @return object The image mimePart object
+ * @access private
+ */
+ public function &_addHtmlImagePart(&$obj, $value)
+ {
+ }
+ /**
+ * Adds an attachment subpart to a mimePart object
+ * and returns it during the build process.
+ *
+ * @param object &$obj The mimePart to add the image to
+ * @param array $value The attachment information
+ *
+ * @return object The image mimePart object
+ * @access private
+ */
+ public function &_addAttachmentPart(&$obj, $value)
+ {
+ }
+ /**
+ * Returns the complete e-mail, ready to send using an alternative
+ * mail delivery method. Note that only the mailpart that is made
+ * with Mail_Mime is created. This means that,
+ * YOU WILL HAVE NO TO: HEADERS UNLESS YOU SET IT YOURSELF
+ * using the $headers parameter!
+ *
+ * @param string $separation The separation between these two parts.
+ * @param array $params The Build parameters passed to the
+ * get() function. See get() for more info.
+ * @param array $headers The extra headers that should be passed
+ * to the headers() method.
+ * See that function for more info.
+ * @param bool $overwrite Overwrite the existing headers with new.
+ *
+ * @return mixed The complete e-mail or PEAR error object
+ * @access public
+ */
+ public function getMessage($separation = \null, $params = \null, $headers = \null, $overwrite = \false)
+ {
+ }
+ /**
+ * Returns the complete e-mail body, ready to send using an alternative
+ * mail delivery method.
+ *
+ * @param array $params The Build parameters passed to the
+ * get() method. See get() for more info.
+ *
+ * @return mixed The e-mail body or PEAR error object
+ * @access public
+ * @since 1.6.0
+ */
+ public function getMessageBody($params = \null)
+ {
+ }
+ /**
+ * Writes (appends) the complete e-mail into file.
+ *
+ * @param string $filename Output file location
+ * @param array $params The Build parameters passed to the
+ * get() method. See get() for more info.
+ * @param array $headers The extra headers that should be passed
+ * to the headers() function.
+ * See that function for more info.
+ * @param bool $overwrite Overwrite the existing headers with new.
+ *
+ * @return mixed True or PEAR error object
+ * @access public
+ * @since 1.6.0
+ */
+ public function saveMessage($filename, $params = \null, $headers = \null, $overwrite = \false)
+ {
+ }
+ /**
+ * Writes (appends) the complete e-mail body into file.
+ *
+ * @param string $filename Output file location
+ * @param array $params The Build parameters passed to the
+ * get() method. See get() for more info.
+ *
+ * @return mixed True or PEAR error object
+ * @access public
+ * @since 1.6.0
+ */
+ public function saveMessageBody($filename, $params = \null)
+ {
+ }
+ /**
+ * Builds the multipart message from the list ($this->_parts) and
+ * returns the mime content.
+ *
+ * @param array $params Build parameters that change the way the email
+ * is built. Should be associative. See $_build_params.
+ * @param resource $filename Output file where to save the message instead of
+ * returning it
+ * @param boolean $skip_head True if you want to return/save only the message
+ * without headers
+ *
+ * @return mixed The MIME message content string, null or PEAR error object
+ * @access public
+ */
+ public function get($params = \null, $filename = \null, $skip_head = \false)
+ {
+ }
+ /**
+ * Returns an array with the headers needed to prepend to the email
+ * (MIME-Version and Content-Type). Format of argument is:
+ * $array['header-name'] = 'header-value';
+ *
+ * @param array $xtra_headers Assoc array with any extra headers (optional)
+ * (Don't set Content-Type for multipart messages here!)
+ * @param bool $overwrite Overwrite already existing headers.
+ * @param bool $skip_content Don't return content headers: Content-Type,
+ * Content-Disposition and Content-Transfer-Encoding
+ *
+ * @return array Assoc array with the mime headers
+ * @access public
+ */
+ public function headers($xtra_headers = \null, $overwrite = \false, $skip_content = \false)
+ {
+ }
+ /**
+ * Get the text version of the headers
+ * (usefull if you want to use the PHP mail() function)
+ *
+ * @param array $xtra_headers Assoc array with any extra headers (optional)
+ * (Don't set Content-Type for multipart messages here!)
+ * @param bool $overwrite Overwrite the existing headers with new.
+ * @param bool $skip_content Don't return content headers: Content-Type,
+ * Content-Disposition and Content-Transfer-Encoding
+ *
+ * @return string Plain text headers
+ * @access public
+ */
+ public function txtHeaders($xtra_headers = \null, $overwrite = \false, $skip_content = \false)
+ {
+ }
+ /**
+ * Sets message Content-Type header.
+ * Use it to build messages with various content-types e.g. miltipart/raport
+ * not supported by _contentHeaders() function.
+ *
+ * @param string $type Type name
+ * @param array $params Hash array of header parameters
+ *
+ * @return void
+ * @access public
+ * @since 1.7.0
+ */
+ public function setContentType($type, $params = array())
+ {
+ }
+ /**
+ * Sets the Subject header
+ *
+ * @param string $subject String to set the subject to.
+ *
+ * @return void
+ * @access public
+ */
+ public function setSubject($subject)
+ {
+ }
+ /**
+ * Set an email to the From (the sender) header
+ *
+ * @param string $email The email address to use
+ *
+ * @return void
+ * @access public
+ */
+ public function setFrom($email)
+ {
+ }
+ /**
+ * Add an email to the To header
+ * (multiple calls to this method are allowed)
+ *
+ * @param string $email The email direction to add
+ *
+ * @return void
+ * @access public
+ */
+ public function addTo($email)
+ {
+ }
+ /**
+ * Add an email to the Cc (carbon copy) header
+ * (multiple calls to this method are allowed)
+ *
+ * @param string $email The email direction to add
+ *
+ * @return void
+ * @access public
+ */
+ public function addCc($email)
+ {
+ }
+ /**
+ * Add an email to the Bcc (blank carbon copy) header
+ * (multiple calls to this method are allowed)
+ *
+ * @param string $email The email direction to add
+ *
+ * @return void
+ * @access public
+ */
+ public function addBcc($email)
+ {
+ }
+ /**
+ * Since the PHP send function requires you to specify
+ * recipients (To: header) separately from the other
+ * headers, the To: header is not properly encoded.
+ * To fix this, you can use this public method to
+ * encode your recipients before sending to the send
+ * function
+ *
+ * @param string $recipients A comma-delimited list of recipients
+ *
+ * @return string Encoded data
+ * @access public
+ */
+ public function encodeRecipients($recipients)
+ {
+ }
+ /**
+ * Encodes headers as per RFC2047
+ *
+ * @param array $input The header data to encode
+ * @param array $params Extra build parameters
+ *
+ * @return array Encoded data
+ * @access private
+ */
+ public function _encodeHeaders($input, $params = array())
+ {
+ }
+ /**
+ * Encodes a header as per RFC2047
+ *
+ * @param string $name The header name
+ * @param string $value The header data to encode
+ * @param string $charset Character set name
+ * @param string $encoding Encoding name (base64 or quoted-printable)
+ *
+ * @return string Encoded header data (without a name)
+ * @access public
+ * @since 1.5.3
+ */
+ public function encodeHeader($name, $value, $charset, $encoding)
+ {
+ }
+ /**
+ * Get file's basename (locale independent)
+ *
+ * @param string $filename Filename
+ *
+ * @return string Basename
+ * @access private
+ */
+ public function _basename($filename)
+ {
+ }
+ /**
+ * Get Content-Type and Content-Transfer-Encoding headers of the message
+ *
+ * @return array Headers array
+ * @access private
+ */
+ public function _contentHeaders()
+ {
+ }
+ /**
+ * Validate and set build parameters
+ *
+ * @return void
+ * @access private
+ */
+ public function _checkParams()
+ {
+ }
+ /**
+ * PEAR::isError implementation
+ *
+ * @param mixed $data Object
+ *
+ * @return bool True if object is an instance of PEAR_Error
+ * @access private
+ */
+ public function _isError($data)
+ {
+ }
+ /**
+ * PEAR::raiseError implementation
+ *
+ * @param $message A text error message
+ *
+ * @return PEAR_Error Instance of PEAR_Error
+ * @access private
+ */
+ public function _raiseError($message)
+ {
+ }
+}
+/**
+ * The Mail_mimePart class is used to create MIME E-mail messages
+ *
+ * This class enables you to manipulate and build a mime email
+ * from the ground up. The Mail_Mime class is a userfriendly api
+ * to this class for people who aren't interested in the internals
+ * of mime mail.
+ * This class however allows full control over the email.
+ *
+ * Compatible with PHP versions 4 and 5
+ *
+ * LICENSE: This LICENSE is in the BSD license style.
+ * Copyright (c) 2002-2003, Richard Heyes
+ * Copyright (c) 2003-2006, PEAR
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or
+ * without modification, are permitted provided that the following
+ * conditions are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * - Neither the name of the authors, nor the names of its contributors
+ * may be used to endorse or promote products derived from this
+ * software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * @category Mail
+ * @package Mail_Mime
+ * @author Richard Heyes
+ * @author Cipriano Groenendal
+ * @author Sean Coates
+ * @author Aleksander Machniak
+ * @copyright 2003-2006 PEAR
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD License
+ * @version CVS: $Id$
+ * @link http://pear.php.net/package/Mail_mime
+ */
+/**
+ * The Mail_mimePart class is used to create MIME E-mail messages
+ *
+ * This class enables you to manipulate and build a mime email
+ * from the ground up. The Mail_Mime class is a userfriendly api
+ * to this class for people who aren't interested in the internals
+ * of mime mail.
+ * This class however allows full control over the email.
+ *
+ * @category Mail
+ * @package Mail_Mime
+ * @author Richard Heyes
+ * @author Cipriano Groenendal
+ * @author Sean Coates
+ * @author Aleksander Machniak
+ * @copyright 2003-2006 PEAR
+ * @license http://www.opensource.org/licenses/bsd-license.php BSD License
+ * @version Release: @package_version@
+ * @link http://pear.php.net/package/Mail_mime
+ */
+class Mail_mimePart
+{
+ /**
+ * The encoding type of this part
+ *
+ * @var string
+ * @access private
+ */
+ public $_encoding;
+ /**
+ * An array of subparts
+ *
+ * @var array
+ * @access private
+ */
+ public $_subparts;
+ /**
+ * The output of this part after being built
+ *
+ * @var string
+ * @access private
+ */
+ public $_encoded;
+ /**
+ * Headers for this part
+ *
+ * @var array
+ * @access private
+ */
+ public $_headers;
+ /**
+ * The body of this part (not encoded)
+ *
+ * @var string
+ * @access private
+ */
+ public $_body;
+ /**
+ * The location of file with body of this part (not encoded)
+ *
+ * @var string
+ * @access private
+ */
+ public $_body_file;
+ /**
+ * The end-of-line sequence
+ *
+ * @var string
+ * @access private
+ */
+ public $_eol = "\r\n";
+ /**
+ * Constructor.
+ *
+ * Sets up the object.
+ *
+ * @param string $body The body of the mime part if any.
+ * @param array $params An associative array of optional parameters:
+ * content_type - The content type for this part eg multipart/mixed
+ * encoding - The encoding to use, 7bit, 8bit,
+ * base64, or quoted-printable
+ * charset - Content character set
+ * cid - Content ID to apply
+ * disposition - Content disposition, inline or attachment
+ * filename - Filename parameter for content disposition
+ * description - Content description
+ * name_encoding - Encoding of the attachment name (Content-Type)
+ * By default filenames are encoded using RFC2231
+ * Here you can set RFC2047 encoding (quoted-printable
+ * or base64) instead
+ * filename_encoding - Encoding of the attachment filename (Content-Disposition)
+ * See 'name_encoding'
+ * headers_charset - Charset of the headers e.g. filename, description.
+ * If not set, 'charset' will be used
+ * eol - End of line sequence. Default: "\r\n"
+ * headers - Hash array with additional part headers. Array keys can be
+ * in form of :
+ * body_file - Location of file with part's body (instead of $body)
+ *
+ * @access public
+ */
+ public function Mail_mimePart($body = '', $params = array())
+ {
+ }
+ /**
+ * Encodes and returns the email. Also stores
+ * it in the encoded member variable
+ *
+ * @param string $boundary Pre-defined boundary string
+ *
+ * @return An associative array containing two elements,
+ * body and headers. The headers element is itself
+ * an indexed array. On error returns PEAR error object.
+ * @access public
+ */
+ public function encode($boundary = \null)
+ {
+ }
+ /**
+ * Encodes and saves the email into file. File must exist.
+ * Data will be appended to the file.
+ *
+ * @param string $filename Output file location
+ * @param string $boundary Pre-defined boundary string
+ * @param boolean $skip_head True if you don't want to save headers
+ *
+ * @return array An associative array containing message headers
+ * or PEAR error object
+ * @access public
+ * @since 1.6.0
+ */
+ public function encodeToFile($filename, $boundary = \null, $skip_head = \false)
+ {
+ }
+ /**
+ * Encodes given email part into file
+ *
+ * @param string $fh Output file handle
+ * @param string $boundary Pre-defined boundary string
+ * @param boolean $skip_head True if you don't want to save headers
+ *
+ * @return array True on sucess or PEAR error object
+ * @access private
+ */
+ public function _encodePartToFile($fh, $boundary = \null, $skip_head = \false)
+ {
+ }
+ /**
+ * Adds a subpart to current mime part and returns
+ * a reference to it
+ *
+ * @param string $body The body of the subpart, if any.
+ * @param array $params The parameters for the subpart, same
+ * as the $params argument for constructor.
+ *
+ * @return Mail_mimePart A reference to the part you just added. In PHP4, it is
+ * crucial if using multipart/* in your subparts that
+ * you use =& in your script when calling this function,
+ * otherwise you will not be able to add further subparts.
+ * @access public
+ */
+ public function &addSubpart($body, $params)
+ {
+ }
+ /**
+ * Returns encoded data based upon encoding passed to it
+ *
+ * @param string $data The data to encode.
+ * @param string $encoding The encoding type to use, 7bit, base64,
+ * or quoted-printable.
+ *
+ * @return string
+ * @access private
+ */
+ public function _getEncodedData($data, $encoding)
+ {
+ }
+ /**
+ * Returns encoded data based upon encoding passed to it
+ *
+ * @param string $filename Data file location
+ * @param string $encoding The encoding type to use, 7bit, base64,
+ * or quoted-printable.
+ * @param resource $fh Output file handle. If set, data will be
+ * stored into it instead of returning it
+ *
+ * @return string Encoded data or PEAR error object
+ * @access private
+ */
+ public function _getEncodedDataFromFile($filename, $encoding, $fh = \null)
+ {
+ }
+ /**
+ * Encodes data to quoted-printable standard.
+ *
+ * @param string $input The data to encode
+ * @param int $line_max Optional max line length. Should
+ * not be more than 76 chars
+ *
+ * @return string Encoded data
+ *
+ * @access private
+ */
+ public function _quotedPrintableEncode($input, $line_max = 76)
+ {
+ }
+ /**
+ * Encodes the parameter of a header.
+ *
+ * @param string $name The name of the header-parameter
+ * @param string $value The value of the paramter
+ * @param string $charset The characterset of $value
+ * @param string $language The language used in $value
+ * @param string $encoding Parameter encoding. If not set, parameter value
+ * is encoded according to RFC2231
+ * @param int $maxLength The maximum length of a line. Defauls to 75
+ *
+ * @return string
+ *
+ * @access private
+ */
+ public function _buildHeaderParam($name, $value, $charset = \null, $language = \null, $encoding = \null, $maxLength = 75)
+ {
+ }
+ /**
+ * Encodes header parameter as per RFC2047 if needed
+ *
+ * @param string $name The parameter name
+ * @param string $value The parameter value
+ * @param string $charset The parameter charset
+ * @param string $encoding Encoding type (quoted-printable or base64)
+ * @param int $maxLength Encoded parameter max length. Default: 76
+ *
+ * @return string Parameter line
+ * @access private
+ */
+ public function _buildRFC2047Param($name, $value, $charset, $encoding = 'quoted-printable', $maxLength = 76)
+ {
+ }
+ /**
+ * Encodes a header as per RFC2047
+ *
+ * @param string $name The header name
+ * @param string $value The header data to encode
+ * @param string $charset Character set name
+ * @param string $encoding Encoding name (base64 or quoted-printable)
+ * @param string $eol End-of-line sequence. Default: "\r\n"
+ *
+ * @return string Encoded header data (without a name)
+ * @access public
+ * @since 1.6.1
+ */
+ public function encodeHeader($name, $value, $charset = 'ISO-8859-1', $encoding = 'quoted-printable', $eol = "\r\n")
+ {
+ }
+ /**
+ * Explode quoted string
+ *
+ * @param string $delimiter Delimiter expression string for preg_match()
+ * @param string $string Input string
+ *
+ * @return array String tokens array
+ * @access private
+ */
+ public function _explodeQuotedString($delimiter, $string)
+ {
+ }
+ /**
+ * Encodes a header value as per RFC2047
+ *
+ * @param string $value The header data to encode
+ * @param string $charset Character set name
+ * @param string $encoding Encoding name (base64 or quoted-printable)
+ * @param int $prefix_len Prefix length. Default: 0
+ * @param string $eol End-of-line sequence. Default: "\r\n"
+ *
+ * @return string Encoded header data
+ * @access public
+ * @since 1.6.1
+ */
+ public function encodeHeaderValue($value, $charset, $encoding, $prefix_len = 0, $eol = "\r\n")
+ {
+ }
+ /**
+ * Encodes the given string using quoted-printable
+ *
+ * @param string $str String to encode
+ *
+ * @return string Encoded string
+ * @access public
+ * @since 1.6.0
+ */
+ public function encodeQP($str)
+ {
+ }
+ /**
+ * Encodes the given string using base64 or quoted-printable.
+ * This method makes sure that encoded-word represents an integral
+ * number of characters as per RFC2047.
+ *
+ * @param string $str String to encode
+ * @param string $charset Character set name
+ * @param string $encoding Encoding name (base64 or quoted-printable)
+ * @param int $prefix_len Prefix length. Default: 0
+ * @param string $eol End-of-line sequence. Default: "\r\n"
+ *
+ * @return string Encoded string
+ * @access public
+ * @since 1.8.0
+ */
+ public function encodeMB($str, $charset, $encoding, $prefix_len = 0, $eol = "\r\n")
+ {
+ }
+ /**
+ * Callback function to replace extended characters (\x80-xFF) with their
+ * ASCII values (RFC2047: quoted-printable)
+ *
+ * @param array $matches Preg_replace's matches array
+ *
+ * @return string Encoded character string
+ * @access private
+ */
+ public function _qpReplaceCallback($matches)
+ {
+ }
+ /**
+ * Callback function to replace extended characters (\x80-xFF) with their
+ * ASCII values (RFC2231)
+ *
+ * @param array $matches Preg_replace's matches array
+ *
+ * @return string Encoded character string
+ * @access private
+ */
+ public function _encodeReplaceCallback($matches)
+ {
+ }
+ /**
+ * PEAR::isError implementation
+ *
+ * @param mixed $data Object
+ *
+ * @return bool True if object is an instance of PEAR_Error
+ * @access private
+ */
+ public function _isError($data)
+ {
+ }
+ /**
+ * PEAR::raiseError implementation
+ *
+ * @param $message A text error message
+ *
+ * @return PEAR_Error Instance of PEAR_Error
+ * @access private
+ */
+ public function _raiseError($message)
+ {
+ }
+}
+/**
+ *
+ * nusoap_base
+ *
+ * @author Dietrich Ayala
+ * @author Scott Nichol
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class nusoap_base
+{
+ /**
+ * Identification for HTTP headers.
+ *
+ * @var string
+ * @access private
+ */
+ public $title = 'NuSOAP';
+ /**
+ * Version for HTTP headers.
+ *
+ * @var string
+ * @access private
+ */
+ public $version = '0.9.11';
+ /**
+ * CVS revision for HTTP headers.
+ *
+ * @var string
+ * @access private
+ */
+ public $revision = '$Revision: 1.123 $';
+ /**
+ * Current error string (manipulated by getError/setError)
+ *
+ * @var string
+ * @access private
+ */
+ public $error_str = '';
+ /**
+ * Current debug string (manipulated by debug/appendDebug/clearDebug/getDebug/getDebugAsXMLComment)
+ *
+ * @var string
+ * @access private
+ */
+ public $debug_str = '';
+ /**
+ * toggles automatic encoding of special characters as entities
+ * (should always be true, I think)
+ *
+ * @var boolean
+ * @access private
+ */
+ public $charencoding = \true;
+ /**
+ * the debug level for this instance
+ *
+ * @var integer
+ * @access private
+ */
+ public $debugLevel;
+ /**
+ * set schema version
+ *
+ * @var string
+ * @access public
+ */
+ public $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema';
+ /**
+ * charset encoding for outgoing messages
+ *
+ * @var string
+ * @access public
+ */
+ public $soap_defencoding = 'ISO-8859-1';
+ //var $soap_defencoding = 'UTF-8';
+ /**
+ * namespaces in an array of prefix => uri
+ *
+ * this is "seeded" by a set of constants, but it may be altered by code
+ *
+ * @var array
+ * @access public
+ */
+ public $namespaces = array('SOAP-ENV' => 'http://schemas.xmlsoap.org/soap/envelope/', 'xsd' => 'http://www.w3.org/2001/XMLSchema', 'xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'SOAP-ENC' => 'http://schemas.xmlsoap.org/soap/encoding/');
+ /**
+ * namespaces used in the current context, e.g. during serialization
+ *
+ * @var array
+ * @access private
+ */
+ public $usedNamespaces = array();
+ /**
+ * XML Schema types in an array of uri => (array of xml type => php type)
+ * is this legacy yet?
+ * no, this is used by the nusoap_xmlschema class to verify type => namespace mappings.
+ *
+ * @var array
+ * @access public
+ */
+ public $typemap = array('http://www.w3.org/2001/XMLSchema' => array(
+ 'string' => 'string',
+ 'boolean' => 'boolean',
+ 'float' => 'double',
+ 'double' => 'double',
+ 'decimal' => 'double',
+ 'duration' => '',
+ 'dateTime' => 'string',
+ 'time' => 'string',
+ 'date' => 'string',
+ 'gYearMonth' => '',
+ 'gYear' => '',
+ 'gMonthDay' => '',
+ 'gDay' => '',
+ 'gMonth' => '',
+ 'hexBinary' => 'string',
+ 'base64Binary' => 'string',
+ // abstract "any" types
+ 'anyType' => 'string',
+ 'anySimpleType' => 'string',
+ // derived datatypes
+ 'normalizedString' => 'string',
+ 'token' => 'string',
+ 'language' => '',
+ 'NMTOKEN' => '',
+ 'NMTOKENS' => '',
+ 'Name' => '',
+ 'NCName' => '',
+ 'ID' => '',
+ 'IDREF' => '',
+ 'IDREFS' => '',
+ 'ENTITY' => '',
+ 'ENTITIES' => '',
+ 'integer' => 'integer',
+ 'nonPositiveInteger' => 'integer',
+ 'negativeInteger' => 'integer',
+ 'long' => 'integer',
+ 'int' => 'integer',
+ 'short' => 'integer',
+ 'byte' => 'integer',
+ 'nonNegativeInteger' => 'integer',
+ 'unsignedLong' => '',
+ 'unsignedInt' => '',
+ 'unsignedShort' => '',
+ 'unsignedByte' => '',
+ 'positiveInteger' => '',
+ ), 'http://www.w3.org/2000/10/XMLSchema' => array('i4' => '', 'int' => 'integer', 'boolean' => 'boolean', 'string' => 'string', 'double' => 'double', 'float' => 'double', 'dateTime' => 'string', 'timeInstant' => 'string', 'base64Binary' => 'string', 'base64' => 'string', 'ur-type' => 'array'), 'http://www.w3.org/1999/XMLSchema' => array('i4' => '', 'int' => 'integer', 'boolean' => 'boolean', 'string' => 'string', 'double' => 'double', 'float' => 'double', 'dateTime' => 'string', 'timeInstant' => 'string', 'base64Binary' => 'string', 'base64' => 'string', 'ur-type' => 'array'), 'http://soapinterop.org/xsd' => array('SOAPStruct' => 'struct'), 'http://schemas.xmlsoap.org/soap/encoding/' => array('base64' => 'string', 'array' => 'array', 'Array' => 'array'), 'http://xml.apache.org/xml-soap' => array('Map'));
+ /**
+ * XML entities to convert
+ *
+ * @var array
+ * @access public
+ * @deprecated
+ * @see expandEntities
+ */
+ public $xmlEntities = array('quot' => '"', 'amp' => '&', 'lt' => '<', 'gt' => '>', 'apos' => "'");
+ /**
+ * HTTP Content-type to be used for SOAP calls and responses
+ *
+ * @var string
+ */
+ public $contentType = "text/xml";
+ /**
+ * constructor
+ *
+ * @access public
+ */
+ public function __construct()
+ {
+ }
+ /**
+ * gets the global debug level, which applies to future instances
+ *
+ * @return integer Debug level 0-9, where 0 turns off
+ * @access public
+ */
+ public function getGlobalDebugLevel()
+ {
+ }
+ /**
+ * sets the global debug level, which applies to future instances
+ *
+ * @param int $level Debug level 0-9, where 0 turns off
+ * @access public
+ */
+ public function setGlobalDebugLevel($level)
+ {
+ }
+ /**
+ * gets the debug level for this instance
+ *
+ * @return int Debug level 0-9, where 0 turns off
+ * @access public
+ */
+ public function getDebugLevel()
+ {
+ }
+ /**
+ * sets the debug level for this instance
+ *
+ * @param int $level Debug level 0-9, where 0 turns off
+ * @access public
+ */
+ public function setDebugLevel($level)
+ {
+ }
+ /**
+ * adds debug data to the instance debug string with formatting
+ *
+ * @param string $string debug data
+ * @access private
+ */
+ public function debug($string)
+ {
+ }
+ /**
+ * adds debug data to the instance debug string without formatting
+ *
+ * @param string $string debug data
+ * @access public
+ */
+ public function appendDebug($string)
+ {
+ }
+ /**
+ * clears the current debug data for this instance
+ *
+ * @access public
+ */
+ public function clearDebug()
+ {
+ }
+ /**
+ * gets the current debug data for this instance
+ *
+ * @return string data
+ * @access public
+ */
+ public function &getDebug()
+ {
+ }
+ /**
+ * gets the current debug data for this instance as an XML comment
+ * this may change the contents of the debug data
+ *
+ * @return string data as an XML comment
+ * @access public
+ */
+ public function &getDebugAsXMLComment()
+ {
+ }
+ /**
+ * expands entities, e.g. changes '<' to '<'.
+ *
+ * @param string $val The string in which to expand entities.
+ * @access private
+ */
+ public function expandEntities($val)
+ {
+ }
+ /**
+ * returns error string if present
+ *
+ * @return false|string error string or false
+ * @access public
+ */
+ public function getError()
+ {
+ }
+ /**
+ * sets error string
+ *
+ * @return void
+ * @access private
+ */
+ public function setError($str)
+ {
+ }
+ /**
+ * detect if array is a simple array or a struct (associative array)
+ *
+ * @param mixed $val The PHP array
+ * @return string (arraySimple|arrayStruct)
+ * @access private
+ */
+ public function isArraySimpleOrStruct($val)
+ {
+ }
+ /**
+ * serializes PHP values in accordance w/ section 5. Type information is
+ * not serialized if $use == 'literal'.
+ *
+ * @param mixed $val The value to serialize
+ * @param string $name The name (local part) of the XML element
+ * @param string $type The XML schema type (local part) for the element
+ * @param string $name_ns The namespace for the name of the XML element
+ * @param string $type_ns The namespace for the type of the element
+ * @param array $attributes The attributes to serialize as name=>value pairs
+ * @param string $use The WSDL "use" (encoded|literal)
+ * @param boolean $soapval Whether this is called from soapval.
+ * @return string The serialized element, possibly with child elements
+ * @access public
+ */
+ public function serialize_val($val, $name = \false, $type = \false, $name_ns = \false, $type_ns = \false, $attributes = \false, $use = 'encoded', $soapval = \false)
+ {
+ }
+ /**
+ * serializes a message
+ *
+ * @param string $body the XML of the SOAP body
+ * @param mixed $headers optional string of XML with SOAP header content, or array of soapval objects for SOAP headers, or associative array
+ * @param array $namespaces optional the namespaces used in generating the body and headers
+ * @param string $style optional (rpc|document)
+ * @param string $use optional (encoded|literal)
+ * @param string $encodingStyle optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded)
+ * @return string the message
+ * @access public
+ */
+ public function serializeEnvelope($body, $headers = \false, $namespaces = array(), $style = 'rpc', $use = 'encoded', $encodingStyle = 'http://schemas.xmlsoap.org/soap/encoding/')
+ {
+ }
+ /**
+ * formats a string to be inserted into an HTML stream
+ *
+ * @param string $str The string to format
+ * @return string The formatted string
+ * @access public
+ * @deprecated
+ */
+ public function formatDump($str)
+ {
+ }
+ /**
+ * contracts (changes namespace to prefix) a qualified name
+ *
+ * @param string $qname qname
+ * @return string contracted qname
+ * @access private
+ */
+ public function contractQname($qname)
+ {
+ }
+ /**
+ * expands (changes prefix to namespace) a qualified name
+ *
+ * @param string $qname qname
+ * @return string expanded qname
+ * @access private
+ */
+ public function expandQname($qname)
+ {
+ }
+ /**
+ * returns the local part of a prefixed string
+ * returns the original string, if not prefixed
+ *
+ * @param string $str The prefixed string
+ * @return string The local part
+ * @access public
+ */
+ public function getLocalPart($str)
+ {
+ }
+ /**
+ * returns the prefix part of a prefixed string
+ * returns false, if not prefixed
+ *
+ * @param string $str The prefixed string
+ * @return false|string The prefix or false if there is no prefix
+ * @access public
+ */
+ public function getPrefix($str)
+ {
+ }
+ /**
+ * pass it a prefix, it returns a namespace
+ *
+ * @param string $prefix The prefix
+ * @return mixed The namespace, false if no namespace has the specified prefix
+ * @access public
+ */
+ public function getNamespaceFromPrefix($prefix)
+ {
+ }
+ /**
+ * returns the prefix for a given namespace (or prefix)
+ * or false if no prefixes registered for the given namespace
+ *
+ * @param string $ns The namespace
+ * @return false|string The prefix, false if the namespace has no prefixes
+ * @access public
+ */
+ public function getPrefixFromNamespace($ns)
+ {
+ }
+ /**
+ * returns the time in ODBC canonical form with microseconds
+ *
+ * @return string The time in ODBC canonical form with microseconds
+ * @access public
+ */
+ public function getmicrotime()
+ {
+ }
+ /**
+ * Returns a string with the output of var_dump
+ *
+ * @param mixed $data The variable to var_dump
+ * @return string The output of var_dump
+ * @access public
+ */
+ public function varDump($data)
+ {
+ }
+ /**
+ * represents the object as a string
+ *
+ * @return string
+ * @access public
+ */
+ public function __toString()
+ {
+ }
+}
+/**
+ * Contains information for a SOAP fault.
+ * Mainly used for returning faults from deployed functions
+ * in a server instance.
+ *
+ * @author Dietrich Ayala
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class nusoap_fault extends \nusoap_base
+{
+ /**
+ * The fault code (client|server)
+ *
+ * @var string
+ * @access private
+ */
+ public $faultcode;
+ /**
+ * The fault actor
+ *
+ * @var string
+ * @access private
+ */
+ public $faultactor;
+ /**
+ * The fault string, a description of the fault
+ *
+ * @var string
+ * @access private
+ */
+ public $faultstring;
+ /**
+ * The fault detail, typically a string or array of string
+ *
+ * @var mixed
+ * @access private
+ */
+ public $faultdetail;
+ /**
+ * constructor
+ *
+ * @param string $faultcode (SOAP-ENV:Client | SOAP-ENV:Server)
+ * @param string $faultactor only used when msg routed between multiple actors
+ * @param string $faultstring human readable error message
+ * @param mixed $faultdetail detail, typically a string or array of string
+ */
+ public function __construct($faultcode, $faultactor = '', $faultstring = '', $faultdetail = '')
+ {
+ }
+ /**
+ * serialize a fault
+ *
+ * @return string The serialization of the fault instance.
+ * @access public
+ */
+ public function serialize()
+ {
+ }
+}
+/**
+ * Backward compatibility
+ */
+class soap_fault extends \nusoap_fault
+{
+}
+/**
+ * parses an XML Schema, allows access to it's data, other utility methods.
+ * imperfect, no validation... yet, but quite functional.
+ *
+ * @author Dietrich Ayala
+ * @author Scott Nichol
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class nusoap_xmlschema extends \nusoap_base
+{
+ // files
+ public $schema = '';
+ public $xml = '';
+ // namespaces
+ public $enclosingNamespaces;
+ // schema info
+ public $schemaInfo = array();
+ public $schemaTargetNamespace = '';
+ // types, elements, attributes defined by the schema
+ public $attributes = array();
+ public $complexTypes = array();
+ public $complexTypeStack = array();
+ public $currentComplexType = \null;
+ public $elements = array();
+ public $elementStack = array();
+ public $currentElement = \null;
+ public $simpleTypes = array();
+ public $simpleTypeStack = array();
+ public $currentSimpleType = \null;
+ // imports
+ public $imports = array();
+ // parser vars
+ public $parser;
+ public $position = 0;
+ public $depth = 0;
+ public $depth_array = array();
+ public $message = array();
+ public $defaultNamespace = array();
+ /**
+ * constructor
+ *
+ * @param string $schema schema document URI
+ * @param string $xml xml document URI
+ * @param string $namespaces namespaces defined in enclosing XML
+ * @access public
+ */
+ public function __construct($schema = '', $xml = '', $namespaces = array())
+ {
+ }
+ /**
+ * parse an XML file
+ *
+ * @param string $xml path/URL to XML file
+ * @param string $type (schema | xml)
+ * @return boolean
+ * @access public
+ */
+ public function parseFile($xml, $type)
+ {
+ }
+ /**
+ * parse an XML string
+ *
+ * @param string $xml path or URL
+ * @param string $type (schema|xml)
+ * @access private
+ */
+ public function parseString($xml, $type)
+ {
+ }
+ /**
+ * gets a type name for an unnamed type
+ *
+ * @param string $ename Element name
+ * @return string A type name for an unnamed type
+ * @access private
+ */
+ public function CreateTypeName($ename)
+ {
+ }
+ /**
+ * start-element handler
+ *
+ * @param string $parser XML parser object
+ * @param string $name element name
+ * @param array $attrs associative array of attributes
+ * @access private
+ */
+ public function schemaStartElement($parser, $name, $attrs)
+ {
+ }
+ /**
+ * end-element handler
+ *
+ * @param string $parser XML parser object
+ * @param string $name element name
+ * @access private
+ */
+ public function schemaEndElement($parser, $name)
+ {
+ }
+ /**
+ * element content handler
+ *
+ * @param string $parser XML parser object
+ * @param string $data element content
+ * @access private
+ */
+ public function schemaCharacterData($parser, $data)
+ {
+ }
+ /**
+ * serialize the schema
+ *
+ * @access public
+ */
+ public function serializeSchema()
+ {
+ }
+ /**
+ * adds debug data to the clas level debug string
+ *
+ * @param string $string debug data
+ * @access private
+ */
+ public function xdebug($string)
+ {
+ }
+ /**
+ * get the PHP type of a user defined type in the schema
+ * PHP type is kind of a misnomer since it actually returns 'struct' for assoc. arrays
+ * returns false if no type exists, or not w/ the given namespace
+ * else returns a string that is either a native php type, or 'struct'
+ *
+ * @param string $type name of defined type
+ * @param string $ns namespace of type
+ * @return mixed
+ * @access public
+ * @deprecated
+ */
+ public function getPHPType($type, $ns)
+ {
+ }
+ /**
+ * returns an associative array of information about a given type
+ * returns false if no type exists by the given name
+ *
+ * For a complexType typeDef = array(
+ * 'restrictionBase' => '',
+ * 'phpType' => '',
+ * 'compositor' => '(sequence|all)',
+ * 'elements' => array(), // refs to elements array
+ * 'attrs' => array() // refs to attributes array
+ * ... and so on (see addComplexType)
+ * )
+ *
+ * For simpleType or element, the array has different keys.
+ *
+ * @param string $type
+ * @return mixed
+ * @access public
+ * @see addComplexType
+ * @see addSimpleType
+ * @see addElement
+ */
+ public function getTypeDef($type)
+ {
+ }
+ /**
+ * returns a sample serialization of a given type, or false if no type by the given name
+ *
+ * @param string $type name of type
+ * @return false|string
+ * @access public
+ */
+ public function serializeTypeDef($type)
+ {
+ }
+ /**
+ * returns HTML form elements that allow a user
+ * to enter values for creating an instance of the given type.
+ *
+ * @param string $name name for type instance
+ * @param string $type name of type
+ * @return string
+ * @access public
+ * @deprecated
+ */
+ public function typeToForm($name, $type)
+ {
+ }
+ /**
+ * adds a complex type to the schema
+ * example: array
+ * addType(
+ * 'ArrayOfstring',
+ * 'complexType',
+ * 'array',
+ * '',
+ * 'SOAP-ENC:Array',
+ * array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'string[]'),
+ * 'xsd:string'
+ * );
+ * example: PHP associative array ( SOAP Struct )
+ * addType(
+ * 'SOAPStruct',
+ * 'complexType',
+ * 'struct',
+ * 'all',
+ * array('myVar'=> array('name'=>'myVar','type'=>'string')
+ * );
+ *
+ * @param string $name
+ * @param string $typeClass (complexType|simpleType|attribute)
+ * @param string $phpType : currently supported are array and struct (php assoc array)
+ * @param string $compositor (all|sequence|choice)
+ * @param string $restrictionBase namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
+ * @param array $elements = array ( name = array(name=>'',type=>'') )
+ * @param array $attrs = array(
+ * array(
+ * 'ref' => "http://schemas.xmlsoap.org/soap/encoding/:arrayType",
+ * "http://schemas.xmlsoap.org/wsdl/:arrayType" => "string[]"
+ * )
+ * )
+ * @param array $arrayType : namespace:name (http://www.w3.org/2001/XMLSchema:string)
+ *
+ * @access public
+ * @see getTypeDef
+ */
+ public function addComplexType($name, $typeClass = 'complexType', $phpType = 'array', $compositor = '', $restrictionBase = '', $elements = array(), $attrs = array(), $arrayType = '')
+ {
+ }
+ /**
+ * adds a simple type to the schema
+ *
+ * @param string $name
+ * @param string $restrictionBase namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
+ * @param string $typeClass (should always be simpleType)
+ * @param string $phpType (should always be scalar)
+ * @param array $enumeration array of values
+ * @access public
+ * @see nusoap_xmlschema
+ * @see getTypeDef
+ */
+ public function addSimpleType($name, $restrictionBase = '', $typeClass = 'simpleType', $phpType = 'scalar', $enumeration = array())
+ {
+ }
+ /**
+ * adds an element to the schema
+ *
+ * @param array $attrs attributes that must include name and type
+ * @see nusoap_xmlschema
+ * @access public
+ */
+ public function addElement($attrs)
+ {
+ }
+}
+/**
+ * Backward compatibility
+ */
+class XMLSchema extends \nusoap_xmlschema
+{
+}
+/**
+ * For creating serializable abstractions of native PHP types. This class
+ * allows element name/namespace, XSD type, and XML attributes to be
+ * associated with a value. This is extremely useful when WSDL is not
+ * used, but is also useful when WSDL is used with polymorphic types, including
+ * xsd:anyType and user-defined types.
+ *
+ * @author Dietrich Ayala
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class soapval extends \nusoap_base
+{
+ /**
+ * The XML element name
+ *
+ * @var string
+ * @access private
+ */
+ public $name;
+ /**
+ * The XML type name (string or false)
+ *
+ * @var mixed
+ * @access private
+ */
+ public $type;
+ /**
+ * The PHP value
+ *
+ * @var mixed
+ * @access private
+ */
+ public $value;
+ /**
+ * The XML element namespace (string or false)
+ *
+ * @var mixed
+ * @access private
+ */
+ public $element_ns;
+ /**
+ * The XML type namespace (string or false)
+ *
+ * @var mixed
+ * @access private
+ */
+ public $type_ns;
+ /**
+ * The XML element attributes (array or false)
+ *
+ * @var mixed
+ * @access private
+ */
+ public $attributes;
+ /** @var false|resource */
+ public $fp;
+ /**
+ * constructor
+ *
+ * @param string $name optional name
+ * @param mixed $type optional type name
+ * @param mixed $value optional value
+ * @param mixed $element_ns optional namespace of value
+ * @param mixed $type_ns optional namespace of type
+ * @param mixed $attributes associative array of attributes to add to element serialization
+ * @access public
+ */
+ public function __construct($name = 'soapval', $type = \false, $value = -1, $element_ns = \false, $type_ns = \false, $attributes = \false)
+ {
+ }
+ /**
+ * return serialized value
+ *
+ * @param string $use The WSDL use value (encoded|literal)
+ * @return string XML data
+ * @access public
+ */
+ public function serialize($use = 'encoded')
+ {
+ }
+ /**
+ * decodes a soapval object into a PHP native type
+ *
+ * @return mixed
+ * @access public
+ */
+ public function decode()
+ {
+ }
+}
+/**
+ * transport class for sending/receiving data via HTTP and HTTPS
+ * NOTE: PHP must be compiled with the CURL extension for HTTPS support
+ *
+ * @author Dietrich Ayala
+ * @author Scott Nichol
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class soap_transport_http extends \nusoap_base
+{
+ public $query = '';
+ public $tryagain = \false;
+ public $url = '';
+ public $uri = '';
+ public $digest_uri = '';
+ public $scheme = '';
+ public $host = '';
+ public $port = '';
+ public $path = '';
+ public $request_method = 'POST';
+ public $protocol_version = '1.0';
+ public $encoding = '';
+ public $outgoing_headers = array();
+ public $incoming_headers = array();
+ public $incoming_cookies = array();
+ public $outgoing_payload = '';
+ public $incoming_payload = '';
+ public $response_status_line;
+ // HTTP response status line
+ public $useSOAPAction = \true;
+ public $persistentConnection = \false;
+ public $ch = \false;
+ // cURL handle
+ public $ch_options = array();
+ // cURL custom options
+ public $use_curl = \false;
+ // force cURL use
+ public $proxy = \null;
+ // proxy information (associative array)
+ public $username = '';
+ public $password = '';
+ public $authtype = '';
+ public $digestRequest = array();
+ public $certRequest = array();
+ // keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, certpassword (optional), verifypeer (optional), verifyhost (optional)
+ // cainfofile: certificate authority file, e.g. '$pathToPemFiles/rootca.pem'
+ // sslcertfile: SSL certificate file, e.g. '$pathToPemFiles/mycert.pem'
+ // sslkeyfile: SSL key file, e.g. '$pathToPemFiles/mykey.pem'
+ // passphrase: SSL key password/passphrase
+ // certpassword: SSL certificate password
+ // verifypeer: default is 1
+ // verifyhost: default is 1
+ /** @var false|resource */
+ public $fp;
+ public $errno;
+ /**
+ * constructor
+ *
+ * @param string $url The URL to which to connect
+ * @param array $curl_options User-specified cURL options
+ * @param boolean $use_curl Whether to try to force cURL use
+ * @access public
+ */
+ public function __construct($url, $curl_options = \null, $use_curl = \false)
+ {
+ }
+ /**
+ * sets a cURL option
+ *
+ * @param mixed $option The cURL option (always integer?)
+ * @param mixed $value The cURL option value
+ * @access private
+ */
+ public function setCurlOption($option, $value)
+ {
+ }
+ /**
+ * sets an HTTP header
+ *
+ * @param string $name The name of the header
+ * @param string $value The value of the header
+ * @access private
+ */
+ public function setHeader($name, $value)
+ {
+ }
+ /**
+ * unsets an HTTP header
+ *
+ * @param string $name The name of the header
+ * @access private
+ */
+ public function unsetHeader($name)
+ {
+ }
+ /**
+ * sets the URL to which to connect
+ *
+ * @param string $url The URL to which to connect
+ * @access private
+ */
+ public function setURL($url)
+ {
+ }
+ /**
+ * gets the I/O method to use
+ *
+ * @return string I/O method to use (socket|curl|unknown)
+ * @access private
+ */
+ public function io_method()
+ {
+ }
+ /**
+ * establish an HTTP connection
+ *
+ * @param integer $connection_timeout set connection timeout in seconds
+ * @param integer $response_timeout set response timeout in seconds
+ * @return boolean true if connected, false if not
+ * @access private
+ */
+ public function connect($connection_timeout = 0, $response_timeout = 30)
+ {
+ }
+ /**
+ * sends the SOAP request and gets the SOAP response via HTTP[S]
+ *
+ * @param string $data message data
+ * @param integer $timeout set connection timeout in seconds
+ * @param integer $response_timeout set response timeout in seconds
+ * @param array $cookies cookies to send
+ * @return string data
+ * @access public
+ */
+ public function send($data, $timeout = 0, $response_timeout = 30, $cookies = \null)
+ {
+ }
+ /**
+ * sends the SOAP request and gets the SOAP response via HTTPS using CURL
+ *
+ * @param string $data message data
+ * @param integer $timeout set connection timeout in seconds
+ * @param integer $response_timeout set response timeout in seconds
+ * @param array $cookies cookies to send
+ * @return string data
+ * @access public
+ */
+ public function sendHTTPS($data, $timeout = 0, $response_timeout = 30, $cookies = \NULL)
+ {
+ }
+ /**
+ * if authenticating, set user credentials here
+ *
+ * @param string $username
+ * @param string $password
+ * @param string $authtype (basic|digest|certificate|ntlm)
+ * @param array $digestRequest (keys must be nonce, nc, realm, qop)
+ * @param array $certRequest (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, certpassword (optional), verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs)
+ * @access public
+ */
+ public function setCredentials($username, $password, $authtype = 'basic', $digestRequest = array(), $certRequest = array())
+ {
+ }
+ /**
+ * set the soapaction value
+ *
+ * @param string $soapaction
+ * @access public
+ */
+ public function setSOAPAction($soapaction)
+ {
+ }
+ /**
+ * use http encoding
+ *
+ * @param string $enc encoding style. supported values: gzip, deflate, or both
+ * @access public
+ */
+ public function setEncoding($enc = 'gzip, deflate')
+ {
+ }
+ /**
+ * set proxy info here
+ *
+ * @param string $proxyhost use an empty string to remove proxy
+ * @param string $proxyport
+ * @param string $proxyusername
+ * @param string $proxypassword
+ * @param string $proxyauthtype (basic|ntlm)
+ * @access public
+ */
+ public function setProxy($proxyhost, $proxyport, $proxyusername = '', $proxypassword = '', $proxyauthtype = 'basic')
+ {
+ }
+ /**
+ * Test if the given string starts with a header that is to be skipped.
+ * Skippable headers result from chunked transfer and proxy requests.
+ *
+ * @param string $data The string to check.
+ * @returns boolean Whether a skippable header was found.
+ * @access private
+ */
+ public function isSkippableCurlHeader($data)
+ {
+ }
+ /**
+ * decode a string that is encoded w/ "chunked' transfer encoding
+ * as defined in RFC2068 19.4.6
+ *
+ * @param string $buffer
+ * @param string $lb
+ * @returns string
+ * @access public
+ * @deprecated
+ */
+ public function decodeChunked($buffer, $lb)
+ {
+ }
+ /**
+ * Writes the payload, including HTTP headers, to $this->outgoing_payload.
+ *
+ * @param string $data HTTP body
+ * @param string $cookie_str data for HTTP Cookie header
+ * @return void
+ * @access private
+ */
+ public function buildPayload($data, $cookie_str = '')
+ {
+ }
+ /**
+ * sends the SOAP request via HTTP[S]
+ *
+ * @param string $data message data
+ * @param array $cookies cookies to send
+ * @return boolean true if OK, false if problem
+ * @access private
+ */
+ public function sendRequest($data, $cookies = \null)
+ {
+ }
+ /**
+ * gets the SOAP response via HTTP[S]
+ *
+ * @return string the response (also sets member variables like incoming_payload)
+ * @access private
+ */
+ public function getResponse()
+ {
+ }
+ /**
+ * sets the content-type for the SOAP message to be sent
+ *
+ * @param string $type the content type, MIME style
+ * @param mixed $charset character set used for encoding (or false)
+ * @access public
+ */
+ public function setContentType($type, $charset = \false)
+ {
+ }
+ /**
+ * specifies that an HTTP persistent connection should be used
+ *
+ * @return boolean whether the request was honored by this method.
+ * @access public
+ */
+ public function usePersistentConnection()
+ {
+ }
+ /**
+ * parse an incoming Cookie into it's parts
+ *
+ * @param string $cookie_str content of cookie
+ * @return array with data of that cookie
+ * @access private
+ */
+ /*
+ * TODO: allow a Set-Cookie string to be parsed into multiple cookies
+ */
+ public function parseCookie($cookie_str)
+ {
+ }
+ /**
+ * sort out cookies for the current request
+ *
+ * @param array $cookies array with all cookies
+ * @param boolean $secure is the send-content secure or not?
+ * @return string for Cookie-HTTP-Header
+ * @access private
+ */
+ public function getCookiesForRequest($cookies, $secure = \false)
+ {
+ }
+}
+/**
+ *
+ * nusoap_server allows the user to create a SOAP server
+ * that is capable of receiving messages and returning responses
+ *
+ * @author Dietrich Ayala
+ * @author Scott Nichol
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class nusoap_server extends \nusoap_base
+{
+ /**
+ * HTTP headers of request
+ *
+ * @var array
+ * @access private
+ */
+ public $headers = array();
+ /**
+ * HTTP request
+ *
+ * @var string
+ * @access private
+ */
+ public $request = '';
+ /**
+ * SOAP headers from request (incomplete namespace resolution; special characters not escaped) (text)
+ *
+ * @var string
+ * @access public
+ */
+ public $requestHeaders = '';
+ /**
+ * SOAP Headers from request (parsed)
+ *
+ * @var mixed
+ * @access public
+ */
+ public $requestHeader = \null;
+ /**
+ * SOAP body request portion (incomplete namespace resolution; special characters not escaped) (text)
+ *
+ * @var string
+ * @access public
+ */
+ public $document = '';
+ /**
+ * SOAP payload for request (text)
+ *
+ * @var string
+ * @access public
+ */
+ public $requestSOAP = '';
+ /**
+ * requested method namespace URI
+ *
+ * @var string
+ * @access private
+ */
+ public $methodURI = '';
+ /**
+ * name of method requested
+ *
+ * @var string
+ * @access private
+ */
+ public $methodname = '';
+ /**
+ * name of the response tag name
+ *
+ * @var string
+ * @access private
+ */
+ public $responseTagName = '';
+ /**
+ * method parameters from request
+ *
+ * @var array
+ * @access private
+ */
+ public $methodparams = array();
+ /**
+ * SOAP Action from request
+ *
+ * @var string
+ * @access private
+ */
+ public $SOAPAction = '';
+ /**
+ * character set encoding of incoming (request) messages
+ *
+ * @var string
+ * @access public
+ */
+ public $xml_encoding = '';
+ /**
+ * toggles whether the parser decodes element content w/ utf8_decode()
+ *
+ * @var boolean
+ * @access public
+ */
+ public $decode_utf8 = \true;
+ /**
+ * HTTP headers of response
+ *
+ * @var array
+ * @access public
+ */
+ public $outgoing_headers = array();
+ /**
+ * HTTP response
+ *
+ * @var string
+ * @access private
+ */
+ public $response = '';
+ /**
+ * SOAP headers for response (text or array of soapval or associative array)
+ *
+ * @var mixed
+ * @access public
+ */
+ public $responseHeaders = '';
+ /**
+ * SOAP payload for response (text)
+ *
+ * @var string
+ * @access private
+ */
+ public $responseSOAP = '';
+ /**
+ * SOAP attachments in response
+ *
+ * @var string
+ * @access private
+ */
+ public $attachments = '';
+ /**
+ * method return value to place in response
+ *
+ * @var mixed
+ * @access private
+ */
+ public $methodreturn = \false;
+ /**
+ * whether $methodreturn is a string of literal XML
+ *
+ * @var boolean
+ * @access public
+ */
+ public $methodreturnisliteralxml = \false;
+ /**
+ * SOAP fault for response (or false)
+ *
+ * @var mixed
+ * @access private
+ */
+ public $fault = \false;
+ /**
+ * text indication of result (for debugging)
+ *
+ * @var string
+ * @access private
+ */
+ public $result = 'successful';
+ /**
+ * assoc array of operations => opData; operations are added by the register()
+ * method or by parsing an external WSDL definition
+ *
+ * @var array
+ * @access private
+ */
+ public $operations = array();
+ /**
+ * wsdl instance (if one)
+ *
+ * @var false|wsdl
+ * @access private
+ */
+ public $wsdl = \false;
+ /**
+ * URL for WSDL (if one)
+ *
+ * @var false|string
+ * @access private
+ */
+ public $externalWSDLURL = \false;
+ /**
+ * whether to append debug to response as XML comment
+ *
+ * @var boolean
+ * @access public
+ */
+ public $debug_flag = \false;
+ /** @var array */
+ public $opData;
+ /**
+ * constructor
+ * the optional parameter is a path to a WSDL file that you'd like to bind the server instance to.
+ *
+ * @param false|string|wsdl $wsdl file path or URL (string), or wsdl instance (object)
+ * @access public
+ */
+ public function __construct($wsdl = \false)
+ {
+ }
+ /**
+ * processes request and returns response
+ *
+ * @param string $data usually is the value of $HTTP_RAW_POST_DATA
+ * @access public
+ */
+ public function service($data)
+ {
+ }
+ /**
+ * parses HTTP request headers.
+ *
+ * The following fields are set by this function (when successful)
+ *
+ * headers
+ * request
+ * xml_encoding
+ * SOAPAction
+ *
+ * @access private
+ */
+ public function parse_http_headers()
+ {
+ }
+ /**
+ * parses a request
+ *
+ * The following fields are set by this function (when successful)
+ *
+ * headers
+ * request
+ * xml_encoding
+ * SOAPAction
+ * request
+ * requestSOAP
+ * methodURI
+ * methodname
+ * methodparams
+ * requestHeaders
+ * document
+ *
+ * This sets the fault field on error
+ *
+ * @param string $data XML string
+ * @access private
+ */
+ public function parse_request($data = '')
+ {
+ }
+ /**
+ * invokes a PHP function for the requested SOAP method
+ *
+ * The following fields are set by this function (when successful)
+ *
+ * methodreturn
+ *
+ * Note that the PHP function that is called may also set the following
+ * fields to affect the response sent to the client
+ *
+ * responseHeaders
+ * outgoing_headers
+ *
+ * This sets the fault field on error
+ *
+ * @access private
+ */
+ public function invoke_method()
+ {
+ }
+ /**
+ * serializes the return value from a PHP function into a full SOAP Envelope
+ *
+ * The following fields are set by this function (when successful)
+ *
+ * responseSOAP
+ *
+ * This sets the fault field on error
+ *
+ * @access private
+ */
+ public function serialize_return()
+ {
+ }
+ /**
+ * sends an HTTP response
+ *
+ * The following fields are set by this function (when successful)
+ *
+ * outgoing_headers
+ * response
+ *
+ * @access private
+ */
+ public function send_response()
+ {
+ }
+ /**
+ * takes the value that was created by parsing the request
+ * and compares to the method's signature, if available.
+ *
+ * @param string $operation The operation to be invoked
+ * @param array $request The array of parameter values
+ * @return boolean Whether the operation was found
+ * @access private
+ */
+ public function verify_method($operation, $request)
+ {
+ }
+ /**
+ * processes SOAP message received from client
+ *
+ * @param array $headers The HTTP headers
+ * @param string $data unprocessed request data from client
+ * @return false|void void or false on error
+ * @access private
+ */
+ public function parseRequest($headers, $data)
+ {
+ }
+ /**
+ * gets the HTTP body for the current response.
+ *
+ * @param string $soapmsg The SOAP payload
+ * @return string The HTTP body, which includes the SOAP payload
+ * @access private
+ */
+ public function getHTTPBody($soapmsg)
+ {
+ }
+ /**
+ * gets the HTTP content type for the current response.
+ *
+ * Note: getHTTPBody must be called before this.
+ *
+ * @return string the HTTP content type for the current response.
+ * @access private
+ */
+ public function getHTTPContentType()
+ {
+ }
+ /**
+ * gets the HTTP content type charset for the current response.
+ * returns false for non-text content types.
+ *
+ * Note: getHTTPBody must be called before this.
+ *
+ * @return string the HTTP content type charset for the current response.
+ * @access private
+ */
+ public function getHTTPContentTypeCharset()
+ {
+ }
+ /**
+ * add a method to the dispatch map (this has been replaced by the register method)
+ *
+ * @param string $methodname
+ * @param string $in array of input values
+ * @param string $out array of output values
+ * @access public
+ * @deprecated
+ */
+ public function add_to_map($methodname, $in, $out)
+ {
+ }
+ /**
+ * register a service function with the server
+ *
+ * @param string $name the name of the PHP function, class.method or class..method
+ * @param array $in assoc array of input values: key = param name, value = param type
+ * @param array $out assoc array of output values: key = param name, value = param type
+ * @param mixed $namespace the element namespace for the method or false
+ * @param mixed $soapaction the soapaction for the method or false
+ * @param mixed $style optional (rpc|document) or false Note: when 'document' is specified, parameter and return wrappers are created for you automatically
+ * @param mixed $use optional (encoded|literal) or false
+ * @param string $documentation optional Description to include in WSDL
+ * @param string $encodingStyle optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded)
+ * @param string $customResponseTagName optional Name of the outgoing response, default $name . 'Response'
+ * @access public
+ */
+ public function register($name, $in = array(), $out = array(), $namespace = \false, $soapaction = \false, $style = \false, $use = \false, $documentation = '', $encodingStyle = '', $customResponseTagName = '')
+ {
+ }
+ /**
+ * Specify a fault to be returned to the client.
+ * This also acts as a flag to the server that a fault has occured.
+ *
+ * @param string $faultcode
+ * @param string $faultstring
+ * @param string $faultactor
+ * @param string $faultdetail
+ * @access public
+ */
+ public function fault($faultcode, $faultstring, $faultactor = '', $faultdetail = '')
+ {
+ }
+ /**
+ * Sets up wsdl object.
+ * Acts as a flag to enable internal WSDL generation
+ *
+ * @param string $serviceName , name of the service
+ * @param mixed $namespace optional 'tns' service namespace or false
+ * @param mixed $endpoint optional URL of service endpoint or false
+ * @param string $style optional (rpc|document) WSDL style (also specified by operation)
+ * @param string $transport optional SOAP transport
+ * @param mixed $schemaTargetNamespace optional 'types' targetNamespace for service schema or false
+ */
+ public function configureWSDL($serviceName, $namespace = \false, $endpoint = \false, $style = 'rpc', $transport = 'http://schemas.xmlsoap.org/soap/http', $schemaTargetNamespace = \false)
+ {
+ }
+}
+/**
+ * Backward compatibility
+ */
+class soap_server extends \nusoap_server
+{
+}
+/**
+ * parses a WSDL file, allows access to it's data, other utility methods.
+ * also builds WSDL structures programmatically.
+ *
+ * @author Dietrich Ayala
+ * @author Scott Nichol
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class wsdl extends \nusoap_base
+{
+ // URL or filename of the root of this WSDL
+ public $wsdl;
+ // define internal arrays of bindings, ports, operations, messages, etc.
+ public $schemas = array();
+ public $currentSchema;
+ public $message = array();
+ public $complexTypes = array();
+ public $messages = array();
+ public $currentMessage;
+ public $currentOperation;
+ public $portTypes = array();
+ public $currentPortType;
+ public $bindings = array();
+ public $currentBinding;
+ public $ports = array();
+ public $currentPort;
+ public $opData = array();
+ public $status = '';
+ public $documentation = \false;
+ public $endpoint = '';
+ // array of wsdl docs to import
+ public $import = array();
+ // parser vars
+ public $parser;
+ public $position = 0;
+ public $depth = 0;
+ public $depth_array = array();
+ // for getting wsdl
+ public $proxyhost = '';
+ public $proxyport = '';
+ public $proxyusername = '';
+ public $proxypassword = '';
+ public $timeout = 0;
+ public $response_timeout = 30;
+ public $curl_options = array();
+ // User-specified cURL options
+ public $use_curl = \false;
+ // whether to always try to use cURL
+ // for HTTP authentication
+ public $username = '';
+ // Username for HTTP authentication
+ public $password = '';
+ // Password for HTTP authentication
+ public $authtype = '';
+ // Type of HTTP authentication
+ public $certRequest = array();
+ // Certificate for HTTP SSL authentication
+ /** @var mixed */
+ public $currentPortOperation;
+ /** @var string */
+ public $opStatus;
+ /** @var mixed */
+ public $serviceName;
+ public $wsdl_info;
+ /**
+ * constructor
+ *
+ * @param string $wsdl WSDL document URL
+ * @param string $proxyhost
+ * @param string $proxyport
+ * @param string $proxyusername
+ * @param string $proxypassword
+ * @param integer $timeout set the connection timeout
+ * @param integer $response_timeout set the response timeout
+ * @param array $curl_options user-specified cURL options
+ * @param boolean $use_curl try to use cURL
+ * @access public
+ */
+ public function __construct($wsdl = '', $proxyhost = \false, $proxyport = \false, $proxyusername = \false, $proxypassword = \false, $timeout = 0, $response_timeout = 30, $curl_options = \null, $use_curl = \false)
+ {
+ }
+ /**
+ * fetches the WSDL document and parses it
+ *
+ * @access public
+ */
+ public function fetchWSDL($wsdl)
+ {
+ }
+ /**
+ * parses the wsdl document
+ *
+ * @param string $wsdl path or URL
+ * @access private
+ */
+ public function parseWSDL($wsdl = '')
+ {
+ }
+ /**
+ * start-element handler
+ *
+ * @param string $parser XML parser object
+ * @param string $name element name
+ * @param array $attrs associative array of attributes
+ * @access private
+ */
+ public function start_element($parser, $name, $attrs)
+ {
+ }
+ /**
+ * end-element handler
+ *
+ * @param string $parser XML parser object
+ * @param string $name element name
+ * @access private
+ */
+ public function end_element($parser, $name)
+ {
+ }
+ /**
+ * element content handler
+ *
+ * @param string $parser XML parser object
+ * @param string $data element content
+ * @access private
+ */
+ public function character_data($parser, $data)
+ {
+ }
+ /**
+ * if authenticating, set user credentials here
+ *
+ * @param string $username
+ * @param string $password
+ * @param string $authtype (basic|digest|certificate|ntlm)
+ * @param array $certRequest (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, certpassword (optional), verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs)
+ * @access public
+ */
+ public function setCredentials($username, $password, $authtype = 'basic', $certRequest = array())
+ {
+ }
+ public function getBindingData($binding)
+ {
+ }
+ /**
+ * returns an assoc array of operation names => operation data
+ *
+ * @param string $portName WSDL port name
+ * @param string $bindingType eg: soap, smtp, dime (only soap and soap12 are currently supported)
+ * @return array
+ * @access public
+ */
+ public function getOperations($portName = '', $bindingType = 'soap')
+ {
+ }
+ /**
+ * returns an associative array of data necessary for calling an operation
+ *
+ * @param string $operation name of operation
+ * @param string $bindingType type of binding eg: soap, soap12
+ * @return array
+ * @access public
+ */
+ public function getOperationData($operation, $bindingType = 'soap')
+ {
+ }
+ /**
+ * returns an associative array of data necessary for calling an operation
+ *
+ * @param string $soapAction soapAction for operation
+ * @param string $bindingType type of binding eg: soap, soap12
+ * @return array
+ * @access public
+ */
+ public function getOperationDataForSoapAction($soapAction, $bindingType = 'soap')
+ {
+ }
+ /**
+ * returns an array of information about a given type
+ * returns false if no type exists by the given name
+ * typeDef = array(
+ * 'elements' => array(), // refs to elements array
+ * 'restrictionBase' => '',
+ * 'phpType' => '',
+ * 'order' => '(sequence|all)',
+ * 'attrs' => array() // refs to attributes array
+ * )
+ *
+ * @param string $type the type
+ * @param string $ns namespace (not prefix) of the type
+ * @return false
+ * @access public
+ * @see nusoap_xmlschema
+ */
+ public function getTypeDef($type, $ns)
+ {
+ }
+ /**
+ * prints html description of services
+ *
+ * @access private
+ */
+ public function webDescription()
+ {
+ }
+ /**
+ * serialize the parsed wsdl
+ *
+ * @param mixed $debug whether to put debug=1 in endpoint URL
+ * @return string serialization of WSDL
+ * @access public
+ */
+ public function serialize($debug = 0)
+ {
+ }
+ /**
+ * determine whether a set of parameters are unwrapped
+ * when they are expect to be wrapped, Microsoft-style.
+ *
+ * @param string $type the type (element name) of the wrapper
+ * @param array $parameters the parameter values for the SOAP call
+ * @return boolean whether they parameters are unwrapped (and should be wrapped)
+ * @access private
+ */
+ public function parametersMatchWrapped($type, $parameters)
+ {
+ }
+ /**
+ * serialize PHP values according to a WSDL message definition
+ * contrary to the method name, this is not limited to RPC
+ *
+ * TODO
+ * - multi-ref serialization
+ * - validate PHP values against type definitions, return errors if invalid
+ *
+ * @param string $operation operation name
+ * @param string $direction (input|output)
+ * @param mixed $parameters parameter value(s)
+ * @param string $bindingType (soap|soap12)
+ * @return false|string parameters serialized as XML or false on error (e.g. operation not found)
+ * @access public
+ */
+ public function serializeRPCParameters($operation, $direction, $parameters, $bindingType = 'soap')
+ {
+ }
+ /**
+ * serialize a PHP value according to a WSDL message definition
+ *
+ * TODO
+ * - multi-ref serialization
+ * - validate PHP values against type definitions, return errors if invalid
+ *
+ * @param string $operation operation name
+ * @param string $direction (input|output)
+ * @param mixed $parameters parameter value(s)
+ * @return false|string parameters serialized as XML or false on error (e.g. operation not found)
+ * @access public
+ * @deprecated
+ */
+ public function serializeParameters($operation, $direction, $parameters)
+ {
+ }
+ /**
+ * serializes a PHP value according a given type definition
+ *
+ * @param string $name name of value (part or element)
+ * @param string $type XML schema type of value (type or element)
+ * @param mixed $value a native PHP value (parameter value)
+ * @param string $use use for part (encoded|literal)
+ * @param string $encodingStyle SOAP encoding style for the value (if different than the enclosing style)
+ * @param boolean $unqualified a kludge for what should be XML namespace form handling
+ * @return string value serialized as an XML string
+ * @access private
+ */
+ public function serializeType($name, $type, $value, $use = 'encoded', $encodingStyle = \false, $unqualified = \false)
+ {
+ }
+ /**
+ * serializes the attributes for a complexType
+ *
+ * @param array $typeDef our internal representation of an XML schema type (or element)
+ * @param mixed $value a native PHP value (parameter value)
+ * @param string $ns the namespace of the type
+ * @param string $uqType the local part of the type
+ * @return string value serialized as an XML string
+ * @access private
+ */
+ public function serializeComplexTypeAttributes($typeDef, $value, $ns, $uqType)
+ {
+ }
+ /**
+ * serializes the elements for a complexType
+ *
+ * @param array $typeDef our internal representation of an XML schema type (or element)
+ * @param mixed $value a native PHP value (parameter value)
+ * @param string $ns the namespace of the type
+ * @param string $uqType the local part of the type
+ * @param string $use use for part (encoded|literal)
+ * @param string $encodingStyle SOAP encoding style for the value (if different than the enclosing style)
+ * @return string value serialized as an XML string
+ * @access private
+ */
+ public function serializeComplexTypeElements($typeDef, $value, $ns, $uqType, $use = 'encoded', $encodingStyle = \false)
+ {
+ }
+ /**
+ * adds an XML Schema complex type to the WSDL types
+ *
+ * @param string $name
+ * @param string $typeClass (complexType|simpleType|attribute)
+ * @param string $phpType currently supported are array and struct (php assoc array)
+ * @param string $compositor (all|sequence|choice)
+ * @param string $restrictionBase namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
+ * @param array $elements e.g. array ( name => array(name=>'',type=>'') )
+ * @param array $attrs e.g. array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]'))
+ * @param string $arrayType as namespace:name (xsd:string)
+ * @see nusoap_xmlschema
+ * @access public
+ */
+ public function addComplexType($name, $typeClass = 'complexType', $phpType = 'array', $compositor = '', $restrictionBase = '', $elements = array(), $attrs = array(), $arrayType = '')
+ {
+ }
+ /**
+ * adds an XML Schema simple type to the WSDL types
+ *
+ * @param string $name
+ * @param string $restrictionBase namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array)
+ * @param string $typeClass (should always be simpleType)
+ * @param string $phpType (should always be scalar)
+ * @param array $enumeration array of values
+ * @see nusoap_xmlschema
+ * @access public
+ */
+ public function addSimpleType($name, $restrictionBase = '', $typeClass = 'simpleType', $phpType = 'scalar', $enumeration = array())
+ {
+ }
+ /**
+ * adds an element to the WSDL types
+ *
+ * @param array $attrs attributes that must include name and type
+ * @see nusoap_xmlschema
+ * @access public
+ */
+ public function addElement($attrs)
+ {
+ }
+ /**
+ * register an operation with the server
+ *
+ * @param string $name operation (method) name
+ * @param array $in assoc array of input values: key = param name, value = param type
+ * @param array $out assoc array of output values: key = param name, value = param type
+ * @param string $namespace optional The namespace for the operation
+ * @param string $soapaction optional The soapaction for the operation
+ * @param string $style (rpc|document) optional The style for the operation Note: when 'document' is specified, parameter and return wrappers are created for you automatically
+ * @param string $use (encoded|literal) optional The use for the parameters (cannot mix right now)
+ * @param string $documentation optional The description to include in the WSDL
+ * @param string $encodingStyle optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded)
+ * @param string $customResponseTagName optional Name of the outgoing response
+ * @access public
+ */
+ public function addOperation($name, $in = \false, $out = \false, $namespace = \false, $soapaction = \false, $style = 'rpc', $use = 'encoded', $documentation = '', $encodingStyle = '', $customResponseTagName = '')
+ {
+ }
+}
+/**
+ *
+ * nusoap_parser class parses SOAP XML messages into native PHP values
+ *
+ * @author Dietrich Ayala
+ * @author Scott Nichol
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class nusoap_parser extends \nusoap_base
+{
+ public $parser = \null;
+ public $methodNamespace = '';
+ public $xml = '';
+ public $xml_encoding = '';
+ public $method = '';
+ public $root_struct = '';
+ public $root_struct_name = '';
+ public $root_struct_namespace = '';
+ public $root_header = '';
+ public $document = '';
+ // incoming SOAP body (text)
+ // determines where in the message we are (envelope,header,body,method)
+ public $status = '';
+ public $position = 0;
+ public $depth = 0;
+ public $default_namespace = '';
+ public $namespaces = array();
+ public $message = array();
+ public $parent = '';
+ public $fault = \false;
+ public $fault_code = '';
+ public $fault_str = '';
+ public $fault_detail = '';
+ public $depth_array = array();
+ public $debug_flag = \true;
+ public $soapresponse = \null;
+ // parsed SOAP Body
+ public $soapheader = \null;
+ // parsed SOAP Header
+ public $responseHeaders = '';
+ // incoming SOAP headers (text)
+ public $body_position = 0;
+ // for multiref parsing:
+ // array of id => pos
+ public $ids = array();
+ // array of id => hrefs => pos
+ public $multirefs = array();
+ // toggle for auto-decoding element content
+ public $decode_utf8 = \true;
+ public $attachments = array();
+ /**
+ * constructor that actually does the parsing
+ *
+ * @param string $xml SOAP message
+ * @param string $encoding character encoding scheme of message
+ * @param string $method method for which XML is parsed (unused?)
+ * @param string $decode_utf8 whether to decode UTF-8 to ISO-8859-1
+ * @access public
+ */
+ public function __construct($xml, $encoding = 'UTF-8', $method = '', $decode_utf8 = \true)
+ {
+ }
+ /**
+ * start-element handler
+ *
+ * @param resource $parser XML parser object
+ * @param string $name element name
+ * @param array $attrs associative array of attributes
+ * @access private
+ */
+ public function start_element($parser, $name, $attrs)
+ {
+ }
+ /**
+ * end-element handler
+ *
+ * @param resource $parser XML parser object
+ * @param string $name element name
+ * @access private
+ */
+ public function end_element($parser, $name)
+ {
+ }
+ /**
+ * element content handler
+ *
+ * @param resource $parser XML parser object
+ * @param string $data element content
+ * @access private
+ */
+ public function character_data($parser, $data)
+ {
+ }
+ /**
+ * get the parsed message (SOAP Body)
+ *
+ * @return mixed
+ * @access public
+ * @deprecated use get_soapbody instead
+ */
+ public function get_response()
+ {
+ }
+ /**
+ * get the parsed SOAP Body (null if there was none)
+ *
+ * @return mixed
+ * @access public
+ */
+ public function get_soapbody()
+ {
+ }
+ /**
+ * get the parsed SOAP Header (null if there was none)
+ *
+ * @return mixed
+ * @access public
+ */
+ public function get_soapheader()
+ {
+ }
+ /**
+ * get the unparsed SOAP Header
+ *
+ * @return string XML or empty if no Header
+ * @access public
+ */
+ public function getHeaders()
+ {
+ }
+ /**
+ * decodes simple types into PHP variables
+ *
+ * @param string $value value to decode
+ * @param string $type XML type to decode
+ * @param string $typens XML type namespace to decode
+ * @return mixed PHP value
+ * @access private
+ */
+ public function decodeSimple($value, $type, $typens)
+ {
+ }
+ /**
+ * builds response structures for compound values (arrays/structs)
+ * and scalars
+ *
+ * @param integer $pos position in node tree
+ * @return mixed PHP value
+ * @access private
+ */
+ public function buildVal($pos)
+ {
+ }
+}
+/**
+ * Backward compatibility
+ */
+class soap_parser extends \nusoap_parser
+{
+}
+/**
+ *
+ * [nu]soapclient higher level class for easy usage.
+ *
+ * usage:
+ *
+ * // instantiate client with server info
+ * $soapclient = new nusoap_client( string path [ ,mixed wsdl] );
+ *
+ * // call method, get results
+ * echo $soapclient->call( string methodname [ ,array parameters] );
+ *
+ * // bye bye client
+ * unset($soapclient);
+ *
+ * @author Dietrich Ayala
+ * @author Scott Nichol
+ * @version $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class nusoap_client extends \nusoap_base
+{
+ public $attachments = '';
+ public $return = \null;
+ public $operation = '';
+ public $opData = array();
+ public $username = '';
+ // Username for HTTP authentication
+ public $password = '';
+ // Password for HTTP authentication
+ public $authtype = '';
+ // Type of HTTP authentication
+ public $certRequest = array();
+ // Certificate for HTTP SSL authentication
+ public $requestHeaders = \false;
+ // SOAP headers in request (text)
+ public $responseHeaders = '';
+ // SOAP headers from response (incomplete namespace resolution) (text)
+ public $responseHeader = \null;
+ // SOAP Header from response (parsed)
+ public $document = '';
+ // SOAP body response portion (incomplete namespace resolution) (text)
+ public $endpoint;
+ public $forceEndpoint = '';
+ // overrides WSDL endpoint
+ public $proxyhost = '';
+ public $proxyport = '';
+ public $proxyusername = '';
+ public $proxypassword = '';
+ public $portName = '';
+ // port name to use in WSDL
+ public $xml_encoding = '';
+ // character set encoding of incoming (response) messages
+ public $http_encoding = \false;
+ public $timeout = 0;
+ // HTTP connection timeout
+ public $response_timeout = 30;
+ // HTTP response timeout
+ public $endpointType = '';
+ // soap|wsdl, empty for WSDL initialization error
+ public $persistentConnection = \false;
+ public $defaultRpcParams = \false;
+ // This is no longer used
+ public $request = '';
+ // HTTP request
+ public $response = '';
+ // HTTP response
+ public $responseData = '';
+ // SOAP payload of response
+ public $cookies = array();
+ // Cookies from response or for request
+ public $decode_utf8 = \true;
+ // toggles whether the parser decodes element content w/ utf8_decode()
+ public $operations = array();
+ // WSDL operations, empty for WSDL initialization error
+ public $curl_options = array();
+ // User-specified cURL options
+ public $bindingType = '';
+ // WSDL operation binding type
+ public $use_curl = \false;
+ // whether to always try to use cURL
+ /*
+ * fault related variables
+ */
+ /**
+ * @var bool
+ * @access public
+ */
+ public $fault;
+ /**
+ * @var string
+ * @access public
+ */
+ public $faultcode;
+ /**
+ * @var string
+ * @access public
+ */
+ public $faultstring;
+ /**
+ * @var string
+ * @access public
+ */
+ public $faultdetail;
+ /** @var wsdl|null */
+ public $wsdl;
+ /** @var mixed */
+ public $wsdlFile;
+ /**
+ * constructor
+ *
+ * @param mixed $endpoint SOAP server or WSDL URL (string), or wsdl instance (object)
+ * @param mixed $wsdl optional, set to 'wsdl' or true if using WSDL
+ * @param string $proxyhost optional
+ * @param string $proxyport optional
+ * @param string $proxyusername optional
+ * @param string $proxypassword optional
+ * @param integer $timeout set the connection timeout
+ * @param integer $response_timeout set the response timeout
+ * @param string $portName optional portName in WSDL document
+ * @access public
+ */
+ public function __construct($endpoint, $wsdl = \false, $proxyhost = \false, $proxyport = \false, $proxyusername = \false, $proxypassword = \false, $timeout = 0, $response_timeout = 30, $portName = '')
+ {
+ }
+ /**
+ * calls method, returns PHP native type
+ *
+ * @param string $operation SOAP server URL or path
+ * @param mixed $params An array, associative or simple, of the parameters
+ * for the method call, or a string that is the XML
+ * for the call. For rpc style, this call will
+ * wrap the XML in a tag named after the method, as
+ * well as the SOAP Envelope and Body. For document
+ * style, this will only wrap with the Envelope and Body.
+ * IMPORTANT: when using an array with document style,
+ * in which case there
+ * is really one parameter, the root of the fragment
+ * used in the call, which encloses what programmers
+ * normally think of parameters. A parameter array
+ * *must* include the wrapper.
+ * @param string $namespace optional method namespace (WSDL can override)
+ * @param string $soapAction optional SOAPAction value (WSDL can override)
+ * @param mixed $headers optional string of XML with SOAP header content, or array of soapval objects for SOAP headers, or associative array
+ * @param boolean $rpcParams optional (no longer used)
+ * @param string $style optional (rpc|document) the style to use when serializing parameters (WSDL can override)
+ * @param string $use optional (encoded|literal|literal wrapped) the use when serializing parameters (WSDL can override)
+ * @return mixed response from SOAP call, normally an associative array mirroring the structure of the XML response, false for certain fatal errors
+ * @access public
+ */
+ public function call($operation, $params = array(), $namespace = 'http://tempuri.org', $soapAction = '', $headers = \false, $rpcParams = \null, $style = 'rpc', $use = 'encoded')
+ {
+ }
+ /**
+ * check WSDL passed as an instance or pulled from an endpoint
+ *
+ * @access private
+ */
+ public function checkWSDL()
+ {
+ }
+ /**
+ * instantiate wsdl object and parse wsdl file
+ *
+ * @access public
+ */
+ public function loadWSDL()
+ {
+ }
+ /**
+ * get available data pertaining to an operation
+ *
+ * @param string $operation operation name
+ * @return array|false array of data pertaining to the operation, false on error or no data
+ * @access public
+ */
+ public function getOperationData($operation)
+ {
+ }
+ /**
+ * send the SOAP message
+ *
+ * Note: if the operation has multiple return values
+ * the return value of this method will be an array
+ * of those values.
+ *
+ * @param string $msg a SOAPx4 soapmsg object
+ * @param string $soapaction SOAPAction value
+ * @param integer $timeout set connection timeout in seconds
+ * @param integer $response_timeout set response timeout in seconds
+ * @return mixed native PHP types.
+ * @access private
+ */
+ public function send($msg, $soapaction = '', $timeout = 0, $response_timeout = 30)
+ {
+ }
+ /**
+ * processes SOAP message returned from server
+ *
+ * @param array $headers The HTTP headers
+ * @param string $data unprocessed response data from server
+ * @return mixed value of the message, decoded into a PHP type
+ * @access private
+ */
+ public function parseResponse($headers, $data)
+ {
+ }
+ /**
+ * sets user-specified cURL options
+ *
+ * @param mixed $option The cURL option (always integer?)
+ * @param mixed $value The cURL option value
+ * @access public
+ */
+ public function setCurlOption($option, $value)
+ {
+ }
+ /**
+ * sets the SOAP endpoint, which can override WSDL
+ *
+ * @param string $endpoint The endpoint URL to use, or empty string or false to prevent override
+ * @access public
+ */
+ public function setEndpoint($endpoint)
+ {
+ }
+ /**
+ * set the SOAP headers
+ *
+ * @param mixed $headers String of XML with SOAP header content, or array of soapval objects for SOAP headers
+ * @access public
+ */
+ public function setHeaders($headers)
+ {
+ }
+ /**
+ * get the SOAP response headers (namespace resolution incomplete)
+ *
+ * @return string
+ * @access public
+ */
+ public function getHeaders()
+ {
+ }
+ /**
+ * get the SOAP response Header (parsed)
+ *
+ * @return mixed
+ * @access public
+ */
+ public function getHeader()
+ {
+ }
+ /**
+ * set proxy info here
+ *
+ * @param string $proxyhost
+ * @param string $proxyport
+ * @param string $proxyusername
+ * @param string $proxypassword
+ * @access public
+ */
+ public function setHTTPProxy($proxyhost, $proxyport, $proxyusername = '', $proxypassword = '')
+ {
+ }
+ /**
+ * if authenticating, set user credentials here
+ *
+ * @param string $username
+ * @param string $password
+ * @param string $authtype (basic|digest|certificate|ntlm)
+ * @param array $certRequest (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs)
+ * @access public
+ */
+ public function setCredentials($username, $password, $authtype = 'basic', $certRequest = array())
+ {
+ }
+ /**
+ * use HTTP encoding
+ *
+ * @param string $enc HTTP encoding
+ * @access public
+ */
+ public function setHTTPEncoding($enc = 'gzip, deflate')
+ {
+ }
+ /**
+ * Set whether to try to use cURL connections if possible
+ *
+ * @param boolean $use Whether to try to use cURL
+ * @access public
+ */
+ public function setUseCURL($use)
+ {
+ }
+ /**
+ * use HTTP persistent connections if possible
+ *
+ * @access public
+ */
+ public function useHTTPPersistentConnection()
+ {
+ }
+ /**
+ * gets the default RPC parameter setting.
+ * If true, default is that call params are like RPC even for document style.
+ * Each call() can override this value.
+ *
+ * This is no longer used.
+ *
+ * @return boolean
+ * @access public
+ * @deprecated
+ */
+ public function getDefaultRpcParams()
+ {
+ }
+ /**
+ * sets the default RPC parameter setting.
+ * If true, default is that call params are like RPC even for document style
+ * Each call() can override this value.
+ *
+ * This is no longer used.
+ *
+ * @param boolean $rpcParams
+ * @access public
+ * @deprecated
+ */
+ public function setDefaultRpcParams($rpcParams)
+ {
+ }
+ /**
+ * dynamically creates an instance of a proxy class,
+ * allowing user to directly call methods from wsdl
+ *
+ * @return object soap_proxy object
+ * @access public
+ */
+ public function getProxy()
+ {
+ }
+ /**
+ * dynamically creates proxy class code
+ *
+ * @return string PHP/NuSOAP code for the proxy class
+ * @access private
+ */
+ public function _getProxyClassCode($r)
+ {
+ }
+ /**
+ * dynamically creates proxy class code
+ *
+ * @return string PHP/NuSOAP code for the proxy class
+ * @access public
+ */
+ public function getProxyClassCode()
+ {
+ }
+ /**
+ * gets the HTTP body for the current request.
+ *
+ * @param string $soapmsg The SOAP payload
+ * @return string The HTTP body, which includes the SOAP payload
+ * @access private
+ */
+ public function getHTTPBody($soapmsg)
+ {
+ }
+ /**
+ * gets the HTTP content type for the current request.
+ *
+ * Note: getHTTPBody must be called before this.
+ *
+ * @return string the HTTP content type for the current request.
+ * @access private
+ */
+ public function getHTTPContentType()
+ {
+ }
+ /**
+ * allows you to change the HTTP ContentType of the request.
+ *
+ * @param string $contentTypeNew
+ * @return void
+ */
+ public function setHTTPContentType($contentTypeNew = "text/xml")
+ {
+ }
+ /**
+ * gets the HTTP content type charset for the current request.
+ * returns false for non-text content types.
+ *
+ * Note: getHTTPBody must be called before this.
+ *
+ * @return string the HTTP content type charset for the current request.
+ * @access private
+ */
+ public function getHTTPContentTypeCharset()
+ {
+ }
+ /*
+ * whether or not parser should decode utf8 element content
+ *
+ * @return always returns true
+ * @access public
+ */
+ public function decodeUTF8($bool)
+ {
+ }
+ /**
+ * adds a new Cookie into $this->cookies array
+ *
+ * @param string $name Cookie Name
+ * @param string $value Cookie Value
+ * @return boolean if cookie-set was successful returns true, else false
+ * @access public
+ */
+ public function setCookie($name, $value)
+ {
+ }
+ /**
+ * gets all Cookies
+ *
+ * @return array with all internal cookies
+ * @access public
+ */
+ public function getCookies()
+ {
+ }
+ /**
+ * checks all Cookies and delete those which are expired
+ *
+ * @return boolean always return true
+ * @access private
+ */
+ public function checkCookies()
+ {
+ }
+ /**
+ * updates the current cookies with a new set
+ *
+ * @param array $cookies new cookies with which to update current ones
+ * @return boolean always return true
+ * @access private
+ */
+ public function UpdateCookies($cookies)
+ {
+ }
+}
+/**
+ * caches instances of the wsdl class
+ *
+ * @author Scott Nichol
+ * @author Ingo Fischer
+ * @version $Id: class.wsdlcache.php,v 1.7 2007/04/17 16:34:03 snichol Exp $
+ * @access public
+ */
+class nusoap_wsdlcache
+{
+ /**
+ * @var resource
+ * @access private
+ */
+ public $fplock;
+ /**
+ * @var integer
+ * @access private
+ */
+ public $cache_lifetime;
+ /**
+ * @var string
+ * @access private
+ */
+ public $cache_dir;
+ /**
+ * @var string
+ * @access public
+ */
+ public $debug_str = '';
+ /**
+ * constructor
+ *
+ * @param string $cache_dir directory for cache-files
+ * @param integer $cache_lifetime lifetime for caching-files in seconds or 0 for unlimited
+ * @access public
+ */
+ public function __construct($cache_dir = '.', $cache_lifetime = 0)
+ {
+ }
+ /**
+ * creates the filename used to cache a wsdl instance
+ *
+ * @param string $wsdl The URL of the wsdl instance
+ * @return string The filename used to cache the instance
+ * @access private
+ */
+ public function createFilename($wsdl)
+ {
+ }
+ /**
+ * adds debug data to the class level debug string
+ *
+ * @param string $string debug data
+ * @access private
+ */
+ public function debug($string)
+ {
+ }
+ /**
+ * gets a wsdl instance from the cache
+ *
+ * @param string $wsdl The URL of the wsdl instance
+ * @return object wsdl The cached wsdl instance, null if the instance is not in the cache
+ * @access public
+ */
+ public function get($wsdl)
+ {
+ }
+ /**
+ * obtains the local mutex
+ *
+ * @param string $filename The Filename of the Cache to lock
+ * @param string $mode The open-mode ("r" or "w") or the file - affects lock-mode
+ * @return boolean Lock successfully obtained ?!
+ * @access private
+ */
+ public function obtainMutex($filename, $mode)
+ {
+ }
+ /**
+ * adds a wsdl instance to the cache
+ *
+ * @param wsdl $wsdl_instance The wsdl instance to add
+ * @return boolean WSDL successfully cached
+ * @access public
+ */
+ public function put($wsdl_instance)
+ {
+ }
+ /**
+ * releases the local mutex
+ *
+ * @param string $filename The Filename of the Cache to lock
+ * @return boolean Lock successfully released
+ * @access private
+ */
+ public function releaseMutex($filename)
+ {
+ }
+ /**
+ * removes a wsdl instance from the cache
+ *
+ * @param string $wsdl The URL of the wsdl instance
+ * @return boolean Whether there was an instance to remove
+ * @access public
+ */
+ public function remove($wsdl)
+ {
+ }
+}
+/**
+ * For backward compatibility
+ */
+class wsdlcache extends \nusoap_wsdlcache
+{
+}
+/**
+ * nusoap_client_mime client supporting MIME attachments defined at
+ * http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.
+ *
+ * @author Scott Nichol
+ * @author Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list
+ * @version $Id: nusoapmime.php,v 1.13 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class nusoap_client_mime extends \nusoap_client
+{
+ /**
+ * @var array Each array element in the return is an associative array with keys
+ * data, filename, contenttype, cid
+ * @access private
+ */
+ public $requestAttachments = array();
+ /**
+ * @var array Each array element in the return is an associative array with keys
+ * data, filename, contenttype, cid
+ * @access private
+ */
+ public $responseAttachments;
+ /**
+ * @var string
+ * @access private
+ */
+ public $mimeContentType;
+ /**
+ * adds a MIME attachment to the current request.
+ *
+ * If the $data parameter contains an empty string, this method will read
+ * the contents of the file named by the $filename parameter.
+ *
+ * If the $cid parameter is false, this method will generate the cid.
+ *
+ * @param string $data The data of the attachment
+ * @param string $filename The filename of the attachment (default is empty string)
+ * @param string $contenttype The MIME Content-Type of the attachment (default is application/octet-stream)
+ * @param string $cid The content-id (cid) of the attachment (default is false)
+ * @return string The content-id (cid) of the attachment
+ * @access public
+ */
+ public function addAttachment($data, $filename = '', $contenttype = 'application/octet-stream', $cid = \false)
+ {
+ }
+ /**
+ * clears the MIME attachments for the current request.
+ *
+ * @access public
+ */
+ public function clearAttachments()
+ {
+ }
+ /**
+ * gets the MIME attachments from the current response.
+ *
+ * Each array element in the return is an associative array with keys
+ * data, filename, contenttype, cid. These keys correspond to the parameters
+ * for addAttachment.
+ *
+ * @return array The attachments.
+ * @access public
+ */
+ public function getAttachments()
+ {
+ }
+ /**
+ * gets the HTTP body for the current request.
+ *
+ * @param string $soapmsg The SOAP payload
+ * @return string The HTTP body, which includes the SOAP payload
+ * @access private
+ */
+ public function getHTTPBody($soapmsg)
+ {
+ }
+ /**
+ * gets the HTTP content type for the current request.
+ *
+ * Note: getHTTPBody must be called before this.
+ *
+ * @return string the HTTP content type for the current request.
+ * @access private
+ */
+ public function getHTTPContentType()
+ {
+ }
+ /**
+ * gets the HTTP content type charset for the current request.
+ * returns false for non-text content types.
+ *
+ * Note: getHTTPBody must be called before this.
+ *
+ * @return string the HTTP content type charset for the current request.
+ * @access private
+ */
+ public function getHTTPContentTypeCharset()
+ {
+ }
+ /**
+ * processes SOAP message returned from server
+ *
+ * @param array $headers The HTTP headers
+ * @param string $data unprocessed response data from server
+ * @return mixed value of the message, decoded into a PHP type
+ * @access private
+ */
+ public function parseResponse($headers, $data)
+ {
+ }
+}
+class soapclientmime extends \nusoap_client_mime
+{
+}
+/**
+ * nusoap_server_mime server supporting MIME attachments defined at
+ * http://www.w3.org/TR/SOAP-attachments. It depends on the PEAR Mail_MIME library.
+ *
+ * @author Scott Nichol
+ * @author Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list
+ * @version $Id: nusoapmime.php,v 1.13 2010/04/26 20:15:08 snichol Exp $
+ * @access public
+ */
+class nusoap_server_mime extends \nusoap_server
+{
+ /**
+ * @var array Each array element in the return is an associative array with keys
+ * data, filename, contenttype, cid
+ * @access private
+ */
+ public $requestAttachments = array();
+ /**
+ * @var array Each array element in the return is an associative array with keys
+ * data, filename, contenttype, cid
+ * @access private
+ */
+ public $responseAttachments;
+ /**
+ * @var string
+ * @access private
+ */
+ public $mimeContentType;
+ /**
+ * adds a MIME attachment to the current response.
+ *
+ * If the $data parameter contains an empty string, this method will read
+ * the contents of the file named by the $filename parameter.
+ *
+ * If the $cid parameter is false, this method will generate the cid.
+ *
+ * @param string $data The data of the attachment
+ * @param string $filename The filename of the attachment (default is empty string)
+ * @param string $contenttype The MIME Content-Type of the attachment (default is application/octet-stream)
+ * @param string $cid The content-id (cid) of the attachment (default is false)
+ * @return string The content-id (cid) of the attachment
+ * @access public
+ */
+ public function addAttachment($data, $filename = '', $contenttype = 'application/octet-stream', $cid = \false)
+ {
+ }
+ /**
+ * clears the MIME attachments for the current response.
+ *
+ * @access public
+ */
+ public function clearAttachments()
+ {
+ }
+ /**
+ * gets the MIME attachments from the current request.
+ *
+ * Each array element in the return is an associative array with keys
+ * data, filename, contenttype, cid. These keys correspond to the parameters
+ * for addAttachment.
+ *
+ * @return array The attachments.
+ * @access public
+ */
+ public function getAttachments()
+ {
+ }
+ /**
+ * gets the HTTP body for the current response.
+ *
+ * @param string $soapmsg The SOAP payload
+ * @return string The HTTP body, which includes the SOAP payload
+ * @access private
+ */
+ public function getHTTPBody($soapmsg)
+ {
+ }
+ /**
+ * gets the HTTP content type for the current response.
+ *
+ * Note: getHTTPBody must be called before this.
+ *
+ * @return string the HTTP content type for the current response.
+ * @access private
+ */
+ public function getHTTPContentType()
+ {
+ }
+ /**
+ * gets the HTTP content type charset for the current response.
+ * returns false for non-text content types.
+ *
+ * Note: getHTTPBody must be called before this.
+ *
+ * @return string the HTTP content type charset for the current response.
+ * @access private
+ */
+ public function getHTTPContentTypeCharset()
+ {
+ }
+ /**
+ * processes SOAP message received from client
+ *
+ * @param array $headers The HTTP headers
+ * @param string $data unprocessed request data from client
+ * @return mixed value of the message, decoded into a PHP type
+ * @access private
+ */
+ public function parseRequest($headers, $data)
+ {
+ }
+}
+/*
+ * For backwards compatiblity
+ */
+class nusoapservermime extends \nusoap_server_mime
+{
+}
+// XML Schema Datatype Helper Functions
+//xsd:dateTime helpers
+/**
+ * convert unix timestamp to ISO 8601 compliant date string
+ *
+ * @param int $timestamp Unix time stamp
+ * @param boolean $utc Whether the time stamp is UTC or local
+ * @return false|string ISO 8601 date string or false
+ * @access public
+ */
+function timestamp_to_iso8601($timestamp, $utc = \true)
+{
+}
+/**
+ * convert ISO 8601 compliant date string to unix timestamp
+ *
+ * @param string $datestr ISO 8601 compliant date string
+ * @return false|int Unix timestamp (int) or false
+ * @access public
+ */
+function iso8601_to_timestamp($datestr)
+{
+}
+/**
+ * sleeps some number of microseconds
+ *
+ * @param string $usec the number of microseconds to sleep
+ * @access public
+ * @deprecated
+ */
+function usleepWindows($usec)
+{
+}
diff --git a/dev/tools/phan/stubs/pdo_cubrid.phan_php b/dev/tools/phan/stubs/pdo_cubrid.phan_php
new file mode 100644
index 0000000000000..d9ba885a60184
--- /dev/null
+++ b/dev/tools/phan/stubs/pdo_cubrid.phan_php
@@ -0,0 +1,3 @@
+ 110000
+ /**
+ * @var int
+ * @cvalue PQERRORS_SQLSTATE
+ */
+ const PGSQL_ERRORS_SQLSTATE = UNKNOWN;
+ #else
+ /**
+ * @var int
+ * @cvalue PQERRORS_TERSE
+ */
+ const PGSQL_ERRORS_SQLSTATE = UNKNOWN;
+ #endif
+
+ /* For lo_seek() */
+
+ /**
+ * @var int
+ * @cvalue SEEK_SET
+ */
+ const PGSQL_SEEK_SET = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue SEEK_CUR
+ */
+ const PGSQL_SEEK_CUR = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue SEEK_END
+ */
+ const PGSQL_SEEK_END = UNKNOWN;
+
+ /* For pg_result_status() return value type */
+
+ /**
+ * @var int
+ * @cvalue PGSQL_STATUS_LONG
+ */
+ const PGSQL_STATUS_LONG = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGSQL_STATUS_STRING
+ */
+ const PGSQL_STATUS_STRING = UNKNOWN;
+
+ /* For pg_result_status() return value */
+
+ /**
+ * @var int
+ * @cvalue PGRES_EMPTY_QUERY
+ */
+ const PGSQL_EMPTY_QUERY = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGRES_COMMAND_OK
+ */
+ const PGSQL_COMMAND_OK = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGRES_TUPLES_OK
+ */
+ const PGSQL_TUPLES_OK = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGRES_COPY_OUT
+ */
+ const PGSQL_COPY_OUT = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGRES_COPY_IN
+ */
+ const PGSQL_COPY_IN = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGRES_BAD_RESPONSE
+ */
+ const PGSQL_BAD_RESPONSE = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGRES_NONFATAL_ERROR
+ */
+ const PGSQL_NONFATAL_ERROR = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGRES_FATAL_ERROR
+ */
+ const PGSQL_FATAL_ERROR = UNKNOWN;
+
+ /* For pg_result_error_field() field codes */
+
+ /**
+ * @var int
+ * @cvalue PG_DIAG_SEVERITY
+ */
+ const PGSQL_DIAG_SEVERITY = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PG_DIAG_SQLSTATE
+ */
+ const PGSQL_DIAG_SQLSTATE = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PG_DIAG_MESSAGE_PRIMARY
+ */
+ const PGSQL_DIAG_MESSAGE_PRIMARY = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PG_DIAG_MESSAGE_DETAIL
+ */
+ const PGSQL_DIAG_MESSAGE_DETAIL = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PG_DIAG_MESSAGE_HINT
+ */
+ const PGSQL_DIAG_MESSAGE_HINT = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PG_DIAG_STATEMENT_POSITION
+ */
+ const PGSQL_DIAG_STATEMENT_POSITION = UNKNOWN;
+#ifdef PG_DIAG_INTERNAL_POSITION
+ /**
+ * @var int
+ * @cvalue PG_DIAG_INTERNAL_POSITION
+ */
+ const PGSQL_DIAG_INTERNAL_POSITION = UNKNOWN;
+#endif
+#ifdef PG_DIAG_INTERNAL_QUERY
+ /**
+ * @var int
+ * @cvalue PG_DIAG_INTERNAL_QUERY
+ */
+ const PGSQL_DIAG_INTERNAL_QUERY = UNKNOWN;
+#endif
+ /**
+ * @var int
+ * @cvalue PG_DIAG_CONTEXT
+ */
+ const PGSQL_DIAG_CONTEXT = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PG_DIAG_SOURCE_FILE
+ */
+ const PGSQL_DIAG_SOURCE_FILE = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PG_DIAG_SOURCE_LINE
+ */
+ const PGSQL_DIAG_SOURCE_LINE = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PG_DIAG_SOURCE_FUNCTION
+ */
+ const PGSQL_DIAG_SOURCE_FUNCTION = UNKNOWN;
+#ifdef PG_DIAG_SCHEMA_NAME
+ /**
+ * @var int
+ * @cvalue PG_DIAG_SCHEMA_NAME
+ */
+ const PGSQL_DIAG_SCHEMA_NAME = UNKNOWN;
+#endif
+#ifdef PG_DIAG_TABLE_NAME
+ /**
+ * @var int
+ * @cvalue PG_DIAG_TABLE_NAME
+ */
+ const PGSQL_DIAG_TABLE_NAME = UNKNOWN;
+#endif
+#ifdef PG_DIAG_COLUMN_NAME
+ /**
+ * @var int
+ * @cvalue PG_DIAG_COLUMN_NAME
+ */
+ const PGSQL_DIAG_COLUMN_NAME = UNKNOWN;
+#endif
+#ifdef PG_DIAG_DATATYPE_NAME
+ /**
+ * @var int
+ * @cvalue PG_DIAG_DATATYPE_NAME
+ */
+ const PGSQL_DIAG_DATATYPE_NAME = UNKNOWN;
+#endif
+#ifdef PG_DIAG_CONSTRAINT_NAME
+ /**
+ * @var int
+ * @cvalue PG_DIAG_CONSTRAINT_NAME
+ */
+ const PGSQL_DIAG_CONSTRAINT_NAME = UNKNOWN;
+#endif
+#ifdef PG_DIAG_SEVERITY_NONLOCALIZED
+ /**
+ * @var int
+ * @cvalue PG_DIAG_SEVERITY_NONLOCALIZED
+ */
+ const PGSQL_DIAG_SEVERITY_NONLOCALIZED = UNKNOWN;
+#endif
+
+ /* pg_convert options */
+
+ /**
+ * @var int
+ * @cvalue PGSQL_CONV_IGNORE_DEFAULT
+ */
+ const PGSQL_CONV_IGNORE_DEFAULT = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGSQL_CONV_FORCE_NULL
+ */
+ const PGSQL_CONV_FORCE_NULL = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGSQL_CONV_IGNORE_NOT_NULL
+ */
+ const PGSQL_CONV_IGNORE_NOT_NULL = UNKNOWN;
+
+ /* pg_insert/update/delete/select options */
+
+ /**
+ * @var int
+ * @cvalue PGSQL_DML_ESCAPE
+ */
+ const PGSQL_DML_ESCAPE = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGSQL_DML_NO_CONV
+ */
+ const PGSQL_DML_NO_CONV = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGSQL_DML_EXEC
+ */
+ const PGSQL_DML_EXEC = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGSQL_DML_ASYNC
+ */
+ const PGSQL_DML_ASYNC = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PGSQL_DML_STRING
+ */
+ const PGSQL_DML_STRING = UNKNOWN;
+#ifdef PQTRACE_SUPPPRESS_TIMESTAMPS
+ /**
+ * @var int
+ * @cvalue PQTRACE_SUPPRESS_TIMESTAMPS
+ */
+ const PGSQL_TRACE_SUPPRESS_TIMESTAMPS = UNKNOWN;
+#endif
+#ifdef PQTRACE_REGRESS_MODE
+ /**
+ * @var int
+ * @cvalue PQTRACE_REGRESS_MODE
+ */
+ const PGSQL_TRACE_REGRESS_MODE = UNKNOWN;
+#endif
+
+#ifdef HAVE_PG_CONTEXT_VISIBILITY
+ /* For pg_set_error_context_visibility() */
+
+ /**
+ * @var int
+ * @cvalue PQSHOW_CONTEXT_NEVER
+ */
+ const PGSQL_SHOW_CONTEXT_NEVER = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PQSHOW_CONTEXT_ERRORS
+ */
+ const PGSQL_SHOW_CONTEXT_ERRORS = UNKNOWN;
+ /**
+ * @var int
+ * @cvalue PQSHOW_CONTEXT_ALWAYS
+ */
+ const PGSQL_SHOW_CONTEXT_ALWAYS = UNKNOWN;
+#endif
+
+ function pg_connect(string $connection_string, int $flags = 0): PgSql\Connection|false {}
+
+ function pg_pconnect(string $connection_string, int $flags = 0): PgSql\Connection|false {}
+
+ function pg_connect_poll(PgSql\Connection $connection): int {}
+
+ function pg_close(?PgSql\Connection $connection = null): true {}
+
+ /** @refcount 1 */
+ function pg_dbname(?PgSql\Connection $connection = null): string {}
+
+ function pg_last_error(?PgSql\Connection $connection = null): string {}
+
+ /**
+ * @alias pg_last_error
+ * @deprecated
+ */
+ function pg_errormessage(?PgSql\Connection $connection = null): string {}
+
+ /** @refcount 1 */
+ function pg_options(?PgSql\Connection $connection = null): string {}
+
+ /** @refcount 1 */
+ function pg_port(?PgSql\Connection $connection = null): string {}
+
+ /** @refcount 1 */
+ function pg_tty(?PgSql\Connection $connection = null): string {}
+
+ /** @refcount 1 */
+ function pg_host(?PgSql\Connection $connection = null): string {}
+
+ /**
+ * @return array
+ * @refcount 1
+ */
+ function pg_version(?PgSql\Connection $connection = null): array {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @refcount 1
+ */
+ function pg_parameter_status($connection, string $name = UNKNOWN): string|false {}
+
+ function pg_ping(?PgSql\Connection $connection = null): bool {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @refcount 1
+ */
+ function pg_query($connection, string $query = UNKNOWN): PgSql\Result|false {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @alias pg_query
+ */
+ function pg_exec($connection, string $query = UNKNOWN): PgSql\Result|false {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @param string|array $query
+ * @refcount 1
+ */
+ function pg_query_params($connection, $query, array $params = UNKNOWN): PgSql\Result|false {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @refcount 1
+ */
+ function pg_prepare($connection, string $statement_name, string $query = UNKNOWN): PgSql\Result|false {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @param string|array $statement_name
+ * @refcount 1
+ */
+ function pg_execute($connection, $statement_name, array $params = UNKNOWN): PgSql\Result|false {}
+
+ function pg_num_rows(PgSql\Result $result): int {}
+
+ /**
+ * @alias pg_num_rows
+ * @deprecated
+ */
+ function pg_numrows(PgSql\Result $result): int {}
+
+ function pg_num_fields(PgSql\Result $result): int {}
+
+ /**
+ * @alias pg_num_fields
+ * @deprecated
+ */
+ function pg_numfields(PgSql\Result $result): int {}
+
+ function pg_affected_rows(PgSql\Result $result): int {}
+
+ /**
+ * @alias pg_affected_rows
+ * @deprecated
+ */
+ function pg_cmdtuples(PgSql\Result $result): int {}
+
+ function pg_last_notice(PgSql\Connection $connection, int $mode = PGSQL_NOTICE_LAST): array|string|bool {}
+
+ function pg_field_table(PgSql\Result $result, int $field, bool $oid_only = false): string|int|false {}
+
+ /** @refcount 1 */
+ function pg_field_name(PgSql\Result $result, int $field): string {}
+
+ /**
+ * @alias pg_field_name
+ * @deprecated
+ */
+ function pg_fieldname(PgSql\Result $result, int $field): string {}
+
+ function pg_field_size(PgSql\Result $result, int $field): int {}
+
+ /**
+ * @alias pg_field_size
+ * @deprecated
+ */
+ function pg_fieldsize(PgSql\Result $result, int $field): int {}
+
+ function pg_field_type(PgSql\Result $result, int $field): string {}
+
+ /**
+ * @alias pg_field_type
+ * @deprecated
+ */
+ function pg_fieldtype(PgSql\Result $result, int $field): string {}
+
+ /** @refcount 1 */
+ function pg_field_type_oid(PgSql\Result $result, int $field): string|int {}
+
+ function pg_field_num(PgSql\Result $result, string $field): int {}
+
+ /**
+ * @alias pg_field_num
+ * @deprecated
+ */
+ function pg_fieldnum(PgSql\Result $result, string $field): int {}
+
+ /**
+ * @param string|int|null $row
+ * @refcount 1
+ */
+ function pg_fetch_result(PgSql\Result $result, $row, string|int $field = UNKNOWN): string|false|null {}
+
+ /**
+ * @param string|int $row
+ * @alias pg_fetch_result
+ * @deprecated
+ */
+ function pg_result(PgSql\Result $result, $row, string|int $field = UNKNOWN): string|false|null {}
+
+ /**
+ * @return array|false
+ * @refcount 1
+ */
+ function pg_fetch_row(PgSql\Result $result, ?int $row = null, int $mode = PGSQL_NUM): array|false {}
+
+ /**
+ * @return array|false
+ * @refcount 1
+ */
+ function pg_fetch_assoc(PgSql\Result $result, ?int $row = null): array|false {}
+
+ /**
+ * @return array|false
+ * @refcount 1
+ */
+ function pg_fetch_array(PgSql\Result $result, ?int $row = null, int $mode = PGSQL_BOTH): array|false {}
+
+ /** @refcount 1 */
+ function pg_fetch_object(PgSql\Result $result, ?int $row = null, string $class = "stdClass", array $constructor_args = []): object|false {}
+
+ /**
+ * @return array
+ * @refcount 1
+ */
+ function pg_fetch_all(PgSql\Result $result, int $mode = PGSQL_ASSOC): array {}
+
+ /**
+ * @return array
+ * @refcount 1
+ */
+ function pg_fetch_all_columns(PgSql\Result $result, int $field = 0): array {}
+
+ function pg_result_seek(PgSql\Result $result, int $row): bool {}
+
+ /** @param string|int|null $row */
+ function pg_field_prtlen(PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false {}
+
+ /**
+ * @param string|int $row
+ * @deprecated
+ */
+ function pg_fieldprtlen(PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false {}
+
+ /** @param string|int|null $row */
+ function pg_field_is_null(PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false {}
+
+ /**
+ * @param string|int $row
+ * @deprecated
+ */
+ function pg_fieldisnull(PgSql\Result $result, $row, string|int $field = UNKNOWN): int|false {}
+
+ function pg_free_result(PgSql\Result $result): bool {}
+
+ /**
+ * @alias pg_free_result
+ * @deprecated
+ */
+ function pg_freeresult(PgSql\Result $result): bool {}
+
+ /** @refcount 1 */
+ function pg_last_oid(PgSql\Result $result): string|int|false {}
+
+ /**
+ * @alias pg_last_oid
+ * @deprecated
+ */
+ function pg_getlastoid(PgSql\Result $result): string|int|false {}
+
+ function pg_trace(string $filename, string $mode = "w", ?PgSql\Connection $connection = null, int $trace_mode = 0): bool {}
+
+ function pg_untrace(?PgSql\Connection $connection = null): true {}
+
+ /**
+ * @param PgSql\Connection $connection
+ * @param string|int $oid
+ * @refcount 1
+ */
+ function pg_lo_create($connection = UNKNOWN, $oid = UNKNOWN): string|int|false {}
+
+ /**
+ * @param PgSql\Connection $connection
+ * @param string|int $oid
+ * @alias pg_lo_create
+ * @deprecated
+ */
+ function pg_locreate($connection = UNKNOWN, $oid = UNKNOWN): string|int|false {}
+
+ /**
+ * @param PgSql\Connection $connection
+ * @param string|int $oid
+ */
+ function pg_lo_unlink($connection, $oid = UNKNOWN): bool {}
+
+ /**
+ * @param PgSql\Connection $connection
+ * @param string|int $oid
+ * @alias pg_lo_unlink
+ * @deprecated
+ */
+ function pg_lounlink($connection, $oid = UNKNOWN): bool {}
+
+ /**
+ * @param PgSql\Connection $connection
+ * @param string|int $oid
+ * @refcount 1
+ */
+ function pg_lo_open($connection, $oid = UNKNOWN, string $mode = UNKNOWN): PgSql\Lob|false {}
+
+ /**
+ * @param PgSql\Connection $connection
+ * @param string|int $oid
+ * @alias pg_lo_open
+ * @deprecated
+ */
+ function pg_loopen($connection, $oid = UNKNOWN, string $mode = UNKNOWN): PgSql\Lob|false {}
+
+ function pg_lo_close(PgSql\Lob $lob): bool {}
+
+ /**
+ * @alias pg_lo_close
+ * @deprecated
+ */
+ function pg_loclose(PgSql\Lob $lob): bool {}
+
+ /** @refcount 1 */
+ function pg_lo_read(PgSql\Lob $lob, int $length = 8192): string|false {}
+
+ /**
+ * @alias pg_lo_read
+ * @deprecated
+ */
+ function pg_loread(PgSql\Lob $lob, int $length = 8192): string|false {}
+
+ function pg_lo_write(PgSql\Lob $lob, string $data, ?int $length = null): int|false {}
+
+ /**
+ * @alias pg_lo_write
+ * @deprecated
+ */
+ function pg_lowrite(PgSql\Lob $lob, string $data, ?int $length = null): int|false {}
+
+ function pg_lo_read_all(PgSql\Lob $lob): int {}
+
+ /**
+ * @alias pg_lo_read_all
+ * @deprecated
+ */
+ function pg_loreadall(PgSql\Lob $lob): int {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @param string|int $filename
+ * @param string|int $oid
+ * @refcount 1
+ */
+ function pg_lo_import($connection, $filename = UNKNOWN, $oid = UNKNOWN): string|int|false {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @param string|int $filename
+ * @param string|int $oid
+ * @alias pg_lo_import
+ * @deprecated
+ */
+ function pg_loimport($connection, $filename = UNKNOWN, $oid = UNKNOWN): string|int|false {}
+
+ /**
+ * @param PgSql\Connection|string|int $connection
+ * @param string|int $oid
+ * @param string|int $filename
+ */
+ function pg_lo_export($connection, $oid = UNKNOWN, $filename = UNKNOWN): bool {}
+
+ /**
+ * @param PgSql\Connection|string|int $connection
+ * @param string|int $oid
+ * @param string|int $filename
+ * @alias pg_lo_export
+ * @deprecated
+ */
+ function pg_loexport($connection, $oid = UNKNOWN, $filename = UNKNOWN): bool {}
+
+ function pg_lo_seek(PgSql\Lob $lob, int $offset, int $whence = SEEK_CUR): bool {}
+
+ function pg_lo_tell(PgSql\Lob $lob): int {}
+
+ function pg_lo_truncate(PgSql\Lob $lob, int $size): bool {}
+
+ /** @param PgSql\Connection|int $connection */
+ function pg_set_error_verbosity($connection, int $verbosity = UNKNOWN): int|false {}
+
+ /** @param PgSql\Connection|string $connection */
+ function pg_set_client_encoding($connection, string $encoding = UNKNOWN): int {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @alias pg_set_client_encoding
+ * @deprecated
+ */
+ function pg_setclientencoding($connection, string $encoding = UNKNOWN): int {}
+
+ function pg_client_encoding(?PgSql\Connection $connection = null): string {}
+
+ /**
+ * @alias pg_client_encoding
+ * @deprecated
+ */
+ function pg_clientencoding(?PgSql\Connection $connection = null): string {}
+
+ function pg_end_copy(?PgSql\Connection $connection = null): bool {}
+
+ /** @param PgSql\Connection|string $connection */
+ function pg_put_line($connection, string $query = UNKNOWN): bool {}
+
+ /**
+ * @return array|false
+ * @refcount 1
+ */
+ function pg_copy_to(PgSql\Connection $connection, string $table_name, string $separator = "\t", string $null_as = "\\\\N"): array|false {}
+
+ function pg_copy_from(PgSql\Connection $connection, string $table_name, array $rows, string $separator = "\t", string $null_as = "\\\\N"): bool {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @refcount 1
+ */
+ function pg_escape_string($connection, string $string = UNKNOWN): string {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @refcount 1
+ */
+ function pg_escape_bytea($connection, string $string = UNKNOWN): string {}
+
+ /** @refcount 1 */
+ function pg_unescape_bytea(string $string): string {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @refcount 1
+ */
+ function pg_escape_literal($connection, string $string = UNKNOWN): string|false {}
+
+ /**
+ * @param PgSql\Connection|string $connection
+ * @refcount 1
+ */
+ function pg_escape_identifier($connection, string $string = UNKNOWN): string|false {}
+
+ /** @refcount 1 */
+ function pg_result_error(PgSql\Result $result): string|false {}
+
+ /** @refcount 1 */
+ function pg_result_error_field(PgSql\Result $result, int $field_code): string|false|null {}
+
+ function pg_connection_status(PgSql\Connection $connection): int {}
+
+ function pg_transaction_status(PgSql\Connection $connection): int {}
+
+ function pg_connection_reset(PgSql\Connection $connection): bool {}
+
+ function pg_cancel_query(PgSql\Connection $connection): bool {}
+
+ function pg_connection_busy(PgSql\Connection $connection): bool {}
+
+ function pg_send_query(PgSql\Connection $connection, string $query): int|bool {}
+
+ function pg_send_query_params(PgSql\Connection $connection, string $query, array $params): int|bool {}
+
+ function pg_send_prepare(PgSql\Connection $connection, string $statement_name, string $query): int|bool {}
+
+ function pg_send_execute(PgSql\Connection $connection, string $statement_name, array $params): int|bool {}
+
+ /** @refcount 1 */
+ function pg_get_result(PgSql\Connection $connection): PgSql\Result|false {}
+
+ /** @refcount 1 */
+ function pg_result_status(PgSql\Result $result, int $mode = PGSQL_STATUS_LONG): string|int {}
+
+ /**
+ * @return array
+ * @refcount 1
+ */
+ function pg_get_notify(PgSql\Connection $connection, int $mode = PGSQL_ASSOC): array|false {}
+
+ function pg_get_pid(PgSql\Connection $connection): int {}
+
+ /**
+ * @return resource|false
+ * @refcount 1
+ */
+ function pg_socket(PgSql\Connection $connection) {}
+
+ function pg_consume_input(PgSql\Connection $connection): bool {}
+
+ function pg_flush(PgSql\Connection $connection): int|bool {}
+
+ /**
+ * @return array|false
+ * @refcount 1
+ */
+ function pg_meta_data(PgSql\Connection $connection, string $table_name, bool $extended = false): array|false {}
+
+ /**
+ * @return array|false
+ * @refcount 1
+ */
+ function pg_convert(PgSql\Connection $connection, string $table_name, array $values, int $flags = 0): array|false {}
+
+ /** @refcount 1 */
+ function pg_insert(PgSql\Connection $connection, string $table_name, array $values, int $flags = PGSQL_DML_EXEC): PgSql\Result|string|bool {}
+
+ /** @refcount 1 */
+ function pg_update(PgSql\Connection $connection, string $table_name, array $values, array $conditions, int $flags = PGSQL_DML_EXEC): string|bool {}
+
+ /** @refcount 1 */
+ function pg_delete(PgSql\Connection $connection, string $table_name, array $conditions, int $flags = PGSQL_DML_EXEC): string|bool {}
+
+ /**
+ * @return array|string|false
+ * @refcount 1
+ */
+ function pg_select(PgSql\Connection $connection, string $table_name, array $conditions = [], int $flags = PGSQL_DML_EXEC, int $mode = PGSQL_ASSOC): array|string|false {}
+
+#ifdef HAVE_PG_CONTEXT_VISIBILITY
+ function pg_set_error_context_visibility(PgSql\Connection $connection, int $visibility): int {}
+#endif
+}
+
+namespace PgSql {
+ /**
+ * @strict-properties
+ * @not-serializable
+ */
+ final class Connection
+ {
+ }
+
+ /**
+ * @strict-properties
+ * @not-serializable
+ */
+ final class Result
+ {
+ }
+
+ /**
+ * @strict-properties
+ * @not-serializable
+ */
+ final class Lob
+ {
+ }
+
+}
diff --git a/dev/tools/phan/stubs/restler.php b/dev/tools/phan/stubs/restler.php
new file mode 100644
index 0000000000000..507d9415fce9f
--- /dev/null
+++ b/dev/tools/phan/stubs/restler.php
@@ -0,0 +1,4977 @@
+
+ */
+// phpcs:disable PEAR.Commenting,Generic.NamingConventions,PEAR.NamingConventions,Squiz.Scope.MethodScope.Missing
+
+namespace Luracast\Restler {
+ /**
+ * Interface for the cache system that manages caching of given data
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iCache
+ {
+ /**
+ * store data in the cache
+ *
+ * @abstract
+ *
+ * @param string $name
+ * @param mixed $data
+ *
+ * @return boolean true if successful
+ */
+ public function set($name, $data);
+ /**
+ * retrieve data from the cache
+ *
+ * @abstract
+ *
+ * @param string $name
+ * @param bool $ignoreErrors
+ *
+ * @return mixed
+ */
+ public function get($name, $ignoreErrors = false);
+ /**
+ * delete data from the cache
+ *
+ * @abstract
+ *
+ * @param string $name
+ * @param bool $ignoreErrors
+ *
+ * @return boolean true if successful
+ */
+ public function clear($name, $ignoreErrors = false);
+ /**
+ * check if the given name is cached
+ *
+ * @abstract
+ *
+ * @param string $name
+ *
+ * @return boolean true if cached
+ */
+ public function isCached($name);
+ }
+ /**
+ * Class ApcCache provides an APC based cache for Restler
+ *
+ * @category Framework
+ * @package Restler
+ * @author Joel R. Simpson
+ * @copyright 2013 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class ApcCache implements \Luracast\Restler\iCache
+ {
+ /**
+ * The namespace that all of the cached entries will be stored under. This allows multiple APIs to run concurrently.
+ *
+ * @var string
+ */
+ public static $namespace = 'restler';
+ /**
+ * store data in the cache
+ *
+ *
+ * @param string $name
+ * @param mixed $data
+ *
+ * @return boolean true if successful
+ */
+ public function set($name, $data)
+ {
+ }
+ /**
+ * retrieve data from the cache
+ *
+ *
+ * @param string $name
+ * @param bool $ignoreErrors
+ *
+ * @throws \Exception
+ * @return mixed
+ */
+ public function get($name, $ignoreErrors = false)
+ {
+ }
+ /**
+ * delete data from the cache
+ *
+ *
+ * @param string $name
+ * @param bool $ignoreErrors
+ *
+ * @throws \Exception
+ * @return boolean true if successful
+ */
+ public function clear($name, $ignoreErrors = false)
+ {
+ }
+ /**
+ * check if the given name is cached
+ *
+ *
+ * @param string $name
+ *
+ * @return boolean true if cached
+ */
+ public function isCached($name)
+ {
+ }
+ }
+ /**
+ * Class that implements spl_autoload facilities and multiple
+ * conventions support.
+ * Supports composer libraries and 100% PSR-0 compliant.
+ * In addition we enable namespace prefixing and class aliases.
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage Helper
+ * @author Nick Lombard
+ * @copyright 2012 Luracast
+ *
+ */
+ class AutoLoader
+ {
+ protected static $instance;
+ protected static $perfectLoaders;
+ protected static $rogueLoaders = array();
+ protected static $classMap = array();
+ protected static $aliases = array(
+ // aliases and prefixes instead of null list aliases
+ 'Luracast\\Restler' => null,
+ 'Luracast\\Restler\\Format' => null,
+ 'Luracast\\Restler\\Data' => null,
+ 'Luracast\\Restler\\Filter' => null,
+ );
+ /**
+ * Singleton instance facility.
+ *
+ * @static
+ * @return AutoLoader the current instance or new instance if none exists.
+ */
+ public static function instance()
+ {
+ }
+ /**
+ * Helper function to add a path to the include path.
+ * AutoLoader uses the include path to discover classes.
+ *
+ * @static
+ *
+ * @param $path string absolute or relative path.
+ *
+ * @return bool false if the path cannot be resolved
+ * or the resolved absolute path.
+ */
+ public static function addPath($path)
+ {
+ }
+ /**
+ * Other autoLoaders interfere and cause duplicate class loading.
+ * AutoLoader is capable enough to handle all standards so no need
+ * for others stumbling about.
+ *
+ * @return callable the one true auto loader.
+ */
+ public static function thereCanBeOnlyOne()
+ {
+ }
+ /**
+ * Seen this before cache handler.
+ * Facilitates both lookup and persist operations as well as convenience,
+ * load complete map functionality. The key can only be given a non falsy
+ * value once, this will be truthy for life.
+ *
+ * @param $key mixed class name considered or a collection of
+ * classMap entries
+ * @param $value mixed optional not required when doing a query on
+ * key. Default is false we haven't seen this
+ * class. Most of the time it will be the filename
+ * for include and is set to true if we are unable
+ * to load this class iow true == it does not exist.
+ * value may also be a callable auto loader function.
+ *
+ * @return mixed The known value for the key or false if key has no value
+ */
+ public static function seen($key, $value = false)
+ {
+ }
+ /**
+ * Protected constructor to enforce singleton pattern.
+ * Populate a default include path.
+ * All possible includes cant possibly be catered for and if you
+ * require another path then simply add it calling set_include_path.
+ */
+ protected function __construct()
+ {
+ }
+ /**
+ * Auto loader callback through __invoke object as function.
+ *
+ * @param $className string class/interface name to auto load
+ *
+ * @return mixed|null the reference from the include or null
+ */
+ public function __invoke($className)
+ {
+ }
+ }
+ /**
+ * Parses the PHPDoc comments for metadata. Inspired by `Documentor` code base.
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage Helper
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class CommentParser
+ {
+ /**
+ * name for the embedded data
+ *
+ * @var string
+ */
+ public static $embeddedDataName = 'properties';
+ /**
+ * Regular Expression pattern for finding the embedded data and extract
+ * the inner information. It is used with preg_match.
+ *
+ * @var string
+ */
+ public static $embeddedDataPattern = '/```(\\w*)[\\s]*(([^`]*`{0,2}[^`]+)*)```/ms';
+ /**
+ * Pattern will have groups for the inner details of embedded data
+ * this index is used to locate the data portion.
+ *
+ * @var int
+ */
+ public static $embeddedDataIndex = 2;
+ /**
+ * Delimiter used to split the array data.
+ *
+ * When the name portion is of the embedded data is blank auto detection
+ * will be used and if URLEncodedFormat is detected as the data format
+ * the character specified will be used as the delimiter to find split
+ * array data.
+ *
+ * @var string
+ */
+ public static $arrayDelimiter = ',';
+ /**
+ * @var array annotations that support array value
+ */
+ public static $allowsArrayValue = array('choice' => true, 'select' => true, 'properties' => true);
+ /**
+ * character sequence used to escape \@
+ */
+ const escapedAtChar = '\\@';
+ /**
+ * character sequence used to escape end of comment
+ */
+ const escapedCommendEnd = '{@*}';
+ /**
+ * Instance of Restler class injected at runtime.
+ *
+ * @var Restler
+ */
+ public $restler;
+ /**
+ * Parse the comment and extract the data.
+ *
+ * @static
+ *
+ * @param $comment
+ * @param bool $isPhpDoc
+ *
+ * @return array associative array with the extracted values
+ */
+ public static function parse($comment, $isPhpDoc = true)
+ {
+ }
+ /**
+ * Removes the comment tags from each line of the comment.
+ *
+ * @static
+ *
+ * @param string $comment PhpDoc style comment
+ *
+ * @return string comments with out the tags
+ */
+ public static function removeCommentTags($comment)
+ {
+ }
+ }
+}
+
+namespace {
+ /**
+ * Interface iAuthenticate only exists for compatibility mode for Restler 2 and below, it should
+ * not be used otherwise.
+ */
+ interface iAuthenticate
+ {
+ public function __isAuthenticated();
+ }
+}
+
+namespace Luracast\Restler {
+ /**
+ * Interface for composing response
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage result
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iCompose
+ {
+ /**
+ * Result of an api call is passed to this method
+ * to create a standard structure for the data
+ *
+ * @param mixed $result can be a primitive or array or object
+ */
+ public function response($result);
+ /**
+ * When the api call results in RestException this method
+ * will be called to return the error message
+ *
+ * @param RestException $exception exception that has reasons for failure
+ *
+ * @return
+ */
+ public function message(\Luracast\Restler\RestException $exception);
+ }
+ /**
+ * Default Composer to provide standard structure for all HTTP responses
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage result
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Compose implements \Luracast\Restler\iCompose
+ {
+ /**
+ * @var bool When restler is not running in production mode, this value will
+ * be checked to include the debug information on error response
+ */
+ public static $includeDebugInfo = true;
+ /**
+ * Current Restler instance
+ * Injected at runtime
+ *
+ * @var Restler
+ */
+ public $restler;
+ /**
+ * Result of an api call is passed to this method
+ * to create a standard structure for the data
+ *
+ * @param mixed $result can be a primitive or array or object
+ *
+ * @return mixed
+ */
+ public function response($result)
+ {
+ }
+ /**
+ * When the api call results in RestException this method
+ * will be called to return the error message
+ *
+ * @param RestException $exception exception that has reasons for failure
+ *
+ * @return array
+ */
+ public function message(\Luracast\Restler\RestException $exception)
+ {
+ }
+ }
+}
+
+namespace Luracast\Restler\Data {
+ /**
+ * Restler is using many ValueObjects across to make it easy for the developers
+ * to use them with the help of code hinting etc.,
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iValueObject
+ {
+ /**
+ * This static method is called for creating an instance of the class by
+ * passing the initiation values as an array.
+ *
+ * @static
+ * @abstract
+ *
+ * @param array $properties
+ *
+ * @return iValueObject
+ */
+ public static function __set_state(array $properties);
+ /**
+ * This method provides a string representation for the instance
+ *
+ * @return string
+ */
+ public function __toString();
+ }
+ /**
+ * ValueObject base class, you may use this class to create your
+ * iValueObjects quickly
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class ValueObject implements \Luracast\Restler\Data\iValueObject
+ {
+ public function __toString()
+ {
+ }
+ public static function __set_state(array $properties)
+ {
+ }
+ public function __toArray()
+ {
+ }
+ }
+ /**
+ * ValueObject for api method info. All needed information about a api method
+ * is stored here
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class ApiMethodInfo extends \Luracast\Restler\Data\ValueObject
+ {
+ /**
+ * @var string target url
+ */
+ public $url;
+ /**
+ * @var string
+ */
+ public $className;
+ /**
+ * @var string
+ */
+ public $methodName;
+ /**
+ * @var array parameters to be passed to the api method
+ */
+ public $parameters = array();
+ /**
+ * @var array information on parameters in the form of array(name => index)
+ */
+ public $arguments = array();
+ /**
+ * @var array default values for parameters if any
+ * in the form of array(index => value)
+ */
+ public $defaults = array();
+ /**
+ * @var array key => value pair of method meta information
+ */
+ public $metadata = array();
+ /**
+ * @var int access level
+ * 0 - @public - available for all
+ * 1 - @hybrid - both public and protected (enhanced info for authorized)
+ * 2 - @protected comment - only for authenticated users
+ * 3 - protected method - only for authenticated users
+ */
+ public $accessLevel = 0;
+ }
+ /**
+ * Convenience class for Array manipulation
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Arr
+ {
+ /**
+ * Deep copy given array
+ *
+ * @param array $arr
+ *
+ * @return array
+ */
+ public static function copy(array $arr)
+ {
+ }
+ }
+ /**
+ * Invalid Exception
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Invalid extends \Exception
+ {
+ }
+ /**
+ * Validation classes should implement this interface
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iValidate
+ {
+ /**
+ * method used for validation.
+ *
+ * @param mixed $input
+ * data that needs to be validated
+ * @param ValidationInfo $info
+ * information to be used for validation
+ * @return boolean false in case of failure or fixed value in the expected
+ * type
+ * @throws \Luracast\Restler\RestException 400 with information about the
+ * failed
+ * validation
+ */
+ public static function validate($input, \Luracast\Restler\Data\ValidationInfo $info);
+ }
+ /**
+ * Convenience class that converts the given object
+ * in to associative array
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Obj
+ {
+ /**
+ * @var bool|string|callable
+ */
+ public static $stringEncoderFunction = false;
+ /**
+ * @var bool|string|callable
+ */
+ public static $numberEncoderFunction = false;
+ /**
+ * @var array key value pairs for fixing value types using functions.
+ * For example
+ *
+ * 'id'=>'intval' will make sure all values of the id properties
+ * will be converted to integers intval function
+ * 'password'=> null will remove all the password entries
+ */
+ public static $fix = array();
+ /**
+ * @var string character that is used to identify sub objects
+ *
+ * For example
+ *
+ * when Object::$separatorChar = '.';
+ *
+ * array('my.object'=>true) will result in
+ *
+ * array(
+ * 'my'=>array('object'=>true)
+ * );
+ */
+ public static $separatorChar = null;
+ /**
+ * @var bool set it to true when empty arrays, blank strings, null values
+ * to be automatically removed from response
+ */
+ public static $removeEmpty = false;
+ /**
+ * @var bool set it to true to remove all null values from the result
+ */
+ public static $removeNull = false;
+ /**
+ * Convenience function that converts the given object
+ * in to associative array
+ *
+ * @static
+ *
+ * @param mixed $object that needs to be converted
+ *
+ * @param bool $forceObjectTypeWhenEmpty when set to true outputs
+ * actual type (array or
+ * object) rather than
+ * always an array when the
+ * array/object is empty
+ *
+ * @return array
+ */
+ public static function toArray($object, $forceObjectTypeWhenEmpty = false)
+ {
+ }
+ public function __get($name)
+ {
+ }
+ public function __set($name, $function)
+ {
+ }
+ public function __isset($name)
+ {
+ }
+ public function __unset($name)
+ {
+ }
+ }
+ /**
+ * Convenience class for String manipulation
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Text
+ {
+ /**
+ * Given haystack contains the needle or not?
+ *
+ * @param string $haystack
+ * @param string $needle
+ * @param bool $caseSensitive
+ *
+ * @return bool
+ */
+ public static function contains($haystack, $needle, $caseSensitive = true)
+ {
+ }
+ /**
+ * Given haystack begins with the needle or not?
+ *
+ * @param string $haystack
+ * @param string $needle
+ *
+ * @return bool
+ */
+ public static function beginsWith($haystack, $needle)
+ {
+ }
+ /**
+ * Given haystack ends with the needle or not?
+ *
+ * @param string $haystack
+ * @param string $needle
+ *
+ * @return bool
+ */
+ public static function endsWith($haystack, $needle)
+ {
+ }
+ /**
+ * Convert camelCased or underscored string in to a title
+ *
+ * @param string $name
+ *
+ * @return string
+ */
+ public static function title($name)
+ {
+ }
+ /**
+ * Convert given string to be used as a slug or css class
+ *
+ * @param string $name
+ * @return string
+ */
+ public static function slug($name)
+ {
+ }
+ }
+ /**
+ * ValueObject for validation information. An instance is created and
+ * populated by Restler to pass it to iValidate implementing classes for
+ * validation
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class ValidationInfo implements \Luracast\Restler\Data\iValueObject
+ {
+ /**
+ * @var mixed given value for the parameter
+ */
+ public $value;
+ /**
+ * @var string proper name for given parameter
+ */
+ public $label;
+ /**
+ * @var string html element that can be used to represent the parameter for
+ * input
+ */
+ public $field;
+ /**
+ * @var mixed default value for the parameter
+ */
+ public $default;
+ /**
+ * Name of the variable being validated
+ *
+ * @var string variable name
+ */
+ public $name;
+ /**
+ * @var bool is it required or not
+ */
+ public $required;
+ /**
+ * @var string body or header or query where this parameter is coming from
+ * in the http request
+ */
+ public $from;
+ /**
+ * Data type of the variable being validated.
+ * It will be mostly string
+ *
+ * @var string|array multiple types are specified it will be of
+ * type array otherwise it will be a string
+ */
+ public $type;
+ /**
+ * When the type is array, this field is used to define the type of the
+ * contents of the array
+ *
+ * @var string|null when all the items in an array are of certain type, we
+ * can set this property. It will be null if the items can be of any type
+ */
+ public $contentType;
+ /**
+ * Should we attempt to fix the value?
+ * When set to false validation class should throw
+ * an exception or return false for the validate call.
+ * When set to true it will attempt to fix the value if possible
+ * or throw an exception or return false when it cant be fixed.
+ *
+ * @var boolean true or false
+ */
+ public $fix = false;
+ /**
+ * @var array of children to be validated
+ */
+ public $children = null;
+ // ==================================================================
+ //
+ // VALUE RANGE
+ //
+ // ------------------------------------------------------------------
+ /**
+ * Given value should match one of the values in the array
+ *
+ * @var array of choices to match to
+ */
+ public $choice;
+ /**
+ * If the type is string it will set the lower limit for length
+ * else will specify the lower limit for the value
+ *
+ * @var number minimum value
+ */
+ public $min;
+ /**
+ * If the type is string it will set the upper limit limit for length
+ * else will specify the upper limit for the value
+ *
+ * @var number maximum value
+ */
+ public $max;
+ // ==================================================================
+ //
+ // REGEX VALIDATION
+ //
+ // ------------------------------------------------------------------
+ /**
+ * RegEx pattern to match the value
+ *
+ * @var string regular expression
+ */
+ public $pattern;
+ // ==================================================================
+ //
+ // CUSTOM VALIDATION
+ //
+ // ------------------------------------------------------------------
+ /**
+ * Rules specified for the parameter in the php doc comment.
+ * It is passed to the validation method as the second parameter
+ *
+ * @var array custom rule set
+ */
+ public $rules;
+ /**
+ * Specifying a custom error message will override the standard error
+ * message return by the validator class
+ *
+ * @var string custom error response
+ */
+ public $message;
+ // ==================================================================
+ //
+ // METHODS
+ //
+ // ------------------------------------------------------------------
+ /**
+ * Name of the method to be used for validation.
+ * It will be receiving two parameters $input, $rules (array)
+ *
+ * @var string validation method name
+ */
+ public $method;
+ /**
+ * Instance of the API class currently being called. It will be null most of
+ * the time. Only when method is defined it will contain an instance.
+ * This behavior is for lazy loading of the API class
+ *
+ * @var null|object will be null or api class instance
+ */
+ public $apiClassInstance = null;
+ public static function numericValue($value)
+ {
+ }
+ public static function arrayValue($value)
+ {
+ }
+ public static function stringValue($value, $glue = ',')
+ {
+ }
+ public static function booleanValue($value)
+ {
+ }
+ public static function filterArray(array $data, $keepNumericKeys)
+ {
+ }
+ public function __toString()
+ {
+ }
+ public function __construct(array $info)
+ {
+ }
+ /**
+ * Magic Method used for creating instance at run time
+ */
+ public static function __set_state(array $info)
+ {
+ }
+ }
+ /**
+ * Default Validator class used by Restler. It can be replaced by any
+ * iValidate implementing class by setting Defaults::$validatorClass
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Validator implements \Luracast\Restler\Data\iValidate
+ {
+ public static $holdException = false;
+ public static $exceptions = array();
+ public static $preFilters = array(
+ //'*' => 'some_global_filter', //applied to all parameters
+ 'string' => 'trim',
+ );
+ /**
+ * Validate alphabetic characters.
+ *
+ * Check that given value contains only alphabetic characters.
+ *
+ * @param $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ *
+ * @throws Invalid
+ */
+ public static function alpha($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate UUID strings.
+ *
+ * Check that given value contains only alpha numeric characters and the length is 36 chars.
+ *
+ * @param $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ *
+ * @throws Invalid
+ */
+ public static function uuid($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate alpha numeric characters.
+ *
+ * Check that given value contains only alpha numeric characters.
+ *
+ * @param $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ *
+ * @throws Invalid
+ */
+ public static function alphanumeric($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate printable characters.
+ *
+ * Check that given value contains only printable characters.
+ *
+ * @param $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ *
+ * @throws Invalid
+ */
+ public static function printable($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate hexadecimal digits.
+ *
+ * Check that given value contains only hexadecimal digits.
+ *
+ * @param $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ *
+ * @throws Invalid
+ */
+ public static function hex($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Color specified as hexadecimals
+ *
+ * Check that given value contains only color.
+ *
+ * @param $input
+ * @param ValidationInfo|null $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function color($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate Telephone number
+ *
+ * Check if the given value is numeric with or without a `+` prefix
+ *
+ * @param $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ *
+ * @throws Invalid
+ */
+ public static function tel($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate Email
+ *
+ * Check if the given string is a valid email
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function email($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate IP Address
+ *
+ * Check if the given string is a valid ip address
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function ip($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate Url
+ *
+ * Check if the given string is a valid url
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function url($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * MySQL Date
+ *
+ * Check if the given string is a valid date in YYYY-MM-DD format
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function date($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * MySQL DateTime
+ *
+ * Check if the given string is a valid date and time in YYY-MM-DD HH:MM:SS format
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function datetime($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Alias for Time
+ *
+ * Check if the given string is a valid time in HH:MM:SS format
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function time24($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Time
+ *
+ * Check if the given string is a valid time in HH:MM:SS format
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function time($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Time in 12 hour format
+ *
+ * Check if the given string is a valid time 12 hour format
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return string
+ * @throws Invalid
+ */
+ public static function time12($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Unix Timestamp
+ *
+ * Check if the given value is a valid timestamp
+ *
+ * @param String $input
+ * @param ValidationInfo $info
+ *
+ * @return int
+ * @throws Invalid
+ */
+ public static function timestamp($input, \Luracast\Restler\Data\ValidationInfo $info = null)
+ {
+ }
+ /**
+ * Validate the given input
+ *
+ * Validates the input and attempts to fix it when fix is requested
+ *
+ * @param mixed $input
+ * @param ValidationInfo $info
+ * @param null $full
+ *
+ * @throws \Exception
+ * @return array|bool|float|int|mixed|null|number|string
+ */
+ public static function validate($input, \Luracast\Restler\Data\ValidationInfo $info, $full = null)
+ {
+ }
+ }
+}
+
+namespace Luracast\Restler {
+ /**
+ * Static class to hold all restler defaults, change the values to suit your
+ * needs in the gateway file (index.php), you may also allow the api users to
+ * change them per request by adding the properties to Defaults::$overridables
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Defaults
+ {
+ // ==================================================================
+ //
+ // Class Mappings
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var string of name of the class that implements
+ * \Luracast\Restler\iCache the cache class to be used
+ */
+ public static $cacheClass = 'Luracast\\Restler\\HumanReadableCache';
+ /**
+ * @var string full path of the directory where all the generated files will
+ * be kept. When set to null (default) it will use the cache folder that is
+ * in the same folder as index.php (gateway)
+ */
+ public static $cacheDirectory;
+ /**
+ * @var string of name of the class that implements
+ * \Luracast\Restler\Data\iValidate the validator class to be used
+ */
+ public static $validatorClass = 'Luracast\\Restler\\Data\\Validator';
+ /**
+ * @var string name of the class that implements \Luracast\Restler\iCompose
+ * the class to be used to compose the response
+ */
+ public static $composeClass = 'Luracast\\Restler\\Compose';
+ // ==================================================================
+ //
+ // Routing
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var bool should auto routing for public and protected api methods
+ * should be enabled by default or not. Set this to false to get
+ * Restler 1.0 style behavior
+ */
+ public static $autoRoutingEnabled = true;
+ /**
+ * @var boolean avoids creating multiple routes that can increase the
+ * ambiguity when set to true. when a method parameter is optional it is
+ * not mapped to the url and should only be used in request body or as
+ * query string `/resource?id=value`. When a parameter is required and is
+ * scalar, it will be mapped as part of the url `/resource/{id}`
+ */
+ public static $smartAutoRouting = true;
+ /**
+ * @var boolean enables more ways of finding the parameter data in the request.
+ * If you need backward compatibility with Restler 2 or below turn this off
+ */
+ public static $smartParameterParsing = true;
+ // ==================================================================
+ //
+ // API Version Management
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var null|string name that is used for vendor specific media type and
+ * api version using the Accept Header for example
+ * application/vnd.{vendor}-v1+json
+ *
+ * Keep this null if you do not want to use vendor MIME for specifying api version
+ */
+ public static $apiVendor = null;
+ /**
+ * @var bool set it to true to force vendor specific MIME for versioning.
+ * It will be automatically set to true when Defaults::$vendor is not
+ * null and client is requesting for the custom MIME type
+ */
+ public static $useVendorMIMEVersioning = false;
+ /**
+ * @var bool set it to true to use enableUrl based versioning
+ */
+ public static $useUrlBasedVersioning = false;
+ // ==================================================================
+ //
+ // Request
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var string name to be used for the method parameter to capture the
+ * entire request data
+ */
+ public static $fullRequestDataName = 'request_data';
+ /**
+ * @var string name of the property that can sent through $_GET or $_POST to
+ * override the http method of the request. Set it to null or
+ * blank string to disable http method override through request
+ * parameters.
+ */
+ public static $httpMethodOverrideProperty = 'http_method';
+ /**
+ * @var bool should auto validating api parameters should be enabled by
+ * default or not. Set this to false to avoid validation.
+ */
+ public static $autoValidationEnabled = true;
+ /**
+ * @var string name of the class that implements iUser interface to identify
+ * the user for caching purposes
+ */
+ public static $userIdentifierClass = 'Luracast\\Restler\\User';
+ // ==================================================================
+ //
+ // Response
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var bool HTTP status codes are set on all responses by default.
+ * Some clients (like flash, mobile) have trouble dealing with non-200
+ * status codes on error responses.
+ *
+ * You can set it to true to force a HTTP 200 status code on all responses,
+ * even when errors occur. If you suppress status codes, look for an error
+ * response to determine if an error occurred.
+ */
+ public static $suppressResponseCode = false;
+ public static $supportedCharsets = array('utf-8', 'iso-8859-1');
+ public static $supportedLanguages = array('en', 'en-US');
+ public static $charset = 'utf-8';
+ public static $language = 'en';
+ /**
+ * @var bool when set to true, it will exclude the response body
+ */
+ public static $emptyBodyForNullResponse = true;
+ /**
+ * @var bool when set to true, the response will not be outputted directly into the buffer.
+ * If set, Restler::handle() will return the response as a string.
+ */
+ public static $returnResponse = false;
+ /**
+ * @var bool enables CORS support
+ */
+ public static $crossOriginResourceSharing = false;
+ public static $accessControlAllowOrigin = '*';
+ public static $accessControlAllowMethods = 'GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD';
+ // ==================================================================
+ //
+ // Header
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var array default Cache-Control template that used to set the
+ * Cache-Control header and has two values, first one is used when
+ * Defaults::$headerExpires is 0 and second one when it has some time
+ * value specified. When only one value is specified it will be used for
+ * both cases
+ */
+ public static $headerCacheControl = array(
+ 'no-cache, must-revalidate',
+ /* "public, " or "private, " will be prepended based on api method
+ * called (public or protected)
+ */
+ 'max-age={expires}, must-revalidate',
+ );
+ /**
+ * @var int sets the content to expire immediately when set to zero
+ * alternatively you can specify the number of seconds the content will
+ * expire. This setting can be altered at api level using php doc comment
+ * with @expires numOfSeconds
+ */
+ public static $headerExpires = 0;
+ // ==================================================================
+ //
+ // Access Control
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var null|callable if the api methods are under access control mechanism
+ * you can attach a function here that returns true or false to determine
+ * visibility of a protected api method. this function will receive method
+ * info as the only parameter.
+ */
+ public static $accessControlFunction = null;
+ /**
+ * @var int set the default api access mode
+ * value of 0 = public api
+ * value of 1 = hybrid api using `@access hybrid` comment
+ * value of 2 = protected api using `@access protected` comment
+ * value of 3 = protected api using `protected function` method
+ */
+ public static $apiAccessLevel = 0;
+ /**
+ * @var string authentication method to be called in iAuthenticate
+ * Interface
+ */
+ public static $authenticationMethod = '__isAllowed';
+ /**
+ * @var int time in milliseconds for bandwidth throttling,
+ * which is the minimum response time for each api request. You can
+ * change it per api method by setting `@throttle 3000` in php doc
+ * comment either at the method level or class level
+ */
+ public static $throttle = 0;
+ // ==================================================================
+ //
+ // Overrides for API User
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var array use 'alternativeName'=> 'actualName' to set alternative
+ * names that can be used to represent the api method parameters and/or
+ * static properties of Defaults
+ */
+ public static $aliases = array(
+ /**
+ * suppress_response_codes=true as an URL parameter to force
+ * a HTTP 200 status code on all responses
+ */
+ 'suppress_response_codes' => 'suppressResponseCode',
+ );
+ /**
+ * @var array determines the defaults that can be overridden by the api
+ * user by passing them as URL parameters
+ */
+ public static $overridables = array('suppressResponseCode');
+ /**
+ * @var array contains validation details for defaults to be used when
+ * set through URL parameters
+ */
+ public static $validation = array('suppressResponseCode' => array('type' => 'bool'), 'headerExpires' => array('type' => 'int', 'min' => 0));
+ // ==================================================================
+ //
+ // Overrides API Developer
+ //
+ // ------------------------------------------------------------------
+ /**
+ * @var array determines what are the phpdoc comment tags that will
+ * override the Defaults here with their values
+ */
+ public static $fromComments = array(
+ /**
+ * use PHPDoc comments such as the following
+ * `
+ *
+ * @cache no-cache, must-revalidate` to set the Cache-Control header
+ * for a specific api method
+ */
+ 'cache' => 'headerCacheControl',
+ /**
+ * use PHPDoc comments such as the following
+ * `
+ *
+ * @expires 50` to set the Expires header
+ * for a specific api method
+ */
+ 'expires' => 'headerExpires',
+ /**
+ * use PHPDoc comments such as the following
+ * `
+ *
+ * @throttle 300`
+ * to set the bandwidth throttling for 300 milliseconds
+ * for a specific api method
+ */
+ 'throttle' => 'throttle',
+ /**
+ * enable or disable smart auto routing from method comments
+ * this one is hardwired so cant be turned off
+ * it is placed here just for documentation purpose
+ */
+ 'smart-auto-routing' => 'smartAutoRouting',
+ );
+ // ==================================================================
+ //
+ // Util
+ //
+ // ------------------------------------------------------------------
+ /**
+ * Use this method to set value to a static properly of Defaults when
+ * you want to make sure only proper values are taken in with the help of
+ * validation
+ *
+ * @static
+ *
+ * @param string $name name of the static property
+ * @param mixed $value value to set the property to
+ *
+ * @return bool
+ */
+ public static function setProperty($name, $value)
+ {
+ }
+ }
+ class EventDispatcher
+ {
+ protected static $_waitList = array();
+ public static $self;
+ protected $events = array();
+ public function __construct()
+ {
+ }
+ public static function __callStatic($eventName, $params)
+ {
+ }
+ public function __call($eventName, $params)
+ {
+ }
+ public static function addListener($eventName, \Closure $callback)
+ {
+ }
+ public function on(array $eventHandlers)
+ {
+ }
+ /**
+ * Fire an event to notify all listeners
+ *
+ * @param string $eventName name of the event
+ * @param array $params event related data
+ */
+ protected function dispatch($eventName, array $params = array())
+ {
+ }
+ }
+ /**
+ * Interface iProvideMultiVersionApi
+ * @package Luracast\Restler
+ *
+ *
+ */
+ interface iProvideMultiVersionApi
+ {
+ /**
+ * Maximum api version supported by the api class
+ * @return int
+ */
+ public static function __getMaximumSupportedVersion();
+ }
+ /**
+ * Class Explorer
+ *
+ * @package Luracast\Restler
+ *
+ * @access hybrid
+ * @version 3.0.0rc6
+ */
+ class Explorer implements \Luracast\Restler\iProvideMultiVersionApi
+ {
+ const SWAGGER = '2.0';
+ /**
+ * @var array http schemes supported. http or https or both http and https
+ */
+ public static $schemes = array();
+ /**
+ * @var bool should protected resources be shown to unauthenticated users?
+ */
+ public static $hideProtected = true;
+ /**
+ * @var bool should we use format as extension?
+ */
+ public static $useFormatAsExtension = true;
+ /*
+ * @var bool can we accept scalar values (string, int, float etc) as the request body?
+ */
+ public static $allowScalarValueOnRequestBody = false;
+ /**
+ * @var array all http methods specified here will be excluded from
+ * documentation
+ */
+ public static $excludedHttpMethods = array('OPTIONS');
+ /**
+ * @var array all paths beginning with any of the following will be excluded
+ * from documentation
+ */
+ public static $excludedPaths = array();
+ /**
+ * @var bool
+ */
+ public static $placeFormatExtensionBeforeDynamicParts = true;
+ /**
+ * @var bool should we group all the operations with the same url or not
+ */
+ public static $groupOperations = false;
+ /**
+ * @var string class that holds metadata as static properties
+ */
+ public static $infoClass = 'Luracast\\Restler\\ExplorerInfo';
+ /**
+ * Injected at runtime
+ *
+ * @var Restler instance of restler
+ */
+ public $restler;
+ /**
+ * @var string when format is not used as the extension this property is
+ * used to set the extension manually
+ */
+ public $formatString = '';
+ /**
+ * @var array type mapping for converting data types to JSON-Schema Draft 4
+ * Which is followed by swagger 1.2 spec
+ */
+ public static $dataTypeAlias = array(
+ //'string' => 'string',
+ 'int' => 'integer',
+ 'number' => 'number',
+ 'float' => array('number', 'float'),
+ 'bool' => 'boolean',
+ //'boolean' => 'boolean',
+ //'NULL' => 'null',
+ 'array' => 'array',
+ //'object' => 'object',
+ 'stdClass' => 'object',
+ 'mixed' => 'string',
+ 'date' => array('string', 'date'),
+ 'datetime' => array('string', 'date-time'),
+ );
+ /**
+ * @var array configurable symbols to differentiate public, hybrid and
+ * protected api
+ */
+ public static $apiDescriptionSuffixSymbols = array(
+ 0 => ' 🔓',
+ //' ', //public api
+ 1 => ' ◑',
+ //' ', //hybrid api
+ 2 => ' 🔐',
+ );
+ protected $models = array();
+ /**
+ * @var bool|stdClass
+ */
+ protected $_fullDataRequested = false;
+ protected $crud = array('POST' => 'create', 'GET' => 'retrieve', 'PUT' => 'update', 'DELETE' => 'delete', 'PATCH' => 'partial update');
+ protected static $prefixes = array('get' => 'retrieve', 'index' => 'list', 'post' => 'create', 'put' => 'update', 'patch' => 'modify', 'delete' => 'remove');
+ protected $_authenticated = false;
+ protected $cacheName = '';
+ /**
+ * Serve static files for exploring
+ *
+ * Serves explorer html, css, and js files
+ *
+ * @url GET *
+ */
+ public function get()
+ {
+ }
+ /**
+ * @return stdClass
+ */
+ public function swagger()
+ {
+ }
+ /**
+ * Maximum api version supported by the api class
+ * @return int
+ */
+ public static function __getMaximumSupportedVersion()
+ {
+ }
+ }
+ /**
+ * Class ExplorerInfo
+ * @package Luracast\Restler
+ *
+ * @version 3.0.0rc6
+ */
+ class ExplorerInfo
+ {
+ public static $title = 'Restler API Explorer';
+ public static $description = 'Live API Documentation';
+ public static $termsOfService = null;
+ public static $contact = array('name' => 'Restler Support', 'url' => 'luracast.com/products/restler', 'email' => 'arul@luracast.com');
+ public static $license = array('name' => 'LGPL-2.1', 'url' => 'https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html');
+ }
+ /**
+ * Interface for creating classes that perform authentication/access
+ * verification
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage auth
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iFilter
+ {
+ /**
+ * Access verification method.
+ *
+ * API access will be denied when this method returns false
+ *
+ * @abstract
+ * @return boolean true when api access is allowed false otherwise
+ */
+ public function __isAllowed();
+ }
+ /**
+ * Api classes or filter classes can implement this interface to know about
+ * authentication status
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iUseAuthentication
+ {
+ /**
+ * This method will be called first for filter classes and api classes so
+ * that they can respond accordingly for filer method call and api method
+ * calls
+ *
+ * @abstract
+ *
+ * @param bool $isAuthenticated passes true when the authentication is
+ * done false otherwise
+ *
+ * @return mixed
+ */
+ public function __setAuthenticationStatus($isAuthenticated = false);
+ }
+}
+
+namespace Luracast\Restler\Filter {
+ /**
+ * Describe the purpose of this class/interface/trait
+ *
+ * @category Framework
+ * @package restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class RateLimit implements \Luracast\Restler\iFilter, \Luracast\Restler\iUseAuthentication
+ {
+ /**
+ * @var \Luracast\Restler\Restler;
+ */
+ public $restler;
+ /**
+ * @var int
+ */
+ public static $usagePerUnit = 1200;
+ /**
+ * @var int
+ */
+ public static $authenticatedUsagePerUnit = 5000;
+ /**
+ * @var string
+ */
+ public static $unit = 'hour';
+ /**
+ * @var string group the current api belongs to
+ */
+ public static $group = 'common';
+ protected static $units = array(
+ 'second' => 1,
+ 'minute' => 60,
+ 'hour' => 3600,
+ // 60*60 seconds
+ 'day' => 86400,
+ // 60*60*24 seconds
+ 'week' => 604800,
+ // 60*60*24*7 seconds
+ 'month' => 2592000,
+ );
+ /**
+ * @var array all paths beginning with any of the following will be excluded
+ * from documentation
+ */
+ public static $excludedPaths = array('explorer');
+ /**
+ * @param string $unit
+ * @param int $usagePerUnit
+ * @param int $authenticatedUsagePerUnit set it to false to give unlimited access
+ *
+ * @throws \InvalidArgumentException
+ * @return void
+ */
+ public static function setLimit($unit, $usagePerUnit, $authenticatedUsagePerUnit = null)
+ {
+ }
+ public function __isAllowed()
+ {
+ }
+ public function __setAuthenticationStatus($isAuthenticated = false)
+ {
+ }
+ }
+}
+
+namespace Luracast\Restler {
+ /**
+ * Storing and retrieving a message or array of key value pairs for one time use using $_SESSION
+ *
+ * They are typically used in view templates when using HtmlFormat
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Flash implements \ArrayAccess
+ {
+ const SUCCESS = 'success';
+ const INFO = 'info';
+ const WARNING = 'warning';
+ const DANGER = 'danger';
+ /**
+ * Flash a success message to user
+ *
+ * @param string $message
+ * @param string $header
+ *
+ * @return Flash
+ */
+ public static function success($message, $header = '')
+ {
+ }
+ /**
+ * Flash a info message to user
+ *
+ * @param string $message
+ * @param string $header
+ *
+ * @return Flash
+ */
+ public static function info($message, $header = '')
+ {
+ }
+ /**
+ * Flash a warning message to user
+ *
+ * @param string $message
+ * @param string $header
+ *
+ * @return Flash
+ */
+ public static function warning($message, $header = '')
+ {
+ }
+ /**
+ * Flash a error message to user
+ *
+ * @param string $message
+ * @param string $header
+ *
+ * @return Flash
+ */
+ public static function danger($message, $header = '')
+ {
+ }
+ /**
+ * Flash a message to user
+ *
+ * @param string $text message text
+ * @param string $header
+ * @param string $type
+ *
+ * @return Flash
+ */
+ public static function message($text, $header = '', $type = \Luracast\Restler\Flash::WARNING)
+ {
+ }
+ /**
+ * Set some data for one time use
+ *
+ * @param array $data array of key value pairs {@type associative}
+ *
+ * @return Flash
+ */
+ public static function set(array $data)
+ {
+ }
+ public function __get($name)
+ {
+ }
+ public function __isset($name)
+ {
+ }
+ public function __destruct()
+ {
+ }
+ /**
+ * Specify data which should be serialized to JSON
+ * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
+ * @return mixed data which can be serialized by json_encode,
+ * which is a value of any type other than a resource.
+ */
+ public function jsonSerialize()
+ {
+ }
+ public function offsetExists($offset)
+ {
+ }
+ public function offsetGet($offset)
+ {
+ }
+ public function offsetSet($offset, $value)
+ {
+ }
+ public function offsetUnset($offset)
+ {
+ }
+ }
+}
+
+namespace Luracast\Restler\Format {
+ /**
+ * Interface for creating custom data formats
+ * like xml, json, yaml, amf etc
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iFormat
+ {
+ /**
+ * Get MIME type => Extension mappings as an associative array
+ *
+ * @return array list of mime strings for the format
+ * @example array('application/json'=>'json');
+ */
+ public function getMIMEMap();
+ /**
+ * Set the selected MIME type
+ *
+ * @param string $mime
+ * MIME type
+ */
+ public function setMIME($mime);
+ /**
+ * Content-Type field of the HTTP header can send a charset
+ * parameter in the HTTP header to specify the character
+ * encoding of the document.
+ * This information is passed
+ * here so that Format class can encode data accordingly
+ * Format class may choose to ignore this and use its
+ * default character set.
+ *
+ * @param string $charset
+ * Example utf-8
+ */
+ public function setCharset($charset);
+ /**
+ * Content-Type accepted by the Format class
+ *
+ * @return string $charset Example utf-8
+ */
+ public function getCharset();
+ /**
+ * Get selected MIME type
+ */
+ public function getMIME();
+ /**
+ * Set the selected file extension
+ *
+ * @param string $extension
+ * file extension
+ */
+ public function setExtension($extension);
+ /**
+ * Get the selected file extension
+ *
+ * @return string file extension
+ */
+ public function getExtension();
+ /**
+ * Encode the given data in the format
+ *
+ * @param array $data
+ * resulting data that needs to
+ * be encoded in the given format
+ * @param boolean $humanReadable
+ * set to TRUE when restler
+ * is not running in production mode. Formatter has to
+ * make the encoded output more human readable
+ * @return string encoded string
+ */
+ public function encode($data, $humanReadable = false);
+ /**
+ * Decode the given data from the format
+ *
+ * @param string $data
+ * data sent from client to
+ * the api in the given format.
+ * @return array associative array of the parsed data
+ */
+ public function decode($data);
+ /**
+ * @return boolean is parsing the request supported?
+ */
+ public function isReadable();
+ /**
+ * @return boolean is composing response supported?
+ */
+ public function isWritable();
+ }
+ /**
+ * Abstract class to implement common methods of iFormat
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ abstract class Format implements \Luracast\Restler\Format\iFormat
+ {
+ /**
+ * override in the extending class
+ */
+ const MIME = 'text/plain';
+ /**
+ * override in the extending class
+ */
+ const EXTENSION = 'txt';
+ /**
+ * @var string charset encoding defaults to UTF8
+ */
+ protected $charset = 'utf-8';
+ /**
+ * Injected at runtime
+ *
+ * @var \Luracast\Restler\Restler
+ */
+ public $restler;
+ /**
+ * Get MIME type => Extension mappings as an associative array
+ *
+ * @return array list of mime strings for the format
+ * @example array('application/json'=>'json');
+ */
+ public function getMIMEMap()
+ {
+ }
+ /**
+ * Set the selected MIME type
+ *
+ * @param string $mime
+ * MIME type
+ */
+ public function setMIME($mime)
+ {
+ }
+ /**
+ * Content-Type field of the HTTP header can send a charset
+ * parameter in the HTTP header to specify the character
+ * encoding of the document.
+ * This information is passed
+ * here so that Format class can encode data accordingly
+ * Format class may choose to ignore this and use its
+ * default character set.
+ *
+ * @param string $charset
+ * Example utf-8
+ */
+ public function setCharset($charset)
+ {
+ }
+ /**
+ * Content-Type accepted by the Format class
+ *
+ * @return string $charset Example utf-8
+ */
+ public function getCharset()
+ {
+ }
+ /**
+ * Get selected MIME type
+ */
+ public function getMIME()
+ {
+ }
+ /**
+ * Set the selected file extension
+ *
+ * @param string $extension
+ * file extension
+ */
+ public function setExtension($extension)
+ {
+ }
+ /**
+ * Get the selected file extension
+ *
+ * @return string file extension
+ */
+ public function getExtension()
+ {
+ }
+ /**
+ * @return boolean is parsing the request supported?
+ */
+ public function isReadable()
+ {
+ }
+ /**
+ * @return boolean is composing response supported?
+ */
+ public function isWritable()
+ {
+ }
+ public function __toString()
+ {
+ }
+ }
+ abstract class DependentFormat extends \Luracast\Restler\Format\Format
+ {
+ /**
+ * override in the extending class
+ *
+ * @example symfony/yaml:*
+ */
+ const PACKAGE_NAME = 'vendor/project:version';
+ /**
+ * override in the extending class
+ *
+ * fully qualified class name
+ */
+ const EXTERNAL_CLASS = 'Namespace\\ClassName';
+ /**
+ * Get external class => packagist package name as an associative array
+ *
+ * @return array list of dependencies for the format
+ */
+ public function getDependencyMap()
+ {
+ }
+ protected function checkDependency($class = null)
+ {
+ }
+ public function __construct()
+ {
+ }
+ }
+ /**
+ * AMF Binary Format for Restler Framework.
+ * Native format supported by Adobe Flash and Adobe AIR
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class AmfFormat extends \Luracast\Restler\Format\DependentFormat
+ {
+ const MIME = 'application/x-amf';
+ const EXTENSION = 'amf';
+ const PACKAGE_NAME = 'zendframework/zendamf:dev-master';
+ const EXTERNAL_CLASS = 'ZendAmf\\Parser\\Amf3\\Deserializer';
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ public function decode($data)
+ {
+ }
+ }
+ /**
+ * Interface for creating formats that accept steams for decoding
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iDecodeStream
+ {
+ /**
+ * Decode the given data stream
+ *
+ * @param string $stream A stream resource with data
+ * sent from client to the api
+ * in the given format.
+ *
+ * @return array associative array of the parsed data
+ */
+ public function decodeStream($stream);
+ }
+ /**
+ * Comma Separated Value Format
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class CsvFormat extends \Luracast\Restler\Format\Format implements \Luracast\Restler\Format\iDecodeStream
+ {
+ const MIME = 'text/csv';
+ const EXTENSION = 'csv';
+ public static $delimiter = ',';
+ public static $enclosure = '"';
+ public static $escape = '\\';
+ public static $haveHeaders = null;
+ /**
+ * Encode the given data in the csv format
+ *
+ * @param array $data
+ * resulting data that needs to
+ * be encoded in the given format
+ * @param boolean $humanReadable
+ * set to TRUE when restler
+ * is not running in production mode. Formatter has to
+ * make the encoded output more human readable
+ *
+ * @return string encoded string
+ *
+ * @throws RestException 500 on unsupported data
+ */
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ protected static function putRow($data)
+ {
+ }
+ /**
+ * Decode the given data from the csv format
+ *
+ * @param string $data
+ * data sent from client to
+ * the api in the given format.
+ *
+ * @return array associative array of the parsed data
+ */
+ public function decode($data)
+ {
+ }
+ protected static function getRow($data, $keys = false)
+ {
+ }
+ /**
+ * Decode the given data stream
+ *
+ * @param string $stream A stream resource with data
+ * sent from client to the api
+ * in the given format.
+ *
+ * @return array associative array of the parsed data
+ */
+ public function decodeStream($stream)
+ {
+ }
+ }
+ /**
+ * Describe the purpose of this class/interface/trait
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ abstract class MultiFormat implements \Luracast\Restler\Format\iFormat
+ {
+ /**
+ * override in the extending class
+ */
+ const MIME = 'text/plain,text/html';
+ /**
+ * override in the extending class
+ */
+ const EXTENSION = 'txt,html';
+ /**
+ * @var string charset encoding defaults to UTF8
+ */
+ protected $charset = 'utf-8';
+ public static $mime;
+ public static $extension;
+ /**
+ * Injected at runtime
+ *
+ * @var \Luracast\Restler\Restler
+ */
+ public $restler;
+ /**
+ * Get MIME type => Extension mappings as an associative array
+ *
+ * @return array list of mime strings for the format
+ * @example array('application/json'=>'json');
+ */
+ public function getMIMEMap()
+ {
+ }
+ /**
+ * Set the selected MIME type
+ *
+ * @param string $mime
+ * MIME type
+ */
+ public function setMIME($mime)
+ {
+ }
+ /**
+ * Content-Type field of the HTTP header can send a charset
+ * parameter in the HTTP header to specify the character
+ * encoding of the document.
+ * This information is passed
+ * here so that Format class can encode data accordingly
+ * Format class may choose to ignore this and use its
+ * default character set.
+ *
+ * @param string $charset
+ * Example utf-8
+ */
+ public function setCharset($charset)
+ {
+ }
+ /**
+ * Content-Type accepted by the Format class
+ *
+ * @return string $charset Example utf-8
+ */
+ public function getCharset()
+ {
+ }
+ /**
+ * Get selected MIME type
+ */
+ public function getMIME()
+ {
+ }
+ /**
+ * Set the selected file extension
+ *
+ * @param string $extension
+ * file extension
+ */
+ public function setExtension($extension)
+ {
+ }
+ /**
+ * Get the selected file extension
+ *
+ * @return string file extension
+ */
+ public function getExtension()
+ {
+ }
+ /**
+ * @return boolean is parsing the request supported?
+ */
+ public function isReadable()
+ {
+ }
+ /**
+ * @return boolean is composing response supported?
+ */
+ public function isWritable()
+ {
+ }
+ public function __toString()
+ {
+ }
+ }
+ abstract class DependentMultiFormat extends \Luracast\Restler\Format\MultiFormat
+ {
+ /**
+ * Get external class => packagist package name as an associative array
+ *
+ * @return array list of dependencies for the format
+ *
+ * @example return ['Illuminate\\View\\View' => 'illuminate/view:4.2.*']
+ */
+ abstract public function getDependencyMap();
+ protected function checkDependency($class = null)
+ {
+ }
+ public function __construct()
+ {
+ }
+ }
+ /**
+ * Html template format
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class HtmlFormat extends \Luracast\Restler\Format\DependentFormat
+ {
+ const BLADE = 'Illuminate\\View\\View';
+ const TWIG = 'Twig\\Environment';
+ const MUSTACHE = 'Mustache_Engine';
+ public static $mime = 'text/html';
+ public static $extension = 'html';
+ public static $view;
+ public static $errorView = 'debug.php';
+ public static $template = 'php';
+ public static $handleSession = true;
+ public static $convertResponseToArray = false;
+ public static $useSmartViews = true;
+ /**
+ * @var null|string defaults to template named folder in Defaults::$cacheDirectory
+ */
+ public static $cacheDirectory = null;
+ /**
+ * @var array global key value pair to be supplied to the templates. All
+ * keys added here will be available as a variable inside the template
+ */
+ public static $data = array();
+ /**
+ * @var string set it to the location of your the view files. Defaults to
+ * views folder which is same level as vendor directory.
+ */
+ public static $viewPath;
+ /**
+ * @var array template and its custom extension key value pair
+ */
+ public static $customTemplateExtensions = array('blade' => 'blade.php');
+ /**
+ * @var bool used internally for error handling
+ */
+ protected static $parseViewMetadata = true;
+ /**
+ * @var Restler;
+ */
+ public $restler;
+ public function __construct()
+ {
+ }
+ public function getDependencyMap()
+ {
+ }
+ public static function blade(array $data, $debug = true)
+ {
+ }
+ /**
+ * @param array|object $data
+ * @param bool $debug
+ *
+ * @return string
+ * @throws \Twig\Error\LoaderError
+ * @throws \Twig\Error\RuntimeError
+ * @throws \Twig\Error\SyntaxError
+ */
+ public static function twig($data, $debug = true)
+ {
+ }
+ /**
+ * @param array|object $data
+ * @param bool $debug
+ *
+ * @return string
+ */
+ public static function handlebar($data, $debug = true)
+ {
+ }
+ /**
+ * @param array|object $data
+ * @param bool $debug
+ *
+ * @return string
+ */
+ public static function mustache($data, $debug = true)
+ {
+ }
+ /**
+ * @param array|object $data
+ * @param bool $debug
+ *
+ * @return string
+ * @throws RestException
+ */
+ public static function php($data, $debug = true)
+ {
+ }
+ /**
+ * Encode the given data in the format
+ *
+ * @param array $data resulting data that needs to
+ * be encoded in the given format
+ * @param boolean $humanReadable set to TRUE when restler
+ * is not running in production mode.
+ * Formatter has to make the encoded
+ * output more human readable
+ *
+ * @return string encoded string
+ * @throws \Exception
+ */
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ public static function guessViewName($path)
+ {
+ }
+ public static function getViewExtension()
+ {
+ }
+ public static function getViewFile($fullPath = false, $includeExtension = true)
+ {
+ }
+ /**
+ * Decode the given data from the format
+ *
+ * @param string $data
+ * data sent from client to
+ * the api in the given format.
+ *
+ * @return array associative array of the parsed data
+ *
+ * @throws RestException
+ */
+ public function decode($data)
+ {
+ }
+ /**
+ * @return bool false as HTML format is write only
+ */
+ public function isReadable()
+ {
+ }
+ /**
+ * Get MIME type => Extension mappings as an associative array
+ *
+ * @return array list of mime strings for the format
+ * @example array('application/json'=>'json');
+ */
+ public function getMIMEMap()
+ {
+ }
+ /**
+ * Set the selected MIME type
+ *
+ * @param string $mime MIME type
+ */
+ public function setMIME($mime)
+ {
+ }
+ /**
+ * Get selected MIME type
+ */
+ public function getMIME()
+ {
+ }
+ /**
+ * Get the selected file extension
+ *
+ * @return string file extension
+ */
+ public function getExtension()
+ {
+ }
+ /**
+ * Set the selected file extension
+ *
+ * @param string $extension file extension
+ */
+ public function setExtension($extension)
+ {
+ }
+ }
+ /**
+ * Javascript Object Notation Format
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class JsonFormat extends \Luracast\Restler\Format\Format
+ {
+ /**
+ * @var boolean|null shim for json_encode option JSON_PRETTY_PRINT set
+ * it to null to use smart defaults
+ */
+ public static $prettyPrint = null;
+ /**
+ * @var boolean|null shim for json_encode option JSON_UNESCAPED_SLASHES
+ * set it to null to use smart defaults
+ */
+ public static $unEscapedSlashes = null;
+ /**
+ * @var boolean|null shim for json_encode JSON_UNESCAPED_UNICODE set it
+ * to null to use smart defaults
+ */
+ public static $unEscapedUnicode = null;
+ /**
+ * @var boolean|null shim for json_decode JSON_BIGINT_AS_STRING set it to
+ * null to
+ * use smart defaults
+ */
+ public static $bigIntAsString = null;
+ /**
+ * @var boolean|null shim for json_decode JSON_NUMERIC_CHECK set it to
+ * null to
+ * use smart defaults
+ */
+ public static $numbersAsNumbers = null;
+ const MIME = 'application/json';
+ const EXTENSION = 'json';
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ public function decode($data)
+ {
+ }
+ /**
+ * Throws an exception if an error occurred during the last JSON encoding/decoding
+ *
+ * @return void
+ * @throws \RuntimeException
+ */
+ protected function handleJsonError()
+ {
+ }
+ }
+ /**
+ * Javascript Object Notation Packaged in a method (JSONP)
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class JsFormat extends \Luracast\Restler\Format\JsonFormat
+ {
+ const MIME = 'text/javascript';
+ const EXTENSION = 'js';
+ public static $callbackMethodName = 'parseResponse';
+ public static $callbackOverrideQueryString = 'callback';
+ public static $includeHeaders = true;
+ public function encode($data, $human_readable = false)
+ {
+ }
+ public function isReadable()
+ {
+ }
+ }
+ /**
+ * Plist Format for Restler Framework.
+ * Plist is the native data exchange format for Apple iOS and Mac platform.
+ * Use this format to talk to mac applications and iOS devices.
+ * This class is capable of serving both xml plist and binary plist.
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class PlistFormat extends \Luracast\Restler\Format\DependentMultiFormat
+ {
+ /**
+ * @var boolean set it to true binary plist is preferred
+ */
+ public static $compact = null;
+ const MIME = 'application/xml,application/x-plist';
+ const EXTENSION = 'plist';
+ public function setMIME($mime)
+ {
+ }
+ /**
+ * Encode the given data in plist format
+ *
+ * @param array $data
+ * resulting data that needs to
+ * be encoded in plist format
+ * @param boolean $humanReadable
+ * set to true when restler
+ * is not running in production mode. Formatter has to
+ * make the encoded output more human readable
+ *
+ * @return string encoded string
+ */
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ /**
+ * Decode the given data from plist format
+ *
+ * @param string $data
+ * data sent from client to
+ * the api in the given format.
+ *
+ * @return array associative array of the parsed data
+ */
+ public function decode($data)
+ {
+ }
+ /**
+ * Get external class => packagist package name as an associative array
+ *
+ * @return array list of dependencies for the format
+ *
+ * @example return ['Illuminate\\View\\View' => 'illuminate/view:4.2.*']
+ */
+ public function getDependencyMap()
+ {
+ }
+ }
+ /**
+ * Tab Separated Value Format
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class TsvFormat extends \Luracast\Restler\Format\CsvFormat
+ {
+ const MIME = 'text/csv';
+ const EXTENSION = 'csv';
+ public static $delimiter = "\t";
+ public static $enclosure = '"';
+ public static $escape = '\\';
+ public static $haveHeaders = null;
+ }
+ /**
+ * Support for Multi Part Form Data and File Uploads
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class UploadFormat extends \Luracast\Restler\Format\Format
+ {
+ const MIME = 'multipart/form-data';
+ const EXTENSION = 'post';
+ public static $errors = array(0 => false, 1 => "The uploaded file exceeds the maximum allowed size", 2 => "The uploaded file exceeds the maximum allowed size", 3 => "The uploaded file was only partially uploaded", 4 => "No file was uploaded", 6 => "Missing a temporary folder", 7 => "Failed to write file to disk", 8 => "A PHP extension stopped the file upload");
+ /**
+ * use it if you need to restrict uploads based on file type
+ * setting it as an empty array allows all file types
+ * default is to allow only png and jpeg images
+ *
+ * @var array
+ */
+ public static $allowedMimeTypes = array('image/jpeg', 'image/png');
+ /**
+ * use it to restrict uploads based on file size
+ * set it to 0 to allow all sizes
+ * please note that it upload restrictions in the server
+ * takes precedence so it has to be lower than or equal to that
+ * default value is 1MB (1024x1024)bytes
+ * usual value for the server is 8388608
+ *
+ * @var int
+ */
+ public static $maximumFileSize = 1048576;
+ /**
+ * Your own validation function for validating each uploaded file
+ * it can return false or throw an exception for invalid file
+ * use anonymous function / closure in PHP 5.3 and above
+ * use function name in other cases
+ *
+ * @var Callable
+ */
+ public static $customValidationFunction;
+ /**
+ * Since exceptions are triggered way before at the `get` stage
+ *
+ * @var bool
+ */
+ public static $suppressExceptionsAsError = false;
+ protected static function checkFile(&$file, $doMimeCheck = false, $doSizeCheck = false)
+ {
+ }
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ public function decode($data)
+ {
+ }
+ public function isWritable()
+ {
+ }
+ }
+ /**
+ * URL Encoded String Format
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class UrlEncodedFormat extends \Luracast\Restler\Format\Format
+ {
+ const MIME = 'application/x-www-form-urlencoded';
+ const EXTENSION = 'post';
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ public function decode($data)
+ {
+ }
+ public static function encoderTypeFix(array $data)
+ {
+ }
+ public static function decoderTypeFix(array $data)
+ {
+ }
+ }
+ /**
+ * XML Markup Format for Restler Framework
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class XmlFormat extends \Luracast\Restler\Format\Format
+ {
+ const MIME = 'application/xml';
+ const EXTENSION = 'xml';
+ // ==================================================================
+ //
+ // Properties related to reading/parsing/decoding xml
+ //
+ // ------------------------------------------------------------------
+ public static $importSettingsFromXml = false;
+ public static $parseAttributes = true;
+ public static $parseNamespaces = true;
+ public static $parseTextNodeAsProperty = true;
+ // ==================================================================
+ //
+ // Properties related to writing/encoding xml
+ //
+ // ------------------------------------------------------------------
+ public static $useTextNodeProperty = true;
+ public static $useNamespaces = true;
+ public static $cdataNames = array();
+ // ==================================================================
+ //
+ // Common Properties
+ //
+ // ------------------------------------------------------------------
+ public static $attributeNames = array();
+ public static $textNodeName = 'text';
+ public static $namespaces = array();
+ public static $namespacedProperties = array();
+ /**
+ * Default name for the root node.
+ *
+ * @var string $rootNodeName
+ */
+ public static $rootName = 'response';
+ public static $defaultTagName = 'item';
+ /**
+ * When you decode an XML its structure is copied to the static vars
+ * we can use this function to echo them out and then copy paste inside
+ * our service methods
+ *
+ * @return string PHP source code to reproduce the configuration
+ */
+ public static function exportCurrentSettings()
+ {
+ }
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ public function write(\XMLWriter $xml, $data, $parent)
+ {
+ }
+ public function decode($data)
+ {
+ }
+ public function read(\SimpleXMLElement $xml, $namespaces = null)
+ {
+ }
+ public static function setType($value)
+ {
+ }
+ }
+ /**
+ * YAML Format for Restler Framework
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage format
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class YamlFormat extends \Luracast\Restler\Format\DependentFormat
+ {
+ const MIME = 'text/plain';
+ const EXTENSION = 'yaml';
+ const PACKAGE_NAME = 'symfony/yaml:*';
+ const EXTERNAL_CLASS = 'Symfony\\Component\\Yaml\\Yaml';
+ public function encode($data, $humanReadable = false)
+ {
+ }
+ public function decode($data)
+ {
+ }
+ }
+}
+
+namespace Luracast\Restler {
+ /**
+ * Default Cache that writes/reads human readable files for caching purpose
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class HumanReadableCache implements \Luracast\Restler\iCache
+ {
+ /**
+ * @var string path of the folder to hold cache files
+ */
+ public static $cacheDir;
+ public function __construct()
+ {
+ }
+ /**
+ * store data in the cache
+ *
+ * @param string $name
+ * @param mixed $data
+ *
+ * @throws \Exception
+ * @return boolean true if successful
+ */
+ public function set($name, $data)
+ {
+ }
+ /**
+ * retrieve data from the cache
+ *
+ * @param string $name
+ * @param bool $ignoreErrors
+ *
+ * @return mixed
+ */
+ public function get($name, $ignoreErrors = false)
+ {
+ }
+ /**
+ * delete data from the cache
+ *
+ * @param string $name
+ * @param bool $ignoreErrors
+ *
+ * @return boolean true if successful
+ */
+ public function clear($name, $ignoreErrors = false)
+ {
+ }
+ /**
+ * check if the given name is cached
+ *
+ * @param string $name
+ *
+ * @return boolean true if cached
+ */
+ public function isCached($name)
+ {
+ }
+ }
+ /**
+ * Interface for creating authentication classes
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage auth
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iAuthenticate extends \Luracast\Restler\iFilter
+ {
+ /**
+ * @return string string to be used with WWW-Authenticate header
+ * @example Basic
+ * @example Digest
+ * @example OAuth
+ */
+ public function __getWWWAuthenticateString();
+ }
+ /**
+ * Interface to identify the user
+ *
+ * When the user is known we will be able to monitor, rate limit and do more
+ *
+ * @category Framework
+ * @package restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ interface iIdentifyUser
+ {
+ /**
+ * A way to uniquely identify the current api consumer
+ *
+ * When his user id is known it should be used otherwise ip address
+ * can be used
+ *
+ * @param bool $includePlatform Should we consider user alone or should
+ * consider the application/platform/device
+ * as well for generating unique id
+ *
+ * @return string
+ */
+ public static function getUniqueIdentifier($includePlatform = false);
+ /**
+ * User identity to be used for caching purpose
+ *
+ * When the dynamic cache service places an object in the cache, it needs to
+ * label it with a unique identifying string known as a cache ID. This
+ * method gives that identifier
+ *
+ * @return string
+ */
+ public static function getCacheIdentifier();
+ /**
+ * Authentication classes should call this method
+ *
+ * @param string $id user id as identified by the authentication classes
+ *
+ * @return void
+ */
+ public static function setUniqueIdentifier($id);
+ /**
+ * User identity for caching purpose
+ *
+ * In a role based access control system this will be based on role
+ *
+ * @param $id
+ *
+ * @return void
+ */
+ public static function setCacheIdentifier($id);
+ }
+ /**
+ * Special Exception for raising API errors
+ * that can be used in API methods
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage exception
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class RestException extends \Exception
+ {
+ /**
+ * HTTP status codes
+ *
+ * @var array
+ */
+ public static $codes = array(
+ 100 => 'Continue',
+ 101 => 'Switching Protocols',
+ 200 => 'OK',
+ 201 => 'Created',
+ 202 => 'Accepted',
+ 203 => 'Non-Authoritative Information',
+ 204 => 'No Content',
+ 205 => 'Reset Content',
+ 206 => 'Partial Content',
+ 300 => 'Multiple Choices',
+ 301 => 'Moved Permanently',
+ 302 => 'Found',
+ 303 => 'See Other',
+ 304 => 'Not Modified',
+ 305 => 'Use Proxy',
+ 306 => '(Unused)',
+ 307 => 'Temporary Redirect',
+ 400 => 'Bad Request',
+ 401 => 'Unauthorized',
+ 402 => 'Payment Required',
+ 403 => 'Forbidden',
+ 404 => 'Not Found',
+ 405 => 'Method Not Allowed',
+ 406 => 'Not Acceptable',
+ 407 => 'Proxy Authentication Required',
+ 408 => 'Request Timeout',
+ 409 => 'Conflict',
+ 410 => 'Gone',
+ 411 => 'Length Required',
+ 412 => 'Precondition Failed',
+ 413 => 'Request Entity Too Large',
+ 414 => 'Request-URI Too Long',
+ 415 => 'Unsupported Media Type',
+ 416 => 'Requested Range Not Satisfiable',
+ 417 => 'Expectation Failed',
+ 429 => 'Too Many Requests',
+ //still in draft but used for rate limiting
+ 500 => 'Internal Server Error',
+ 501 => 'Not Implemented',
+ 502 => 'Bad Gateway',
+ 503 => 'Service Unavailable',
+ 504 => 'Gateway Timeout',
+ 505 => 'HTTP Version Not Supported',
+ );
+ /**
+ * @param string $httpStatusCode http status code
+ * @param string|null $errorMessage error message
+ * @param array $details any extra detail about the exception
+ * @param Exception $previous previous exception if any
+ */
+ public function __construct($httpStatusCode, $errorMessage = null, array $details = array(), \Exception $previous = null)
+ {
+ }
+ /**
+ * Get extra details about the exception
+ *
+ * @return array details array
+ */
+ public function getDetails()
+ {
+ }
+ public function getStage()
+ {
+ }
+ public function getStages()
+ {
+ }
+ public function getErrorMessage()
+ {
+ }
+ public function getSource()
+ {
+ }
+ }
+ /**
+ * Special RestException for forcing the exception even when
+ * in hybrid method
+ *
+ * @category Framework
+ * @package Restler
+ * @subpackage exception
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class InvalidAuthCredentials extends \Luracast\Restler\RestException
+ {
+ }
+ /**
+ * Class MemcacheCache provides a memcache based cache for Restler
+ *
+ * @category Framework
+ * @package Restler
+ * @author Dave Drager
+ * @copyright 2014 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ * @version 3.0.0rc5
+ */
+ class MemcacheCache implements \Luracast\Restler\iCache
+ {
+ /**
+ * The namespace that all of the cached entries will be stored under. This allows multiple APIs to run concurrently.
+ *
+ * @var string
+ */
+ public static $namespace;
+ /**
+ * @var string the memcache server hostname / IP address. For the memcache
+ * cache method.
+ */
+ public static $memcacheServer = '127.0.0.1';
+ /**
+ * @var int the memcache server port. For the memcache cache method.
+ */
+ public static $memcachePort = 11211;
+ /**
+ * @param string $namespace
+ */
+ public function __construct($namespace = 'restler')
+ {
+ }
+ /**
+ * store data in the cache
+ *
+ *
+ * @param string $name
+ * @param mixed $data
+ *
+ * @return boolean true if successful
+ */
+ public function set($name, $data)
+ {
+ }
+ /**
+ * retrieve data from the cache
+ *
+ *
+ * @param string $name
+ * @param bool $ignoreErrors
+ *
+ * @throws \Exception
+ * @return mixed
+ */
+ public function get($name, $ignoreErrors = false)
+ {
+ }
+ /**
+ * delete data from the cache
+ *
+ *
+ * @param string $name
+ * @param bool $ignoreErrors
+ *
+ * @throws \Exception
+ * @return boolean true if successful
+ */
+ public function clear($name, $ignoreErrors = false)
+ {
+ }
+ /**
+ * check if the given name is cached
+ *
+ *
+ * @param string $name
+ *
+ * @return boolean true if cached
+ */
+ public function isCached($name)
+ {
+ }
+ }
+ /**
+ * Static Class to pass through content outside of web root
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class PassThrough
+ {
+ public static $mimeTypes = array('js' => 'text/javascript', 'css' => 'text/css', 'png' => 'image/png', 'jpg' => 'image/jpeg', 'gif' => 'image/gif', 'html' => 'text/html');
+ /**
+ * Serve a file outside web root
+ *
+ * Respond with a file stored outside web accessible path
+ *
+ * @param string $filename full path for the file to be served
+ * @param bool $forceDownload should the we download instead of viewing
+ * @param int $expires cache expiry in number of seconds
+ * @param bool $isPublic cache control, is it public or private
+ *
+ * @throws RestException
+ *
+ */
+ public static function file($filename, $forceDownload = false, $expires = 0, $isPublic = true)
+ {
+ }
+ }
+ /**
+ * Static class for handling redirection
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Redirect
+ {
+ /**
+ * Redirect to given url
+ *
+ * @param string $url relative path or full url
+ * @param array $params associative array of query parameters
+ * @param array $flashData associative array of properties to be set in $_SESSION for one time use
+ * @param int $status http status code to send the response with ideally 301 or 302
+ *
+ * @return array
+ */
+ public static function to($url, array $params = array(), array $flashData = array(), $status = 302)
+ {
+ }
+ /**
+ * Redirect back to the previous page
+ *
+ * Makes use of http referrer for redirection
+ *
+ * @return array
+ */
+ public static function back()
+ {
+ }
+ }
+ /**
+ * API Class to create Swagger Spec 1.1 compatible id and operation
+ * listing
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Resources implements \Luracast\Restler\iUseAuthentication, \Luracast\Restler\iProvideMultiVersionApi
+ {
+ /**
+ * @var bool should protected resources be shown to unauthenticated users?
+ */
+ public static $hideProtected = true;
+ /**
+ * @var bool should we use format as extension?
+ */
+ public static $useFormatAsExtension = true;
+ /**
+ * @var bool should we include newer apis in the list? works only when
+ * Defaults::$useUrlBasedVersioning is set to true;
+ */
+ public static $listHigherVersions = true;
+ /**
+ * @var array all http methods specified here will be excluded from
+ * documentation
+ */
+ public static $excludedHttpMethods = array('OPTIONS');
+ /**
+ * @var array all paths beginning with any of the following will be excluded
+ * from documentation
+ */
+ public static $excludedPaths = array();
+ /**
+ * @var bool
+ */
+ public static $placeFormatExtensionBeforeDynamicParts = true;
+ /**
+ * @var bool should we group all the operations with the same url or not
+ */
+ public static $groupOperations = false;
+ /**
+ * @var null|callable if the api methods are under access control mechanism
+ * you can attach a function here that returns true or false to determine
+ * visibility of a protected api method. this function will receive method
+ * info as the only parameter.
+ */
+ public static $accessControlFunction = null;
+ /**
+ * @var array type mapping for converting data types to javascript / swagger
+ */
+ public static $dataTypeAlias = array('string' => 'string', 'int' => 'int', 'number' => 'float', 'float' => 'float', 'bool' => 'boolean', 'boolean' => 'boolean', 'NULL' => 'null', 'array' => 'Array', 'object' => 'Object', 'stdClass' => 'Object', 'mixed' => 'string', 'DateTime' => 'Date');
+ /**
+ * @var array configurable symbols to differentiate public, hybrid and
+ * protected api
+ */
+ public static $apiDescriptionSuffixSymbols = array(
+ 0 => ' ',
+ //public api
+ 1 => ' ',
+ //hybrid api
+ 2 => ' ',
+ );
+ /**
+ * Injected at runtime
+ *
+ * @var Restler instance of restler
+ */
+ public $restler;
+ /**
+ * @var string when format is not used as the extension this property is
+ * used to set the extension manually
+ */
+ public $formatString = '';
+ protected $_models;
+ protected $_bodyParam;
+ /**
+ * @var bool|stdClass
+ */
+ protected $_fullDataRequested = false;
+ protected $crud = array('POST' => 'create', 'GET' => 'retrieve', 'PUT' => 'update', 'DELETE' => 'delete', 'PATCH' => 'partial update');
+ protected static $prefixes = array('get' => 'retrieve', 'index' => 'list', 'post' => 'create', 'put' => 'update', 'patch' => 'modify', 'delete' => 'remove');
+ protected $_authenticated = false;
+ protected $cacheName = '';
+ public function __construct()
+ {
+ }
+ /**
+ * This method will be called first for filter classes and api classes so
+ * that they can respond accordingly for filer method call and api method
+ * calls
+ *
+ *
+ * @param bool $isAuthenticated passes true when the authentication is
+ * done, false otherwise
+ *
+ * @return mixed
+ */
+ public function __setAuthenticationStatus($isAuthenticated = false)
+ {
+ }
+ /**
+ * pre call for get($id)
+ *
+ * if cache is present, use cache
+ */
+ public function _pre_get_json($id)
+ {
+ }
+ /**
+ * post call for get($id)
+ *
+ * create cache if in production mode
+ *
+ * @param $responseData
+ *
+ * @internal param string $data composed json output
+ *
+ * @return string
+ */
+ public function _post_get_json($responseData)
+ {
+ }
+ /**
+ * @access hybrid
+ *
+ * @param string $id
+ *
+ * @throws RestException
+ * @return null|stdClass
+ *
+ * @url GET {id}
+ */
+ public function get($id = '')
+ {
+ }
+ protected function _nickname(array $route)
+ {
+ }
+ protected function _noNamespace($className)
+ {
+ }
+ protected function _operationListing($resourcePath = '/')
+ {
+ }
+ protected function _resourceListing()
+ {
+ }
+ protected function _api($path, $description = '')
+ {
+ }
+ protected function _operation($route, $nickname, $httpMethod = 'GET', $summary = 'description', $notes = 'long description', $responseClass = 'void')
+ {
+ }
+ protected function _parameter($param)
+ {
+ }
+ protected function _appendToBody($p)
+ {
+ }
+ protected function _getBody()
+ {
+ }
+ protected function _model($className, $instance = null)
+ {
+ }
+ /**
+ * Find the data type of the given value.
+ *
+ *
+ * @param mixed $o given value for finding type
+ *
+ * @param bool $appendToModels if an object is found should we append to
+ * our models list?
+ *
+ * @return string
+ *
+ * @access private
+ */
+ public function getType($o, $appendToModels = false)
+ {
+ }
+ /**
+ * pre call for index()
+ *
+ * if cache is present, use cache
+ */
+ public function _pre_index_json()
+ {
+ }
+ /**
+ * post call for index()
+ *
+ * create cache if in production mode
+ *
+ * @param $responseData
+ *
+ * @internal param string $data composed json output
+ *
+ * @return string
+ */
+ public function _post_index_json($responseData)
+ {
+ }
+ /**
+ * @access hybrid
+ * @return \stdClass
+ */
+ public function index()
+ {
+ }
+ protected function _loadResource($url)
+ {
+ }
+ protected function _mapResources(array $allRoutes, array &$map, $version = 1)
+ {
+ }
+ /**
+ * Maximum api version supported by the api class
+ * @return int
+ */
+ public static function __getMaximumSupportedVersion()
+ {
+ }
+ /**
+ * Verifies that the requesting user is allowed to view the docs for this API
+ *
+ * @param $route
+ *
+ * @return boolean True if the user should be able to view this API's docs
+ */
+ protected function verifyAccess($route)
+ {
+ }
+ }
+ /**
+ * REST API Server. It is the server part of the Restler framework.
+ * inspired by the RestServer code from
+ *
+ *
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ *
+ * @method static void onGet(Callable $function) fired before reading the request details
+ * @method static void onRoute(Callable $function) fired before finding the api method
+ * @method static void onNegotiate(Callable $function) fired before content negotiation
+ * @method static void onPreAuthFilter(Callable $function) fired before pre auth filtering
+ * @method static void onAuthenticate(Callable $function) fired before auth
+ * @method static void onPostAuthFilter(Callable $function) fired before post auth filtering
+ * @method static void onValidate(Callable $function) fired before validation
+ * @method static void onCall(Callable $function) fired before api method call
+ * @method static void onCompose(Callable $function) fired before composing response
+ * @method static void onRespond(Callable $function) fired before sending response
+ * @method static void onComplete(Callable $function) fired after sending response
+ * @method static void onMessage(Callable $function) fired before composing error response
+ *
+ * @method void onGet(Callable $function) fired before reading the request details
+ * @method void onRoute(Callable $function) fired before finding the api method
+ * @method void onNegotiate(Callable $function) fired before content negotiation
+ * @method void onPreAuthFilter(Callable $function) fired before pre auth filtering
+ * @method void onAuthenticate(Callable $function) fired before auth
+ * @method void onPostAuthFilter(Callable $function) fired before post auth filtering
+ * @method void onValidate(Callable $function) fired before validation
+ * @method void onCall(Callable $function) fired before api method call
+ * @method void onCompose(Callable $function) fired before composing response
+ * @method void onRespond(Callable $function) fired before sending response
+ * @method void onComplete(Callable $function) fired after sending response
+ * @method void onMessage(Callable $function) fired before composing error response
+ *
+ * @property bool|null _authenticated
+ * @property bool _authVerified
+ */
+ class Restler extends \Luracast\Restler\EventDispatcher
+ {
+ const VERSION = '3.1.0';
+ // ==================================================================
+ //
+ // Public variables
+ //
+ // ------------------------------------------------------------------
+ /**
+ * Reference to the last exception thrown
+ * @var RestException
+ */
+ public $exception = null;
+ /**
+ * Used in production mode to store the routes and more
+ *
+ * @var iCache
+ */
+ public $cache;
+ /**
+ * URL of the currently mapped service
+ *
+ * @var string
+ */
+ public $url;
+ /**
+ * Http request method of the current request.
+ * Any value between [GET, PUT, POST, DELETE]
+ *
+ * @var string
+ */
+ public $requestMethod;
+ /**
+ * Requested data format.
+ * Instance of the current format class
+ * which implements the iFormat interface
+ *
+ * @var Format\iFormat
+ * @example jsonFormat, xmlFormat, yamlFormat etc
+ */
+ public $requestFormat;
+ /**
+ * Response data format.
+ *
+ * Instance of the current format class
+ * which implements the iFormat interface
+ *
+ * @var Format\iFormat
+ * @example jsonFormat, xmlFormat, yamlFormat etc
+ */
+ public $responseFormat;
+ /**
+ * Http status code
+ *
+ * @var int|null when specified it will override @status comment
+ */
+ public $responseCode = null;
+ /**
+ * @var string base url of the api service
+ */
+ protected $baseUrl;
+ /**
+ * @var bool Used for waiting till verifying @format
+ * before throwing content negotiation failed
+ */
+ protected $requestFormatDiffered = false;
+ /**
+ * method information including metadata
+ *
+ * @var Data\ApiMethodInfo
+ */
+ public $apiMethodInfo;
+ /**
+ * @var int for calculating execution time
+ */
+ protected $startTime;
+ /**
+ * When set to false, it will run in debug mode and parse the
+ * class files every time to map it to the URL
+ *
+ * @var boolean
+ */
+ protected $productionMode = false;
+ public $refreshCache = false;
+ /**
+ * Caching of url map is enabled or not
+ *
+ * @var boolean
+ */
+ protected $cached;
+ /**
+ * @var int
+ */
+ protected $apiVersion = 1;
+ /**
+ * @var int
+ */
+ protected $requestedApiVersion = 1;
+ /**
+ * @var int
+ */
+ protected $apiMinimumVersion = 1;
+ /**
+ * @var array
+ */
+ protected $apiVersionMap = array();
+ /**
+ * Associated array that maps formats to their respective format class name
+ *
+ * @var array
+ */
+ protected $formatMap = array();
+ /**
+ * List of the Mime Types that can be produced as a response by this API
+ *
+ * @var array
+ */
+ protected $writableMimeTypes = array();
+ /**
+ * List of the Mime Types that are supported for incoming requests by this API
+ *
+ * @var array
+ */
+ protected $readableMimeTypes = array();
+ /**
+ * Associated array that maps formats to their respective format class name
+ *
+ * @var array
+ */
+ protected $formatOverridesMap = array('extensions' => array());
+ /**
+ * list of filter classes
+ *
+ * @var array
+ */
+ protected $filterClasses = array();
+ /**
+ * instances of filter classes that are executed after authentication
+ *
+ * @var array
+ */
+ protected $postAuthFilterClasses = array();
+ // ==================================================================
+ //
+ // Protected variables
+ //
+ // ------------------------------------------------------------------
+ /**
+ * Data sent to the service
+ *
+ * @var array
+ */
+ protected $requestData = array();
+ /**
+ * list of authentication classes
+ *
+ * @var array
+ */
+ protected $authClasses = array();
+ /**
+ * list of error handling classes
+ *
+ * @var array
+ */
+ protected $errorClasses = array();
+ protected $authenticated = false;
+ protected $authVerified = false;
+ /**
+ * @var mixed
+ */
+ protected $responseData;
+ /**
+ * Constructor
+ *
+ * @param boolean $productionMode When set to false, it will run in
+ * debug mode and parse the class files
+ * every time to map it to the URL
+ *
+ * @param bool $refreshCache will update the cache when set to true
+ */
+ public function __construct($productionMode = false, $refreshCache = false)
+ {
+ }
+ /**
+ * Main function for processing the api request
+ * and return the response
+ *
+ * @throws Exception when the api service class is missing
+ * @throws RestException to send error response
+ */
+ public function handle()
+ {
+ }
+ /**
+ * read the request details
+ *
+ * Find out the following
+ * - baseUrl
+ * - url requested
+ * - version requested (if url based versioning)
+ * - http verb/method
+ * - negotiate content type
+ * - request data
+ * - set defaults
+ */
+ protected function get()
+ {
+ }
+ /**
+ * Returns a list of the mime types (e.g. ["application/json","application/xml"]) that the API can respond with
+ * @return array
+ */
+ public function getWritableMimeTypes()
+ {
+ }
+ /**
+ * Returns the list of Mime Types for the request that the API can understand
+ * @return array
+ */
+ public function getReadableMimeTypes()
+ {
+ }
+ /**
+ * Call this method and pass all the formats that should be supported by
+ * the API Server. Accepts multiple parameters
+ *
+ * @param string ,... $formatName class name of the format class that
+ * implements iFormat
+ *
+ * @example $restler->setSupportedFormats('JsonFormat', 'XmlFormat'...);
+ * @throws Exception
+ */
+ public function setSupportedFormats($format = null, ...$formatName)
+ {
+ }
+ /**
+ * Call this method and pass all the formats that can be used to override
+ * the supported formats using `@format` comment. Accepts multiple parameters
+ *
+ * @param string ,... $formatName class name of the format class that
+ * implements iFormat
+ *
+ * @example $restler->setOverridingFormats('JsonFormat', 'XmlFormat'...);
+ * @throws Exception
+ */
+ public function setOverridingFormats($format = null, ...$formatName)
+ {
+ }
+ /**
+ * Set one or more string to be considered as the base url
+ *
+ * When more than one base url is provided, restler will make
+ * use of $_SERVER['HTTP_HOST'] to find the right one
+ *
+ * @param string ,... $url
+ */
+ public function setBaseUrls($url, ...$otherurls)
+ {
+ }
+ /**
+ * Parses the request url and get the api path
+ *
+ * @return string api path
+ */
+ protected function getPath()
+ {
+ }
+ /**
+ * Parses the request to figure out format of the request data
+ *
+ * @throws RestException
+ * @return Format\iFormat any class that implements iFormat
+ * @example JsonFormat
+ */
+ protected function getRequestFormat()
+ {
+ }
+ public function getRequestStream()
+ {
+ }
+ /**
+ * Parses the request data and returns it
+ *
+ * @param bool $includeQueryParameters
+ *
+ * @return array php data
+ */
+ public function getRequestData($includeQueryParameters = true)
+ {
+ }
+ /**
+ * Find the api method to execute for the requested Url
+ */
+ protected function route()
+ {
+ }
+ /**
+ * Negotiate the response details such as
+ * - cross origin resource sharing
+ * - media type
+ * - charset
+ * - language
+ *
+ * @throws RestException
+ */
+ protected function negotiate()
+ {
+ }
+ protected function negotiateCORS()
+ {
+ }
+ // ==================================================================
+ //
+ // Protected functions
+ //
+ // ------------------------------------------------------------------
+ /**
+ * Parses the request to figure out the best format for response.
+ * Extension, if present, overrides the Accept header
+ *
+ * @throws RestException
+ * @return Format\iFormat
+ * @example JsonFormat
+ */
+ protected function negotiateResponseFormat()
+ {
+ }
+ protected function negotiateCharset()
+ {
+ }
+ protected function negotiateLanguage()
+ {
+ }
+ /**
+ * Filer api calls before authentication
+ */
+ protected function preAuthFilter()
+ {
+ }
+ protected function authenticate()
+ {
+ }
+ /**
+ * Filer api calls after authentication
+ */
+ protected function postAuthFilter()
+ {
+ }
+ protected function validate()
+ {
+ }
+ protected function call()
+ {
+ }
+ protected function compose()
+ {
+ }
+ public function composeHeaders(\Luracast\Restler\RestException $e = null)
+ {
+ }
+ protected function respond()
+ {
+ }
+ protected function message(\Exception $exception)
+ {
+ }
+ /**
+ * Provides backward compatibility with older versions of Restler
+ *
+ * @param int $version restler version
+ *
+ * @throws \OutOfRangeException
+ */
+ public function setCompatibilityMode($version = 2)
+ {
+ }
+ /**
+ * @param int $version maximum version number supported
+ * by the api
+ * @param int $minimum minimum version number supported
+ * (optional)
+ *
+ * @throws InvalidArgumentException
+ * @return void
+ */
+ public function setAPIVersion($version = 1, $minimum = 1)
+ {
+ }
+ /**
+ * Classes implementing iFilter interface can be added for filtering out
+ * the api consumers.
+ *
+ * It can be used for rate limiting based on usage from a specific ip
+ * address or filter by country, device etc.
+ *
+ * @param $className
+ */
+ public function addFilterClass($className)
+ {
+ }
+ /**
+ * protected methods will need at least one authentication class to be set
+ * in order to allow that method to be executed
+ *
+ * @param string $className of the authentication class
+ * @param string $resourcePath optional url prefix for mapping
+ */
+ public function addAuthenticationClass($className, $resourcePath = null)
+ {
+ }
+ /**
+ * Add api classes through this method.
+ *
+ * All the public methods that do not start with _ (underscore)
+ * will be will be exposed as the public api by default.
+ *
+ * All the protected methods that do not start with _ (underscore)
+ * will exposed as protected api which will require authentication
+ *
+ * @param string $className name of the service class
+ * @param string $resourcePath optional url prefix for mapping, uses
+ * lowercase version of the class name when
+ * not specified
+ *
+ * @return null
+ *
+ * @throws Exception when supplied with invalid class name
+ */
+ public function addAPIClass($className, $resourcePath = null)
+ {
+ }
+ /**
+ * Add class for custom error handling
+ *
+ * @param string $className of the error handling class
+ */
+ public function addErrorClass($className)
+ {
+ }
+ /**
+ * protected methods will need at least one authentication class to be set
+ * in order to allow that method to be executed. When multiple authentication
+ * classes are in use, this function provides better performance by setting
+ * all auth classes through a single function call.
+ *
+ * @param array $classNames array of associative arrays containing
+ * the authentication class name & optional
+ * url prefix for mapping.
+ */
+ public function setAuthClasses(array $classNames)
+ {
+ }
+ /**
+ * Add multiple api classes through this method.
+ *
+ * This method provides better performance when large number
+ * of API classes are in use as it processes them all at once,
+ * as opposed to hundreds (or more) addAPIClass calls.
+ *
+ *
+ * All the public methods that do not start with _ (underscore)
+ * will be will be exposed as the public api by default.
+ *
+ * All the protected methods that do not start with _ (underscore)
+ * will exposed as protected api which will require authentication
+ *
+ * @param array $map array of associative arrays containing
+ * the class name & optional url prefix
+ * for mapping.
+ *
+ * @return null
+ *
+ * @throws Exception when supplied with invalid class name
+ */
+ public function mapAPIClasses(array $map)
+ {
+ }
+ /**
+ * Associated array that maps formats to their respective format class name
+ *
+ * @return array
+ */
+ public function getFormatMap()
+ {
+ }
+ /**
+ * API version requested by the client
+ * @return int
+ */
+ public function getRequestedApiVersion()
+ {
+ }
+ /**
+ * When false, restler will run in debug mode and parse the class files
+ * every time to map it to the URL
+ *
+ * @return bool
+ */
+ public function getProductionMode()
+ {
+ }
+ /**
+ * Chosen API version
+ *
+ * @return int
+ */
+ public function getApiVersion()
+ {
+ }
+ /**
+ * Base Url of the API Service
+ *
+ * @return string
+ *
+ * @example http://localhost/restler3
+ * @example http://restler3.com
+ */
+ public function getBaseUrl()
+ {
+ }
+ /**
+ * List of events that fired already
+ *
+ * @return array
+ */
+ public function getEvents()
+ {
+ }
+ /**
+ * Magic method to expose some protected variables
+ *
+ * @param string $name name of the hidden property
+ *
+ * @return null|mixed
+ */
+ public function __get($name)
+ {
+ }
+ /**
+ * Store the url map cache if needed
+ */
+ public function __destruct()
+ {
+ }
+ /**
+ * pre call
+ *
+ * call _pre_{methodName)_{extension} if exists with the same parameters as
+ * the api method
+ *
+ * @example _pre_get_json
+ *
+ */
+ protected function preCall()
+ {
+ }
+ /**
+ * post call
+ *
+ * call _post_{methodName}_{extension} if exists with the composed and
+ * serialized (applying the repose format) response data
+ *
+ * @example _post_get_json
+ */
+ protected function postCall()
+ {
+ }
+ }
+ /**
+ * Router class that routes the urls to api methods along with parameters
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Routes
+ {
+ public static $prefixingParameterNames = array('id');
+ public static $fieldTypesByName = array('email' => 'email', 'password' => 'password', 'phone' => 'tel', 'mobile' => 'tel', 'tel' => 'tel', 'search' => 'search', 'date' => 'date', 'created_at' => 'datetime', 'modified_at' => 'datetime', 'url' => 'url', 'link' => 'url', 'href' => 'url', 'website' => 'url', 'color' => 'color', 'colour' => 'color');
+ protected static $routes = array();
+ protected static $models = array();
+ /**
+ * Route the public and protected methods of an Api class
+ *
+ * @param string $className
+ * @param string $resourcePath
+ * @param int $version
+ *
+ * @throws RestException
+ */
+ public static function addAPIClass($className, $resourcePath = '', $version = 1)
+ {
+ }
+ /**
+ * @access private
+ */
+ public static function typeChar($type = null)
+ {
+ }
+ protected static function addPath($path, array $call, $httpMethod = 'GET', $version = 1)
+ {
+ }
+ /**
+ * Find the api method for the given url and http method
+ *
+ * @param string $path Requested url path
+ * @param string $httpMethod GET|POST|PUT|PATCH|DELETE etc
+ * @param int $version Api Version number
+ * @param array $data Data collected from the request
+ *
+ * @throws RestException
+ * @return Data\ApiMethodInfo
+ */
+ public static function find($path, $httpMethod, $version = 1, array $data = array())
+ {
+ }
+ public static function findAll(array $excludedPaths = array(), array $excludedHttpMethods = array(), $version = 1)
+ {
+ }
+ public static function verifyAccess($route)
+ {
+ }
+ /**
+ * Populates the parameter values
+ *
+ * @param array $call
+ * @param $data
+ *
+ * @return Data\ApiMethodInfo
+ *
+ * @access private
+ */
+ protected static function populate(array $call, $data)
+ {
+ }
+ /**
+ * @access private
+ */
+ protected static function pathVarTypeOf($var)
+ {
+ }
+ protected static function typeMatch($type, $var)
+ {
+ }
+ protected static function parseMagic(\ReflectionClass $class, $forResponse = true)
+ {
+ }
+ /**
+ * Get the type and associated model
+ *
+ * @param ReflectionClass $class
+ * @param array $scope
+ *
+ * @throws RestException
+ * @throws \Exception
+ * @return array
+ *
+ * @access protected
+ */
+ protected static function getTypeAndModel(\ReflectionClass $class, array $scope, $prefix = '', array $rules = array())
+ {
+ }
+ /**
+ * Import previously created routes from cache
+ *
+ * @param array $routes
+ */
+ public static function fromArray(array $routes)
+ {
+ }
+ /**
+ * Export current routes for cache
+ *
+ * @return array
+ */
+ public static function toArray()
+ {
+ }
+ public static function type($var)
+ {
+ }
+ public static function scope(\ReflectionClass $class)
+ {
+ }
+ }
+ /**
+ * Scope resolution class, manages instantiation and acts as a dependency
+ * injection container
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Scope
+ {
+ public static $classAliases = array(
+ //Core
+ 'Restler' => 'Luracast\\Restler\\Restler',
+ //Format classes
+ 'AmfFormat' => 'Luracast\\Restler\\Format\\AmfFormat',
+ 'JsFormat' => 'Luracast\\Restler\\Format\\JsFormat',
+ 'JsonFormat' => 'Luracast\\Restler\\Format\\JsonFormat',
+ 'HtmlFormat' => 'Luracast\\Restler\\Format\\HtmlFormat',
+ 'PlistFormat' => 'Luracast\\Restler\\Format\\PlistFormat',
+ 'UploadFormat' => 'Luracast\\Restler\\Format\\UploadFormat',
+ 'UrlEncodedFormat' => 'Luracast\\Restler\\Format\\UrlEncodedFormat',
+ 'XmlFormat' => 'Luracast\\Restler\\Format\\XmlFormat',
+ 'YamlFormat' => 'Luracast\\Restler\\Format\\YamlFormat',
+ 'CsvFormat' => 'Luracast\\Restler\\Format\\CsvFormat',
+ 'TsvFormat' => 'Luracast\\Restler\\Format\\TsvFormat',
+ //Filter classes
+ 'RateLimit' => 'Luracast\\Restler\\Filter\\RateLimit',
+ //UI classes
+ 'Forms' => 'Luracast\\Restler\\UI\\Forms',
+ 'Nav' => 'Luracast\\Restler\\UI\\Nav',
+ 'Emmet' => 'Luracast\\Restler\\UI\\Emmet',
+ 'T' => 'Luracast\\Restler\\UI\\Tags',
+ //API classes
+ 'Resources' => 'Luracast\\Restler\\Resources',
+ 'Explorer' => 'Luracast\\Restler\\Explorer\\v2\\Explorer',
+ 'Explorer1' => 'Luracast\\Restler\\Explorer\\v1\\Explorer',
+ 'Explorer2' => 'Luracast\\Restler\\Explorer\\v2\\Explorer',
+ //Cache classes
+ 'HumanReadableCache' => 'Luracast\\Restler\\HumanReadableCache',
+ 'ApcCache' => 'Luracast\\Restler\\ApcCache',
+ 'MemcacheCache' => 'Luracast\\Restler\\MemcacheCache',
+ //Utility classes
+ 'Object' => 'Luracast\\Restler\\Data\\Obj',
+ 'Text' => 'Luracast\\Restler\\Data\\Text',
+ 'Arr' => 'Luracast\\Restler\\Data\\Arr',
+ //Exception
+ 'RestException' => 'Luracast\\Restler\\RestException',
+ );
+ /**
+ * @var null|Callable adding a resolver function that accepts
+ * the class name as the parameter and returns an instance of the class
+ * as a singleton. Allows the use of your favourite DI container
+ */
+ public static $resolver = null;
+ public static $properties = array();
+ protected static $instances = array();
+ protected static $registry = array();
+ /**
+ * @param string $name
+ * @param callable $function
+ * @param bool $singleton
+ */
+ public static function register($name, $function, $singleton = true)
+ {
+ }
+ public static function set($name, $instance)
+ {
+ }
+ public static function get($name)
+ {
+ }
+ /**
+ * Get fully qualified class name for the given scope
+ *
+ * @param string $className
+ * @param array $scope local scope
+ *
+ * @return string|boolean returns the class name or false
+ */
+ public static function resolve($className, array $scope)
+ {
+ }
+ }
+}
+
+namespace Luracast\Restler\UI {
+ /**
+ * Class Emmet
+ * @package Luracast\Restler\UI
+ *
+ * @version 3.1.0
+ */
+ class Emmet
+ {
+ const DELIMITERS = '.#*>+^[=" ]{$@-#}';
+ /**
+ * Create the needed tag hierarchy from emmet string
+ *
+ * @param string $string
+ *
+ * @param array|string $data
+ *
+ * @return array|T
+ */
+ public static function make($string, $data = null)
+ {
+ }
+ public static function tokenize($string)
+ {
+ }
+ }
+ /**
+ * Utility class for automatically generating forms for the given http method
+ * and api url
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Forms implements \Luracast\Restler\iFilter
+ {
+ const FORM_KEY = 'form_key';
+ public static $filterFormRequestsOnly = false;
+ public static $excludedPaths = array();
+ /**
+ * @var bool should we fill up the form using given data?
+ */
+ public static $preFill = true;
+ /**
+ * @var ValidationInfo
+ */
+ public static $validationInfo = null;
+ protected static $inputTypes = array('hidden', 'password', 'button', 'image', 'file', 'reset', 'submit', 'search', 'checkbox', 'radio', 'email', 'text', 'color', 'date', 'datetime', 'datetime-local', 'email', 'month', 'number', 'range', 'search', 'tel', 'time', 'url', 'week');
+ protected static $fileUpload = false;
+ public static function setStyles(\Luracast\Restler\UI\HtmlForm $style)
+ {
+ }
+ /**
+ * Get the form
+ *
+ * @param string $method http method to submit the form
+ * @param string $action relative path from the web root. When set to null
+ * it uses the current api method's path
+ * @param bool $dataOnly if you want to render the form yourself use this
+ * option
+ * @param string $prefix used for adjusting the spacing in front of
+ * form elements
+ * @param string $indent used for adjusting indentation
+ *
+ * @return array|T
+ *
+ * @throws RestException
+ */
+ public static function get($method = 'POST', $action = null, $dataOnly = false, $prefix = '', $indent = ' ')
+ {
+ }
+ public static function style($name, array $metadata, $type = '')
+ {
+ }
+ public static function fields($dataOnly = false)
+ {
+ }
+ /**
+ * @param ValidationInfo $p
+ *
+ * @param bool $dataOnly
+ *
+ * @return array|T
+ */
+ public static function field(\Luracast\Restler\Data\ValidationInfo $p, $dataOnly = false)
+ {
+ }
+ protected static function guessFieldType(\Luracast\Restler\Data\ValidationInfo $p, $type = 'type')
+ {
+ }
+ /**
+ * Get the form key
+ *
+ * @param string $method http method for form key
+ * @param string $action relative path from the web root. When set to null
+ * it uses the current api method's path
+ *
+ * @return string generated form key
+ */
+ public static function key($method = 'POST', $action = null)
+ {
+ }
+ /**
+ * Access verification method.
+ *
+ * API access will be denied when this method returns false
+ *
+ * @return boolean true when api access is allowed false otherwise
+ *
+ * @throws RestException 403 security violation
+ */
+ public function __isAllowed()
+ {
+ }
+ }
+ /**
+ * Utility class for providing preset styles for html forms
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ * @version 3.0.0rc6
+ */
+ class FormStyles
+ {
+ public static $html = array(
+ 'form' => 'form[role=form id=$id# name=$name# method=$method# action=$action# enctype=$enctype#]',
+ 'input' => '.row>section>label{$label#}^input[id=$id# name=$name# value=$value# type=$type# required=$required# autofocus=$autofocus# placeholder=$default# accept=$accept# disabled=$disabled#]',
+ 'textarea' => '.row>label{$label#}^textarea[id=$id# name=$name# required=$required# autofocus=$autofocus# placeholder=$default# rows=3 disabled=$disabled#]{$value#}',
+ 'radio' => '.row>section>label{$label#}^span>label*options>input[id=$id# name=$name# value=$value# type=radio checked=$selected# required=$required# disabled=$disabled#]+{ $text#}',
+ 'select' => '.row>label{$label#}^select[id=$id# name=$name# required=$required#]>option[value]+option[value=$value# selected=$selected# disabled=$disabled#]{$text#}*options',
+ 'submit' => '.row>label{ }^button[id=$id# type=submit disabled=$disabled#]{$label#}',
+ 'fieldset' => 'fieldset>legend{$label#}',
+ 'checkbox' => '.row>label>input[id=$id# name=$name# value=$value# type=checkbox checked=$selected# required=$required# autofocus=$autofocus# accept=$accept# disabled=$disabled#]+{$label#}',
+ //------------- TYPE BASED STYLES ---------------------//
+ 'checkbox-array' => 'fieldset>legend{$label#}+section*options>label>input[name=$name# value=$value# type=checkbox checked=$selected# required=$required# autofocus=$autofocus# accept=$accept#]+{ $text#}',
+ 'select-array' => 'label{$label#}+select[name=$name# required=$required# multiple style="height: auto;background-image: none; outline: inherit;"]>option[value=$value# selected=$selected#]{$text#}*options',
+ );
+ public static $bootstrap3 = array(
+ 'form' => 'form[role=form id=$id# name=$name# method=$method# action=$action# enctype=$enctype#]',
+ 'input' => '.form-group.$error#>label{$label#}+input.form-control[id=$id# name=$name# value=$value# type=$type# required=$required# autofocus=$autofocus# placeholder=$default# accept=$accept# disabled=$disabled#]+small.help-block>{$message#}',
+ 'textarea' => '.form-group>label{$label#}+textarea.form-control[id=$id# name=$name# required=$required# autofocus=$autofocus# placeholder=$default# rows=3 disabled=$disabled#]{$value#}+small.help-block>{$message#}',
+ 'radio' => 'fieldset>legend{$label#}>.radio*options>label>input.radio[name=$name# value=$value# type=radio checked=$selected# required=$required# disabled=$disabled#]{$text#}+p.help-block>{$message#}',
+ 'select' => '.form-group>label{$label#}+select.form-control[id=$id# name=$name# multiple=$multiple# required=$required#]>option[value]+option[value=$value# selected=$selected# disabled=$disabled#]{$text#}*options',
+ 'submit' => 'button.btn.btn-primary[id=$id# type=submit]{$label#} disabled=$disabled#',
+ 'fieldset' => 'fieldset>legend{$label#}',
+ 'checkbox' => '.checkbox>label>input[id=$id# name=$name# value=$value# type=checkbox checked=$selected# required=$required# autofocus=$autofocus# disabled=$disabled#]+{$label#}^p.help-block>{$error#}',
+ //------------- TYPE BASED STYLES ---------------------//
+ 'checkbox-array' => 'fieldset>legend{$label#}>.checkbox*options>label>input[name=$name# value=$value# type=checkbox checked=$selected# required=$required#]{$text#}',
+ 'select-array' => '.form-group>label{$label#}+select.form-control[name=$name# multiple=$multiple# required=$required#] size=$options#>option[value=$value# selected=$selected#]{$text#}*options',
+ //------------- CUSTOM STYLES ---------------------//
+ 'radio-inline' => '.form-group>label{$label# : }+label.radio-inline*options>input.radio[name=$name# value=$value# type=radio checked=$selected# required=$required#]+{$text#}',
+ );
+ public static $foundation5 = array(
+ 'form' => 'form[id=$id# name=$name# method=$method# action=$action# enctype=$enctype#]',
+ 'input' => 'label{$label#}+input[id=$id# name=$name# value=$value# type=$type# required=$required# autofocus=$autofocus# placeholder=$default# accept=$accept# disabled=$disabled#]',
+ 'textarea' => 'label{$label#}+textarea[id=$id# name=$name# required=$required# autofocus=$autofocus# placeholder=$default# rows=3 disabled=$disabled#]{$value#}',
+ 'radio' => 'label{$label# : }+label.radio-inline*options>input.radio[name=$name# value=$value# type=radio checked=$selected# required=$required# disabled=$disabled#]+{$text#}',
+ 'select' => 'label{$label#}+select[id=$id# name=$name# required=$required#]>option[value]+option[value=$value# selected=$selected# disabled=$disabled#]{$text#}*options',
+ 'submit' => 'button.button[id=$id# type=submit disabled=$disabled#]{$label#}',
+ 'fieldset' => 'fieldset>legend{$label#}',
+ 'checkbox' => 'label>input[id=$id# name=$name# value=$value# type=checkbox checked=$selected# required=$required# autofocus=$autofocus# disabled=$disabled#]+{ $label#}',
+ //------------- TYPE BASED STYLES ---------------------//
+ 'checkbox-array' => 'fieldset>legend{$label#}+label*options>input[name=$name# value=$value# type=checkbox checked=$selected# required=$required# autofocus=$autofocus#]+{ $text#}',
+ 'select-array' => 'label{$label#}+select[name=$name# required=$required# multiple style="height: auto;background-image: none; outline: inherit;"]>option[value=$value# selected=$selected#]{$text#}*options',
+ );
+ }
+ /**
+ * Utility class for automatically creating data to build an navigation interface
+ * based on available routes that are accessible by the current user
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Nav
+ {
+ protected static $tree = array();
+ public static $root = 'home';
+ /**
+ * @var array all paths beginning with any of the following will be excluded
+ * from documentation. if an empty string is given it will exclude the root
+ */
+ public static $excludedPaths = array('');
+ /**
+ * @var array prefix additional menu items with one of the following syntax
+ * [$path => $text]
+ * [$path]
+ * [$path => ['text' => $text, 'url' => $url, 'trail'=> $trail]]
+ */
+ public static $prepends = array();
+ /**
+ * @var array suffix additional menu items with one of the following syntax
+ * [$path => $text]
+ * [$path]
+ * [$path => ['text' => $text, 'url' => $url, 'trail'=> $trail]]
+ */
+ public static $appends = array();
+ public static $addExtension = true;
+ protected static $extension = '';
+ protected static $activeTrail = '';
+ protected static $url;
+ public static function get($for = '', $activeTrail = null)
+ {
+ }
+ protected static function &nested(array &$tree, array $parts)
+ {
+ }
+ public static function addUrls(array $urls)
+ {
+ }
+ public static function add($url, $label = null, $trail = null)
+ {
+ }
+ public static function build(array $r)
+ {
+ }
+ }
+ /**
+ * Utility class for generating html tags in an object oriented way
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ *
+ * ============================ magic properties ==============================
+ * @property Tags parent parent tag
+ * ============================== magic methods ===============================
+ * @method Tags name(string $value) name attribute
+ * @method Tags action(string $value) action attribute
+ * @method Tags placeholder(string $value) placeholder attribute
+ * @method Tags value(string $value) value attribute
+ * @method Tags required(boolean $value) required attribute
+ * @method Tags class(string $value) required attribute
+ *
+ * =========================== static magic methods ============================
+ * @method static Tags form() creates a html form
+ * @method static Tags input() creates a html input element
+ * @method static Tags button() creates a html button element
+ *
+ */
+ class Tags implements \ArrayAccess, \Countable
+ {
+ public static $humanReadable = true;
+ public static $initializer = null;
+ protected static $instances = array();
+ public $prefix = '';
+ public $indent = ' ';
+ public $tag;
+ protected $attributes = array();
+ protected $children = array();
+ protected $_parent;
+ public function __construct($name = null, array $children = array())
+ {
+ }
+ /**
+ * Get Tag by id
+ *
+ * Retrieve a tag by its id attribute
+ *
+ * @param string $id
+ *
+ * @return Tags|null
+ */
+ public static function byId($id)
+ {
+ }
+ /**
+ * @param $name
+ * @param array $children
+ *
+ * @return Tags
+ */
+ public static function __callStatic($name, array $children)
+ {
+ }
+ public function toString($prefix = '', $indent = ' ')
+ {
+ }
+ public function __toString()
+ {
+ }
+ public function toArray()
+ {
+ }
+ /**
+ * Set the id attribute of the current tag
+ *
+ * @param string $value
+ *
+ * @return string
+ */
+ public function id($value)
+ {
+ }
+ public function __get($name)
+ {
+ }
+ public function __set($name, $value)
+ {
+ }
+ public function __isset($name)
+ {
+ }
+ /**
+ * @param $attribute
+ * @param $value
+ *
+ * @return Tags
+ */
+ public function __call($attribute, $value)
+ {
+ }
+ public function offsetGet($index)
+ {
+ }
+ public function offsetExists($index)
+ {
+ }
+ public function offsetSet($index, $value)
+ {
+ }
+ public function offsetUnset($index)
+ {
+ }
+ public function getContents()
+ {
+ }
+ public function count()
+ {
+ }
+ }
+}
+
+namespace Luracast\Restler {
+ /**
+ * Information gathered about the api user is kept here using static methods
+ * and properties for other classes to make use of them.
+ * Typically Authentication classes populate them
+ *
+ * @category Framework
+ * @package restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class User implements \Luracast\Restler\iIdentifyUser
+ {
+ public static $id = null;
+ public static $cacheId = null;
+ public static $ip;
+ public static $browser = '';
+ public static $platform = '';
+ public static function init()
+ {
+ }
+ public static function getUniqueIdentifier($includePlatform = false)
+ {
+ }
+ public static function getIpAddress($ignoreProxies = false)
+ {
+ }
+ /**
+ * Authentication classes should call this method
+ *
+ * @param string $id user id as identified by the authentication classes
+ *
+ * @return void
+ */
+ public static function setUniqueIdentifier($id)
+ {
+ }
+ /**
+ * User identity to be used for caching purpose
+ *
+ * When the dynamic cache service places an object in the cache, it needs to
+ * label it with a unique identifying string known as a cache ID. This
+ * method gives that identifier
+ *
+ * @return string
+ */
+ public static function getCacheIdentifier()
+ {
+ }
+ /**
+ * User identity for caching purpose
+ *
+ * In a role based access control system this will be based on role
+ *
+ * @param $id
+ *
+ * @return void
+ */
+ public static function setCacheIdentifier($id)
+ {
+ }
+ }
+ /**
+ * Describe the purpose of this class/interface/trait
+ *
+ * @category Framework
+ * @package Restler
+ * @author R.Arul Kumaran
+ * @copyright 2010 Luracast
+ * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
+ * @link http://luracast.com/products/restler/
+ *
+ */
+ class Util
+ {
+ /**
+ * @var Restler instance injected at runtime
+ */
+ public static $restler;
+ /**
+ * verify if the given data type string is scalar or not
+ *
+ * @static
+ *
+ * @param string $type data type as string
+ *
+ * @return bool true or false
+ */
+ public static function isObjectOrArray($type)
+ {
+ }
+ /**
+ * Get the value deeply nested inside an array / object
+ *
+ * Using isset() to test the presence of nested value can give a false positive
+ *
+ * This method serves that need
+ *
+ * When the deeply nested property is found its value is returned, otherwise
+ * false is returned.
+ *
+ * @param array|object $from array to extract the value from
+ * @param string|array $key ... pass more to go deeply inside the array
+ * alternatively you can pass a single array
+ *
+ * @return null|mixed null when not found, value otherwise
+ */
+ public static function nestedValue($from, $key)
+ {
+ }
+ public static function getResourcePath($className, $resourcePath = null, $prefix = '')
+ {
+ }
+ /**
+ * Compare two strings and remove the common
+ * sub string from the first string and return it
+ *
+ * @static
+ *
+ * @param string $fromPath
+ * @param string $usingPath
+ * @param string $char
+ * optional, set it as
+ * blank string for char by char comparison
+ *
+ * @return string
+ */
+ public static function removeCommonPath($fromPath, $usingPath, $char = '/')
+ {
+ }
+ /**
+ * Compare two strings and split the common
+ * sub string from the first string and return it as array
+ *
+ * @static
+ *
+ * @param string $fromPath
+ * @param string $usingPath
+ * @param string $char
+ * optional, set it as
+ * blank string for char by char comparison
+ *
+ * @return array with 2 strings first is the common string and second is the remaining in $fromPath
+ */
+ public static function splitCommonPath($fromPath, $usingPath, $char = '/')
+ {
+ }
+ /**
+ * Parses the request to figure out the http request type
+ *
+ * @static
+ *
+ * @return string which will be one of the following
+ * [GET, POST, PUT, PATCH, DELETE]
+ * @example GET
+ */
+ public static function getRequestMethod()
+ {
+ }
+ /**
+ * Pass any content negotiation header such as Accept,
+ * Accept-Language to break it up and sort the resulting array by
+ * the order of negotiation.
+ *
+ * @static
+ *
+ * @param string $accept header value
+ *
+ * @return array sorted by the priority
+ */
+ public static function sortByPriority($accept)
+ {
+ }
+ public static function getShortName($className)
+ {
+ }
+ }
+}
+
+namespace {
+ /**
+ * Include function in the root namespace to include files optimized
+ * for the global context.
+ *
+ * @param $path string path of php file to include into the global context.
+ *
+ * @return mixed|bool false if the file could not be included.
+ */
+ function Luracast_Restler_autoloaderInclude($path)
+ {
+ }
+}
+
+namespace {
+ function exceptions()
+ {
+ }
+ function parse_backtrace($raw, $skip = 1)
+ {
+ }
+ function render($data, $shadow = \true)
+ {
+ }
+}
diff --git a/dev/tools/phan/stubs/session.phan_php b/dev/tools/phan/stubs/session.phan_php
new file mode 100644
index 0000000000000..fc93388c7ad9d
--- /dev/null
+++ b/dev/tools/phan/stubs/session.phan_php
@@ -0,0 +1,68 @@
+ "old_value"]
+ *
+ * If we update the object with `metadata[new]=new_value`, the server side
+ * object now has *both* fields:
+ *
+ * metadata = ["old" => "old_value", "new" => "new_value"]
+ *
+ * This is okay in itself because usually users will want to treat it as
+ * additive:
+ *
+ * $obj->metadata["new"] = "new_value";
+ * $obj->save();
+ *
+ * However, in other cases, they may want to replace the entire existing
+ * contents:
+ *
+ * $obj->metadata = ["new" => "new_value"];
+ * $obj->save();
+ *
+ * This is where things get a little bit tricky because in order to clear
+ * any old keys that may have existed, we actually have to send an explicit
+ * empty string to the server. So the operation above would have to send
+ * this form to get the intended behavior:
+ *
+ * metadata[old]=&metadata[new]=new_value
+ *
+ * This method allows us to track which parameters are considered additive,
+ * and lets us behave correctly where appropriate when serializing
+ * parameters to be sent.
+ *
+ * @return Util\Set Set of additive parameters
+ */
+ public static function getAdditiveParams()
+ {
+ }
+ public function __construct($id = null, $opts = null)
+ {
+ }
+ // Standard accessor magic methods
+ public function __set($k, $v)
+ {
+ }
+ /**
+ * @param mixed $k
+ *
+ * @return bool
+ */
+ public function __isset($k)
+ {
+ }
+ public function __unset($k)
+ {
+ }
+ public function &__get($k)
+ {
+ }
+ /**
+ * Magic method for var_dump output. Only works with PHP >= 5.6.
+ *
+ * @return array
+ */
+ public function __debugInfo()
+ {
+ }
+ // ArrayAccess methods
+ /**
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($k, $v)
+ {
+ }
+ /**
+ * @return bool
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($k)
+ {
+ }
+ /**
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($k)
+ {
+ }
+ /**
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($k)
+ {
+ }
+ /**
+ * @return int
+ */
+ #[\ReturnTypeWillChange]
+ public function count()
+ {
+ }
+ public function keys()
+ {
+ }
+ public function values()
+ {
+ }
+ /**
+ * This unfortunately needs to be public to be used in Util\Util.
+ *
+ * @param array $values
+ * @param null|array|string|Util\RequestOptions $opts
+ *
+ * @return static the object constructed from the given values
+ */
+ public static function constructFrom($values, $opts = null)
+ {
+ }
+ /**
+ * Refreshes this object using the provided values.
+ *
+ * @param array $values
+ * @param null|array|string|Util\RequestOptions $opts
+ * @param bool $partial defaults to false
+ */
+ public function refreshFrom($values, $opts, $partial = false)
+ {
+ }
+ /**
+ * Mass assigns attributes on the model.
+ *
+ * @param array $values
+ * @param null|array|string|Util\RequestOptions $opts
+ * @param bool $dirty defaults to true
+ */
+ public function updateAttributes($values, $opts = null, $dirty = true)
+ {
+ }
+ /**
+ * @param bool $force defaults to false
+ *
+ * @return array a recursive mapping of attributes to values for this object,
+ * including the proper value for deleted attributes
+ */
+ public function serializeParameters($force = false)
+ {
+ }
+ public function serializeParamsValue($value, $original, $unsaved, $force, $key = null)
+ {
+ }
+ /**
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function jsonSerialize()
+ {
+ }
+ /**
+ * Returns an associative array with the key and values composing the
+ * Stripe object.
+ *
+ * @return array the associative array
+ */
+ public function toArray()
+ {
+ }
+ /**
+ * Returns a pretty JSON representation of the Stripe object.
+ *
+ * @return string the JSON representation of the Stripe object
+ */
+ public function toJSON()
+ {
+ }
+ public function __toString()
+ {
+ }
+ /**
+ * Sets all keys within the StripeObject as unsaved so that they will be
+ * included with an update when `serializeParameters` is called. This
+ * method is also recursive, so any StripeObjects contained as values or
+ * which are values in a tenant array are also marked as dirty.
+ */
+ public function dirty()
+ {
+ }
+ protected function dirtyValue($value)
+ {
+ }
+ /**
+ * Produces a deep copy of the given object including support for arrays
+ * and StripeObjects.
+ *
+ * @param mixed $obj
+ */
+ protected static function deepCopy($obj)
+ {
+ }
+ /**
+ * Returns a hash of empty values for all the values that are in the given
+ * StripeObject.
+ *
+ * @param mixed $obj
+ */
+ public static function emptyValues($obj)
+ {
+ }
+ /**
+ * @return null|ApiResponse The last response from the Stripe API
+ */
+ public function getLastResponse()
+ {
+ }
+ /**
+ * Sets the last response from the Stripe API.
+ *
+ * @param ApiResponse $resp
+ */
+ public function setLastResponse($resp)
+ {
+ }
+ /**
+ * Indicates whether or not the resource has been deleted on the server.
+ * Note that some, but not all, resources can indicate whether they have
+ * been deleted.
+ *
+ * @return bool whether the resource is deleted
+ */
+ public function isDeleted()
+ {
+ }
+}
+namespace Stripe\ApiOperations;
+
+/**
+ * Trait for resources that need to make API requests.
+ *
+ * This trait should only be applied to classes that derive from StripeObject.
+ */
+trait Request
+{
+ /**
+ * @param null|array|mixed $params The list of parameters to validate
+ *
+ * @throws \Stripe\Exception\InvalidArgumentException if $params exists and is not an array
+ */
+ protected static function _validateParams($params = null)
+ {
+ }
+ /**
+ * @param string $method HTTP method ('get', 'post', etc.)
+ * @param string $url URL for the request
+ * @param array $params list of parameters for the request
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return array tuple containing (the JSON response, $options)
+ */
+ protected function _request($method, $url, $params = [], $options = null)
+ {
+ }
+ /**
+ * @param string $method HTTP method ('get', 'post', etc.)
+ * @param string $url URL for the request
+ * @param callable $readBodyChunk function that will receive chunks of data from a successful request body
+ * @param array $params list of parameters for the request
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ protected function _requestStream($method, $url, $readBodyChunk, $params = [], $options = null)
+ {
+ }
+ /**
+ * @param string $method HTTP method ('get', 'post', etc.)
+ * @param string $url URL for the request
+ * @param array $params list of parameters for the request
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return array tuple containing (the JSON response, $options)
+ */
+ protected static function _staticRequest($method, $url, $params, $options)
+ {
+ }
+ /**
+ * @param string $method HTTP method ('get', 'post', etc.)
+ * @param string $url URL for the request
+ * @param callable $readBodyChunk function that will receive chunks of data from a successful request body
+ * @param array $params list of parameters for the request
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ protected static function _staticStreamingRequest($method, $url, $readBodyChunk, $params, $options)
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * Class ApiResource.
+ */
+abstract class ApiResource extends \Stripe\StripeObject
+{
+ use \Stripe\ApiOperations\Request;
+ /**
+ * @return \Stripe\Util\Set A list of fields that can be their own type of
+ * API resource (say a nested card under an account for example), and if
+ * that resource is set, it should be transmitted to the API on a create or
+ * update. Doing so is not the default behavior because API resources
+ * should normally be persisted on their own RESTful endpoints.
+ */
+ public static function getSavedNestedResources()
+ {
+ }
+ /**
+ * @var bool A flag that can be set a behavior that will cause this
+ * resource to be encoded and sent up along with an update of its parent
+ * resource. This is usually not desirable because resources are updated
+ * individually on their own endpoints, but there are certain cases,
+ * replacing a customer's source for example, where this is allowed.
+ */
+ public $saveWithParent = false;
+ public function __set($k, $v)
+ {
+ }
+ /**
+ * @throws Exception\ApiErrorException
+ *
+ * @return ApiResource the refreshed resource
+ */
+ public function refresh()
+ {
+ }
+ /**
+ * @return string the base URL for the given class
+ */
+ public static function baseUrl()
+ {
+ }
+ /**
+ * @return string the endpoint URL for the given class
+ */
+ public static function classUrl()
+ {
+ }
+ /**
+ * @param null|string $id the ID of the resource
+ *
+ * @throws Exception\UnexpectedValueException if $id is null
+ *
+ * @return string the instance endpoint URL for the given class
+ */
+ public static function resourceUrl($id)
+ {
+ }
+ /**
+ * @return string the full API URL for this API resource
+ */
+ public function instanceUrl()
+ {
+ }
+}
+namespace Stripe\ApiOperations;
+
+/**
+ * Trait for listable resources. Adds a `all()` static method to the class.
+ *
+ * This trait should only be applied to classes that derive from StripeObject.
+ */
+trait All
+{
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection of ApiResources
+ */
+ public static function all($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Trait for creatable resources. Adds a `create()` static method to the class.
+ *
+ * This trait should only be applied to classes that derive from StripeObject.
+ */
+trait Create
+{
+ /**
+ * @param null|array $params
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return static the created resource
+ */
+ public static function create($params = null, $options = null)
+ {
+ }
+}
+/**
+ * Trait for deletable resources. Adds a `delete()` method to the class.
+ *
+ * This trait should only be applied to classes that derive from StripeObject.
+ */
+trait Delete
+{
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return static the deleted resource
+ */
+ public function delete($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Trait for resources that have nested resources.
+ *
+ * This trait should only be applied to classes that derive from StripeObject.
+ */
+trait NestedResource
+{
+ /**
+ * @param string $method
+ * @param string $url
+ * @param null|array $params
+ * @param null|array|string $options
+ *
+ * @return \Stripe\StripeObject
+ */
+ protected static function _nestedResourceOperation($method, $url, $params = null, $options = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param string $nestedPath
+ * @param null|string $nestedId
+ *
+ * @return string
+ */
+ protected static function _nestedResourceUrl($id, $nestedPath, $nestedId = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param string $nestedPath
+ * @param null|array $params
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject
+ */
+ protected static function _createNestedResource($id, $nestedPath, $params = null, $options = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param string $nestedPath
+ * @param null|string $nestedId
+ * @param null|array $params
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject
+ */
+ protected static function _retrieveNestedResource($id, $nestedPath, $nestedId, $params = null, $options = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param string $nestedPath
+ * @param null|string $nestedId
+ * @param null|array $params
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject
+ */
+ protected static function _updateNestedResource($id, $nestedPath, $nestedId, $params = null, $options = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param string $nestedPath
+ * @param null|string $nestedId
+ * @param null|array $params
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject
+ */
+ protected static function _deleteNestedResource($id, $nestedPath, $nestedId, $params = null, $options = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param string $nestedPath
+ * @param null|array $params
+ * @param null|array|string $options
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject
+ */
+ protected static function _allNestedResources($id, $nestedPath, $params = null, $options = null)
+ {
+ }
+}
+/**
+ * Trait for updatable resources. Adds an `update()` static method and a
+ * `save()` method to the class.
+ *
+ * This trait should only be applied to classes that derive from StripeObject.
+ */
+trait Update
+{
+ /**
+ * @param string $id the ID of the resource to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return static the updated resource
+ */
+ public static function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return static the saved resource
+ *
+ * @deprecated The `save` method is deprecated and will be removed in a
+ * future major version of the library. Use the static method `update`
+ * on the resource instead.
+ */
+ public function save($opts = null)
+ {
+ }
+}
+/**
+ * Trait for retrievable resources. Adds a `retrieve()` static method to the
+ * class.
+ *
+ * This trait should only be applied to classes that derive from StripeObject.
+ */
+trait Retrieve
+{
+ /**
+ * @param array|string $id the ID of the API resource to retrieve,
+ * or an options array containing an `id` key
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return static
+ */
+ public static function retrieve($id, $opts = null)
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * This is an object representing a Stripe account. You can retrieve it to see
+ * properties on the account like its current requirements or if the account is
+ * enabled to make live charges or receive payouts.
+ *
+ * For Custom accounts, the properties below are always returned. For other
+ * accounts, some properties are returned until that account has started to go
+ * through Connect Onboarding. Once you create an Account Link for a Standard
+ * or Express account, some parameters are no longer returned. These are marked as
+ * Custom Only or Custom and Express below. Learn
+ * about the differences between
+ * accounts.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $business_profile Business information about the account.
+ * @property null|string $business_type The business type.
+ * @property null|\Stripe\StripeObject $capabilities
+ * @property null|bool $charges_enabled Whether the account can create live charges.
+ * @property null|\Stripe\StripeObject $company
+ * @property null|\Stripe\StripeObject $controller
+ * @property null|string $country The account's country.
+ * @property null|int $created Time at which the account was connected. Measured in seconds since the Unix epoch.
+ * @property null|string $default_currency Three-letter ISO currency code representing the default currency for the account. This must be a currency that Stripe supports in the account's country.
+ * @property null|bool $details_submitted Whether account details have been submitted. Standard accounts cannot receive payouts before this is true.
+ * @property null|string $email An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders.
+ * @property null|\Stripe\Collection<\Stripe\BankAccount|\Stripe\Card> $external_accounts External accounts (bank accounts and debit cards) currently attached to this account
+ * @property null|\Stripe\StripeObject $future_requirements
+ * @property null|\Stripe\Person $individual
This is an object representing a person associated with a Stripe account.
A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|bool $payouts_enabled Whether Stripe can send payouts to this account.
+ * @property null|\Stripe\StripeObject $requirements
+ * @property null|\Stripe\StripeObject $settings Options for customizing how the account functions within Stripe.
+ * @property null|\Stripe\StripeObject $tos_acceptance
+ * @property null|string $type The Stripe account type. Can be standard, express, or custom.
+ */
+class Account extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'account';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\NestedResource;
+ use \Stripe\ApiOperations\Update;
+ const BUSINESS_TYPE_COMPANY = 'company';
+ const BUSINESS_TYPE_GOVERNMENT_ENTITY = 'government_entity';
+ const BUSINESS_TYPE_INDIVIDUAL = 'individual';
+ const BUSINESS_TYPE_NON_PROFIT = 'non_profit';
+ const TYPE_CUSTOM = 'custom';
+ const TYPE_EXPRESS = 'express';
+ const TYPE_STANDARD = 'standard';
+ use \Stripe\ApiOperations\Retrieve {
+ retrieve as protected _retrieve;
+ }
+ public static function getSavedNestedResources()
+ {
+ }
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param null|array|string $id the ID of the account to retrieve, or an
+ * options array containing an `id` key
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public static function retrieve($id = null, $opts = null)
+ {
+ }
+ public function serializeParameters($force = false)
+ {
+ }
+ /**
+ * @param null|array $clientId
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject object containing the response from the API
+ */
+ public function deauthorize($clientId = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account the rejected account
+ */
+ public function reject($params = null, $opts = null)
+ {
+ }
+ const PATH_CAPABILITIES = '/capabilities';
+ /**
+ * @param string $id the ID of the account on which to retrieve the capabilities
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Capability> the list of capabilities
+ */
+ public static function allCapabilities($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account to which the capability belongs
+ * @param string $capabilityId the ID of the capability to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Capability
+ */
+ public static function retrieveCapability($id, $capabilityId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account to which the capability belongs
+ * @param string $capabilityId the ID of the capability to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Capability
+ */
+ public static function updateCapability($id, $capabilityId, $params = null, $opts = null)
+ {
+ }
+ const PATH_EXTERNAL_ACCOUNTS = '/external_accounts';
+ /**
+ * @param string $id the ID of the account on which to retrieve the external accounts
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card> the list of external accounts (BankAccount or Card)
+ */
+ public static function allExternalAccounts($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account on which to create the external account
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public static function createExternalAccount($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account to which the external account belongs
+ * @param string $externalAccountId the ID of the external account to delete
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public static function deleteExternalAccount($id, $externalAccountId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account to which the external account belongs
+ * @param string $externalAccountId the ID of the external account to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public static function retrieveExternalAccount($id, $externalAccountId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account to which the external account belongs
+ * @param string $externalAccountId the ID of the external account to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public static function updateExternalAccount($id, $externalAccountId, $params = null, $opts = null)
+ {
+ }
+ const PATH_LOGIN_LINKS = '/login_links';
+ /**
+ * @param string $id the ID of the account on which to create the login link
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\LoginLink
+ */
+ public static function createLoginLink($id, $params = null, $opts = null)
+ {
+ }
+ const PATH_PERSONS = '/persons';
+ /**
+ * @param string $id the ID of the account on which to retrieve the persons
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Person> the list of persons
+ */
+ public static function allPersons($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account on which to create the person
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public static function createPerson($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account to which the person belongs
+ * @param string $personId the ID of the person to delete
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public static function deletePerson($id, $personId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account to which the person belongs
+ * @param string $personId the ID of the person to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public static function retrievePerson($id, $personId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the account to which the person belongs
+ * @param string $personId the ID of the person to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public static function updatePerson($id, $personId, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Account Links are the means by which a Connect platform grants a connected
+ * account permission to access Stripe-hosted applications, such as Connect
+ * Onboarding.
+ *
+ * Related guide: Connect
+ * Onboarding.
+ *
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property int $expires_at The timestamp at which this account link will expire.
+ * @property string $url The URL for the account link.
+ */
+class AccountLink extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'account_link';
+ use \Stripe\ApiOperations\Create;
+}
+namespace Stripe\ApiOperations;
+
+/**
+ * Trait for searchable resources.
+ *
+ * This trait should only be applied to classes that derive from StripeObject.
+ */
+trait Search
+{
+ /**
+ * @param string $searchUrl
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult of ApiResources
+ */
+ protected static function _searchResource($searchUrl, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Trait for retrievable singleton resources. Adds a `retrieve()` static method to the
+ * class.
+ *
+ * This trait should only be applied to classes that derive from SingletonApiResource.
+ */
+trait SingletonRetrieve
+{
+ /**
+ * @param array|string $id the ID of the API resource to retrieve,
+ * or an options array containing an `id` key
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return static
+ */
+ public static function retrieve($opts = null)
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * Class ApiRequestor.
+ */
+class ApiRequestor
+{
+ /**
+ * ApiRequestor constructor.
+ *
+ * @param null|string $apiKey
+ * @param null|string $apiBase
+ */
+ public function __construct($apiKey = null, $apiBase = null)
+ {
+ }
+ /**
+ * @param string $method
+ * @param string $url
+ * @param null|array $params
+ * @param null|array $headers
+ *
+ * @throws Exception\ApiErrorException
+ *
+ * @return array tuple containing (ApiReponse, API key)
+ */
+ public function request($method, $url, $params = null, $headers = null)
+ {
+ }
+ /**
+ * @param string $method
+ * @param string $url
+ * @param callable $readBodyChunkCallable
+ * @param null|array $params
+ * @param null|array $headers
+ *
+ * @throws Exception\ApiErrorException
+ */
+ public function requestStream($method, $url, $readBodyChunkCallable, $params = null, $headers = null)
+ {
+ }
+ /**
+ * @param string $rbody a JSON string
+ * @param int $rcode
+ * @param array $rheaders
+ * @param array $resp
+ *
+ * @throws Exception\UnexpectedValueException
+ * @throws Exception\ApiErrorException
+ */
+ public function handleErrorResponse($rbody, $rcode, $rheaders, $resp)
+ {
+ }
+ /**
+ * @static
+ *
+ * @param HttpClient\ClientInterface $client
+ */
+ public static function setHttpClient($client)
+ {
+ }
+ /**
+ * @static
+ *
+ * @param HttpClient\StreamingClientInterface $client
+ */
+ public static function setStreamingHttpClient($client)
+ {
+ }
+ /**
+ * @static
+ *
+ * Resets any stateful telemetry data
+ */
+ public static function resetTelemetry()
+ {
+ }
+}
+/**
+ * Class ApiResponse.
+ */
+class ApiResponse
+{
+ /**
+ * @var null|array|CaseInsensitiveArray
+ */
+ public $headers;
+ /**
+ * @var string
+ */
+ public $body;
+ /**
+ * @var null|array
+ */
+ public $json;
+ /**
+ * @var int
+ */
+ public $code;
+ /**
+ * @param string $body
+ * @param int $code
+ * @param null|array|CaseInsensitiveArray $headers
+ * @param null|array $json
+ */
+ public function __construct($body, $code, $headers, $json)
+ {
+ }
+}
+/**
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $domain_name
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ */
+class ApplePayDomain extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'apple_pay_domain';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ /**
+ * @return string The class URL for this resource. It needs to be special
+ * cased because it doesn't fit into the standard resource pattern.
+ */
+ public static function classUrl()
+ {
+ }
+}
+/**
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property string|\Stripe\Account $account ID of the Stripe account this fee was taken from.
+ * @property int $amount Amount earned, in %s.
+ * @property int $amount_refunded Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued)
+ * @property string|\Stripe\StripeObject $application ID of the Connect application that earned the fee.
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
+ * @property string|\Stripe\Charge $charge ID of the charge that the application fee was taken from.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string|\Stripe\Charge $originating_transaction ID of the corresponding charge on the platform account, if this fee was the result of a charge using the destination parameter.
+ * @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
+ * @property \Stripe\Collection<\Stripe\StripeObject> $refunds A list of refunds that have been applied to the fee.
+ */
+class ApplicationFee extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'application_fee';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\NestedResource;
+ use \Stripe\ApiOperations\Retrieve;
+ const PATH_REFUNDS = '/refunds';
+ /**
+ * @param string $id the ID of the application fee on which to retrieve the fee refunds
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund> the list of fee refunds
+ */
+ public static function allRefunds($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the application fee on which to create the fee refund
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public static function createRefund($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the application fee to which the fee refund belongs
+ * @param string $refundId the ID of the fee refund to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public static function retrieveRefund($id, $refundId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the application fee to which the fee refund belongs
+ * @param string $refundId the ID of the fee refund to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public static function updateRefund($id, $refundId, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Application Fee Refund objects allow you to refund an application
+ * fee that has previously been created but not yet refunded. Funds will be
+ * refunded to the Stripe account from which the fee was originally collected.
+ *
+ * Related guide: Refunding
+ * Application Fees.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount, in %s.
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact on your account balance.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string|\Stripe\ApplicationFee $fee ID of the application fee that was refunded.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ */
+class ApplicationFeeRefund extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'fee_refund';
+ use \Stripe\ApiOperations\Update {
+ save as protected _save;
+ }
+ /**
+ * @return string the API URL for this Stripe refund
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param null|array|string $opts
+ *
+ * @return ApplicationFeeRefund the saved refund
+ */
+ public function save($opts = null)
+ {
+ }
+}
+namespace Stripe\Apps;
+
+/**
+ * Secret Store is an API that allows Stripe Apps developers to securely persist
+ * secrets for use by UI Extensions and app backends.
+ *
+ * The primary resource in Secret Store is a secret. Other apps can't
+ * view secrets created by an app. Additionally, secrets are scoped to provide
+ * further permission control.
+ *
+ * All Dashboard users and the app backend share account scoped
+ * secrets. Use the account scope for secrets that don't change
+ * per-user, like a third-party API key.
+ *
+ * A user scoped secret is accessible by the app backend and one
+ * specific Dashboard user. Use the user scope for per-user secrets
+ * like per-user OAuth tokens, where different users might have different
+ * permissions.
+ *
+ * Related guide: Store
+ * data between page reloads.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|int $expires_at The Unix timestamp for the expiry time of the secret, after which the secret deletes.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string $name A name for the secret that's unique within the scope.
+ * @property null|string $payload The plaintext secret value to be stored.
+ * @property \Stripe\StripeObject $scope
+ */
+class Secret extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'apps.secret';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Apps\Secret the deleted secret
+ */
+ public static function deleteWhere($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Apps\Secret the finded secret
+ */
+ public static function find($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * Class SingletonApiResource.
+ */
+abstract class SingletonApiResource extends \Stripe\ApiResource
+{
+ /**
+ * @return string the endpoint associated with this singleton class
+ */
+ public static function classUrl()
+ {
+ }
+ /**
+ * @return string the endpoint associated with this singleton API resource
+ */
+ public function instanceUrl()
+ {
+ }
+}
+/**
+ * This is an object representing your Stripe balance. You can retrieve it to see
+ * the balance currently on your Stripe account.
+ *
+ * You can also retrieve the balance history, which contains a list of transactions
+ * that contributed to the balance (charges, payouts, and so forth).
+ *
+ * The available and pending amounts for each currency are broken down further by
+ * payment source types.
+ *
+ * Related guide: Understanding Connect
+ * Account Balances.
+ *
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property \Stripe\StripeObject[] $available Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the Transfers API or Payouts API. The available balance for each currency and payment type can be found in the source_types property.
+ * @property null|\Stripe\StripeObject[] $connect_reserved Funds held due to negative balances on connected Custom accounts. The connect reserve balance for each currency and payment type can be found in the source_types property.
+ * @property null|\Stripe\StripeObject[] $instant_available Funds that can be paid out using Instant Payouts.
+ * @property null|\Stripe\StripeObject $issuing
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject[] $pending Funds that are not yet available in the balance, due to the 7-day rolling pay cycle. The pending balance for each currency, and for each payment type, can be found in the source_types property.
+ */
+class Balance extends \Stripe\SingletonApiResource
+{
+ const OBJECT_NAME = 'balance';
+ use \Stripe\ApiOperations\SingletonRetrieve;
+}
+/**
+ * Balance transactions represent funds moving through your Stripe account. They're
+ * created for every type of transaction that comes into or flows out of your
+ * Stripe account balance.
+ *
+ * Related guide: Balance
+ * Transaction Types.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Gross amount of the transaction, in %s.
+ * @property int $available_on The date the transaction's net funds will become available in the Stripe balance.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|float $exchange_rate The exchange rate used, if applicable, for this transaction. Specifically, if money was converted from currency A to currency B, then the amount in currency A, times exchange_rate, would be the amount in currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent's amount would be 1000 and currency would be eur. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction's amount would be 1234, currency would be usd, and exchange_rate would be 1.234.
+ * @property int $fee Fees (in %s) paid for this transaction.
+ * @property \Stripe\StripeObject[] $fee_details Detailed breakdown of fees (in %s) paid for this transaction.
+ * @property int $net Net amount of the transaction, in %s.
+ * @property string $reporting_category Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
+ * @property null|string|\Stripe\StripeObject $source The Stripe object to which this transaction is related.
+ * @property string $status If the transaction's net funds are available in the Stripe balance yet. Either available or pending.
+ * @property string $type Transaction type: adjustment, advance, advance_funding, anticipation_repayment, application_fee, application_fee_refund, charge, connect_collection_transfer, contribution, issuing_authorization_hold, issuing_authorization_release, issuing_dispute, issuing_transaction, payment, payment_failure_refund, payment_refund, payout, payout_cancel, payout_failure, refund, refund_failure, reserve_transaction, reserved_funds, stripe_fee, stripe_fx_fee, tax_fee, topup, topup_reversal, transfer, transfer_cancel, transfer_failure, or transfer_refund. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category instead.
+ */
+class BalanceTransaction extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'balance_transaction';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const TYPE_ADJUSTMENT = 'adjustment';
+ const TYPE_ADVANCE = 'advance';
+ const TYPE_ADVANCE_FUNDING = 'advance_funding';
+ const TYPE_ANTICIPATION_REPAYMENT = 'anticipation_repayment';
+ const TYPE_APPLICATION_FEE = 'application_fee';
+ const TYPE_APPLICATION_FEE_REFUND = 'application_fee_refund';
+ const TYPE_CHARGE = 'charge';
+ const TYPE_CONNECT_COLLECTION_TRANSFER = 'connect_collection_transfer';
+ const TYPE_CONTRIBUTION = 'contribution';
+ const TYPE_ISSUING_AUTHORIZATION_HOLD = 'issuing_authorization_hold';
+ const TYPE_ISSUING_AUTHORIZATION_RELEASE = 'issuing_authorization_release';
+ const TYPE_ISSUING_DISPUTE = 'issuing_dispute';
+ const TYPE_ISSUING_TRANSACTION = 'issuing_transaction';
+ const TYPE_PAYMENT = 'payment';
+ const TYPE_PAYMENT_FAILURE_REFUND = 'payment_failure_refund';
+ const TYPE_PAYMENT_REFUND = 'payment_refund';
+ const TYPE_PAYOUT = 'payout';
+ const TYPE_PAYOUT_CANCEL = 'payout_cancel';
+ const TYPE_PAYOUT_FAILURE = 'payout_failure';
+ const TYPE_REFUND = 'refund';
+ const TYPE_REFUND_FAILURE = 'refund_failure';
+ const TYPE_RESERVE_TRANSACTION = 'reserve_transaction';
+ const TYPE_RESERVED_FUNDS = 'reserved_funds';
+ const TYPE_STRIPE_FEE = 'stripe_fee';
+ const TYPE_STRIPE_FX_FEE = 'stripe_fx_fee';
+ const TYPE_TAX_FEE = 'tax_fee';
+ const TYPE_TOPUP = 'topup';
+ const TYPE_TOPUP_REVERSAL = 'topup_reversal';
+ const TYPE_TRANSFER = 'transfer';
+ const TYPE_TRANSFER_CANCEL = 'transfer_cancel';
+ const TYPE_TRANSFER_FAILURE = 'transfer_failure';
+ const TYPE_TRANSFER_REFUND = 'transfer_refund';
+}
+/**
+ * These bank accounts are payment methods on Customer objects.
+ *
+ * On the other hand External Accounts are
+ * transfer destinations on Account objects for Custom accounts. They
+ * can be bank accounts or debit cards as well, and are documented in the links
+ * above.
+ *
+ * Related guide: Bank Debits and
+ * Transfers.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string|\Stripe\Account $account The ID of the account that the bank account is associated with.
+ * @property null|string $account_holder_name The name of the person or business that owns the bank account.
+ * @property null|string $account_holder_type The type of entity that holds the account. This can be either individual or company.
+ * @property null|string $account_type The bank account type. This can only be checking or savings in most countries. In Japan, this can only be futsu or toza.
+ * @property null|string[] $available_payout_methods A set of available payout methods for this bank account. Only values from this set should be passed as the method when creating a payout.
+ * @property null|string $bank_name Name of the bank associated with the routing number (e.g., WELLS FARGO).
+ * @property string $country Two-letter ISO code representing the country the bank account is located in.
+ * @property string $currency Three-letter ISO code for the currency paid out to the bank account.
+ * @property null|string|\Stripe\Customer $customer The ID of the customer that the bank account is associated with.
+ * @property null|bool $default_for_currency Whether this bank account is the default external account for its currency.
+ * @property null|string $fingerprint Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
+ * @property string $last4 The last four digits of the bank account number.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $routing_number The routing transit number for the bank account.
+ * @property string $status
For bank accounts, possible values are new, validated, verified, verification_failed, or errored. A bank account that hasn't had any activity or validation performed is new. If Stripe can determine that the bank account exists, its status will be validated. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be verified. If the verification failed for any reason, such as microdeposit failure, the status will be verification_failed. If a transfer sent to this bank account fails, we'll set the status to errored and will not continue to send transfers until the bank details are updated.
For external accounts, possible values are new and errored. Validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. If a transfer fails, the status is set to errored and transfers are stopped until account details are updated.
+ */
+class BankAccount extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'bank_account';
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Update;
+ /**
+ * Possible string representations of the bank verification status.
+ *
+ * @see https://stripe.com/docs/api/external_account_bank_accounts/object#account_bank_account_object-status
+ */
+ const STATUS_NEW = 'new';
+ const STATUS_VALIDATED = 'validated';
+ const STATUS_VERIFIED = 'verified';
+ const STATUS_VERIFICATION_FAILED = 'verification_failed';
+ const STATUS_ERRORED = 'errored';
+ /**
+ * @return string The instance URL for this resource. It needs to be special
+ * cased because it doesn't fit into the standard resource pattern.
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param array|string $_id
+ * @param null|array|string $_opts
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function retrieve($_id, $_opts = null)
+ {
+ }
+ /**
+ * @param string $_id
+ * @param null|array $_params
+ * @param null|array|string $_options
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function update($_id, $_params = null, $_options = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return BankAccount the verified bank account
+ */
+ public function verify($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Interface for a Stripe client.
+ */
+interface BaseStripeClientInterface
+{
+ /**
+ * Gets the API key used by the client to send requests.
+ *
+ * @return null|string the API key used by the client to send requests
+ */
+ public function getApiKey();
+ /**
+ * Gets the client ID used by the client in OAuth requests.
+ *
+ * @return null|string the client ID used by the client in OAuth requests
+ */
+ public function getClientId();
+ /**
+ * Gets the base URL for Stripe's API.
+ *
+ * @return string the base URL for Stripe's API
+ */
+ public function getApiBase();
+ /**
+ * Gets the base URL for Stripe's OAuth API.
+ *
+ * @return string the base URL for Stripe's OAuth API
+ */
+ public function getConnectBase();
+ /**
+ * Gets the base URL for Stripe's Files API.
+ *
+ * @return string the base URL for Stripe's Files API
+ */
+ public function getFilesBase();
+}
+/**
+ * Interface for a Stripe client.
+ */
+interface StripeClientInterface extends \Stripe\BaseStripeClientInterface
+{
+ /**
+ * Sends a request to Stripe's API.
+ *
+ * @param string $method the HTTP method
+ * @param string $path the path of the request
+ * @param array $params the parameters of the request
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
+ *
+ * @return \Stripe\StripeObject the object returned by Stripe's API
+ */
+ public function request($method, $path, $params, $opts);
+}
+/**
+ * Interface for a Stripe client.
+ */
+interface StripeStreamingClientInterface extends \Stripe\BaseStripeClientInterface
+{
+ public function requestStream($method, $path, $readBodyChunkCallable, $params, $opts);
+}
+class BaseStripeClient implements \Stripe\StripeClientInterface, \Stripe\StripeStreamingClientInterface
+{
+ /** @var string default base URL for Stripe's API */
+ const DEFAULT_API_BASE = 'https://api.stripe.com';
+ /** @var string default base URL for Stripe's OAuth API */
+ const DEFAULT_CONNECT_BASE = 'https://connect.stripe.com';
+ /** @var string default base URL for Stripe's Files API */
+ const DEFAULT_FILES_BASE = 'https://files.stripe.com';
+ /**
+ * Initializes a new instance of the {@link BaseStripeClient} class.
+ *
+ * The constructor takes a single argument. The argument can be a string, in which case it
+ * should be the API key. It can also be an array with various configuration settings.
+ *
+ * Configuration settings include the following options:
+ *
+ * - api_key (null|string): the Stripe API key, to be used in regular API requests.
+ * - client_id (null|string): the Stripe client ID, to be used in OAuth requests.
+ * - stripe_account (null|string): a Stripe account ID. If set, all requests sent by the client
+ * will automatically use the {@code Stripe-Account} header with that account ID.
+ * - stripe_version (null|string): a Stripe API verion. If set, all requests sent by the client
+ * will include the {@code Stripe-Version} header with that API version.
+ *
+ * The following configuration settings are also available, though setting these should rarely be necessary
+ * (only useful if you want to send requests to a mock server like stripe-mock):
+ *
+ * - api_base (string): the base URL for regular API requests. Defaults to
+ * {@link DEFAULT_API_BASE}.
+ * - connect_base (string): the base URL for OAuth requests. Defaults to
+ * {@link DEFAULT_CONNECT_BASE}.
+ * - files_base (string): the base URL for file creation requests. Defaults to
+ * {@link DEFAULT_FILES_BASE}.
+ *
+ * @param array|string $config the API key as a string, or an array containing
+ * the client configuration settings
+ */
+ public function __construct($config = [])
+ {
+ }
+ /**
+ * Gets the API key used by the client to send requests.
+ *
+ * @return null|string the API key used by the client to send requests
+ */
+ public function getApiKey()
+ {
+ }
+ /**
+ * Gets the client ID used by the client in OAuth requests.
+ *
+ * @return null|string the client ID used by the client in OAuth requests
+ */
+ public function getClientId()
+ {
+ }
+ /**
+ * Gets the base URL for Stripe's API.
+ *
+ * @return string the base URL for Stripe's API
+ */
+ public function getApiBase()
+ {
+ }
+ /**
+ * Gets the base URL for Stripe's OAuth API.
+ *
+ * @return string the base URL for Stripe's OAuth API
+ */
+ public function getConnectBase()
+ {
+ }
+ /**
+ * Gets the base URL for Stripe's Files API.
+ *
+ * @return string the base URL for Stripe's Files API
+ */
+ public function getFilesBase()
+ {
+ }
+ /**
+ * Sends a request to Stripe's API.
+ *
+ * @param string $method the HTTP method
+ * @param string $path the path of the request
+ * @param array $params the parameters of the request
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
+ *
+ * @return \Stripe\StripeObject the object returned by Stripe's API
+ */
+ public function request($method, $path, $params, $opts)
+ {
+ }
+ /**
+ * Sends a request to Stripe's API, passing chunks of the streamed response
+ * into a user-provided $readBodyChunkCallable callback.
+ *
+ * @param string $method the HTTP method
+ * @param string $path the path of the request
+ * @param callable $readBodyChunkCallable a function that will be called
+ * @param array $params the parameters of the request
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
+ * with chunks of bytes from the body if the request is successful
+ */
+ public function requestStream($method, $path, $readBodyChunkCallable, $params, $opts)
+ {
+ }
+ /**
+ * Sends a request to Stripe's API.
+ *
+ * @param string $method the HTTP method
+ * @param string $path the path of the request
+ * @param array $params the parameters of the request
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
+ *
+ * @return \Stripe\Collection of ApiResources
+ */
+ public function requestCollection($method, $path, $params, $opts)
+ {
+ }
+ /**
+ * Sends a request to Stripe's API.
+ *
+ * @param string $method the HTTP method
+ * @param string $path the path of the request
+ * @param array $params the parameters of the request
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
+ *
+ * @return \Stripe\SearchResult of ApiResources
+ */
+ public function requestSearchResult($method, $path, $params, $opts)
+ {
+ }
+}
+namespace Stripe\BillingPortal;
+
+/**
+ * A portal configuration describes the functionality and behavior of a portal
+ * session.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $active Whether the configuration is active and can be used to create portal sessions.
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect Application that created the configuration.
+ * @property \Stripe\StripeObject $business_profile
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $default_return_url The default URL to redirect customers to when they click on the portal's link to return to your website. This can be overriden when creating the session.
+ * @property \Stripe\StripeObject $features
+ * @property bool $is_default Whether the configuration is the default. If true, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $login_page
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
+ */
+class Configuration extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'billing_portal.configuration';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * The Billing customer portal is a Stripe-hosted UI for subscription and billing
+ * management.
+ *
+ * A portal configuration describes the functionality and features that you want to
+ * provide to your customers through the portal.
+ *
+ * A portal session describes the instantiation of the customer portal for a
+ * particular customer. By visiting the session's URL, the customer can manage
+ * their subscriptions and billing details. For security reasons, sessions are
+ * short-lived and will expire if the customer does not visit the URL. Create
+ * sessions on-demand when customers intend to manage their subscriptions and
+ * billing details.
+ *
+ * Learn more in the integration
+ * guide.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property string|\Stripe\BillingPortal\Configuration $configuration The configuration used by this session, describing the features available.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $customer The ID of the customer for this session.
+ * @property null|\Stripe\StripeObject $flow Information about a specific flow for the customer to go through. See the docs to learn more about using customer portal deep links and flows.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string $locale The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s preferred_locales or browser’s locale is used.
+ * @property null|string $on_behalf_of The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this on_behalf_of account appear in the portal. For more information, see the docs. Use the Accounts API to modify the on_behalf_of account's branding settings, which the portal displays.
+ * @property null|string $return_url The URL to redirect customers to when they click on the portal's link to return to your website.
+ * @property string $url The short-lived URL of the session that gives customers access to the customer portal.
+ */
+class Session extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'billing_portal.session';
+ use \Stripe\ApiOperations\Create;
+}
+namespace Stripe;
+
+/**
+ * This is an object representing a capability for a Stripe account.
+ *
+ * Related guide: Account
+ * capabilities.
+ *
+ * @property string $id The identifier for the capability.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property string|\Stripe\Account $account The account for which the capability enables functionality.
+ * @property null|\Stripe\StripeObject $future_requirements
+ * @property bool $requested Whether the capability has been requested.
+ * @property null|int $requested_at Time at which the capability was requested. Measured in seconds since the Unix epoch.
+ * @property null|\Stripe\StripeObject $requirements
+ * @property string $status The status of the capability. Can be active, inactive, pending, or unrequested.
+ */
+class Capability extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'capability';
+ use \Stripe\ApiOperations\Update;
+ const STATUS_ACTIVE = 'active';
+ const STATUS_INACTIVE = 'inactive';
+ const STATUS_PENDING = 'pending';
+ const STATUS_UNREQUESTED = 'unrequested';
+ /**
+ * @return string the API URL for this Stripe account reversal
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param array|string $_id
+ * @param null|array|string $_opts
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function retrieve($_id, $_opts = null)
+ {
+ }
+ /**
+ * @param string $_id
+ * @param null|array $_params
+ * @param null|array|string $_options
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function update($_id, $_params = null, $_options = null)
+ {
+ }
+}
+/**
+ * You can store multiple cards on a customer in order to charge the customer
+ * later. You can also store multiple debit cards on a recipient in order to
+ * transfer to those cards later.
+ *
+ * Related guide: Card Payments
+ * with Sources.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string|\Stripe\Account $account The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead.
+ * @property null|string $address_city City/District/Suburb/Town/Village.
+ * @property null|string $address_country Billing address country, if provided when creating card.
+ * @property null|string $address_line1 Address line 1 (Street address/PO Box/Company name).
+ * @property null|string $address_line1_check If address_line1 was provided, results of the check: pass, fail, unavailable, or unchecked.
+ * @property null|string $address_line2 Address line 2 (Apartment/Suite/Unit/Building).
+ * @property null|string $address_state State/County/Province/Region.
+ * @property null|string $address_zip ZIP or postal code.
+ * @property null|string $address_zip_check If address_zip was provided, results of the check: pass, fail, unavailable, or unchecked.
+ * @property null|string[] $available_payout_methods A set of available payout methods for this card. Only values from this set should be passed as the method when creating a payout.
+ * @property string $brand Card brand. Can be American Express, Diners Club, Discover, JCB, MasterCard, UnionPay, Visa, or Unknown.
+ * @property null|string $country Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
+ * @property null|string $currency Three-letter ISO code for currency. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency.
+ * @property null|string|\Stripe\Customer $customer The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
+ * @property null|string $cvc_check If a CVC was provided, results of the check: pass, fail, unavailable, or unchecked. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see Check if a card is valid without a charge.
+ * @property null|bool $default_for_currency Whether this card is the default external account for its currency.
+ * @property null|string $dynamic_last4 (For tokenized numbers only.) The last four digits of the device account number.
+ * @property int $exp_month Two-digit number representing the card's expiration month.
+ * @property int $exp_year Four-digit number representing the card's expiration year.
+ * @property null|string $fingerprint
Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.
+ * @property string $funding Card funding type. Can be credit, debit, prepaid, or unknown.
+ * @property string $last4 The last four digits of the card.
+ * @property null|array|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $name Cardholder name.
+ * @property null|string $status For external accounts, possible values are new and errored. If a transfer fails, the status is set to errored and transfers are stopped until account details are updated.
+ * @property null|string $tokenization_method If the card number is tokenized, this is the method that was used. Can be android_pay (includes Google Pay), apple_pay, masterpass, visa_checkout, or null.
+ */
+class Card extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'card';
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Update;
+ /**
+ * Possible string representations of the CVC check status.
+ *
+ * @see https://stripe.com/docs/api/cards/object#card_object-cvc_check
+ */
+ const CVC_CHECK_FAIL = 'fail';
+ const CVC_CHECK_PASS = 'pass';
+ const CVC_CHECK_UNAVAILABLE = 'unavailable';
+ const CVC_CHECK_UNCHECKED = 'unchecked';
+ /**
+ * Possible string representations of the funding of the card.
+ *
+ * @see https://stripe.com/docs/api/cards/object#card_object-funding
+ */
+ const FUNDING_CREDIT = 'credit';
+ const FUNDING_DEBIT = 'debit';
+ const FUNDING_PREPAID = 'prepaid';
+ const FUNDING_UNKNOWN = 'unknown';
+ /**
+ * Possible string representations of the tokenization method when using Apple Pay or Google Pay.
+ *
+ * @see https://stripe.com/docs/api/cards/object#card_object-tokenization_method
+ */
+ const TOKENIZATION_METHOD_APPLE_PAY = 'apple_pay';
+ const TOKENIZATION_METHOD_GOOGLE_PAY = 'google_pay';
+ /**
+ * @return string The instance URL for this resource. It needs to be special
+ * cased because cards are nested resources that may belong to different
+ * top-level resources.
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param array|string $_id
+ * @param null|array|string $_opts
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function retrieve($_id, $_opts = null)
+ {
+ }
+ /**
+ * @param string $_id
+ * @param null|array $_params
+ * @param null|array|string $_options
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function update($_id, $_params = null, $_options = null)
+ {
+ }
+}
+/**
+ * A customer's Cash balance represents real funds. Customers can add
+ * funds to their cash balance by sending a bank transfer. These funds can be used
+ * for payment and can eventually be paid out to your bank account.
+ *
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $available A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the smallest currency unit.
+ * @property string $customer The ID of the customer whose cash balance this object represents.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $settings
+ */
+class CashBalance extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'cash_balance';
+ /**
+ * @return string the API URL for this balance transaction
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param array|string $_id
+ * @param null|array|string $_opts
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function retrieve($_id, $_opts = null)
+ {
+ }
+ /**
+ * @param string $_id
+ * @param null|array $_params
+ * @param null|array|string $_options
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function update($_id, $_params = null, $_options = null)
+ {
+ }
+}
+/**
+ * To charge a credit or a debit card, you create a Charge object. You
+ * can retrieve and refund individual charges as well as list all charges. Charges
+ * are identified by a unique, random ID.
+ *
+ * Related guide: Accept a
+ * payment with the Charges API.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $alternate_statement_descriptors
+ * @property int $amount Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
+ * @property int $amount_captured Amount in %s captured (can be less than the amount attribute on the charge if a partial capture was made).
+ * @property int $amount_refunded Amount in %s refunded (can be less than the amount attribute on the charge if a partial refund was issued).
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect application that created the charge.
+ * @property null|string|\Stripe\ApplicationFee $application_fee The application fee (if any) for the charge. See the Connect documentation for details.
+ * @property null|int $application_fee_amount The amount of the application fee (if any) requested for the charge. See the Connect documentation for details.
+ * @property null|string $authorization_code Authorization code on the charge.
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).
+ * @property \Stripe\StripeObject $billing_details
+ * @property null|string $calculated_statement_descriptor The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined.
+ * @property bool $captured If the charge was created without capturing, this Boolean represents whether it is still uncaptured or has since been captured.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string|\Stripe\Customer $customer ID of the customer this charge is for if one exists.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string|\Stripe\Account $destination ID of an existing, connected Stripe account to transfer funds to if transfer_data was specified in the charge request.
+ * @property null|string|\Stripe\Dispute $dispute Details about the dispute if the charge has been disputed.
+ * @property bool $disputed Whether the charge has been disputed.
+ * @property null|string|\Stripe\BalanceTransaction $failure_balance_transaction ID of the balance transaction that describes the reversal of the balance on your account due to payment failure.
+ * @property null|string $failure_code Error code explaining reason for charge failure if available (see the errors section for a list of codes).
+ * @property null|string $failure_message Message to user further explaining reason for charge failure if available.
+ * @property null|\Stripe\StripeObject $fraud_details Information on fraud assessments for the charge.
+ * @property null|string|\Stripe\Invoice $invoice ID of the invoice this charge is for if one exists.
+ * @property null|\Stripe\StripeObject $level3
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string|\Stripe\Account $on_behalf_of The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the Connect documentation for details.
+ * @property null|\Stripe\StripeObject $outcome Details about whether the payment was accepted, and why. See understanding declines for details.
+ * @property bool $paid true if the charge succeeded, or was successfully authorized for later capture.
+ * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent associated with this charge, if one exists.
+ * @property null|string $payment_method ID of the payment method used in this charge.
+ * @property null|\Stripe\StripeObject $payment_method_details Details about the payment method at the time of the transaction.
+ * @property null|\Stripe\StripeObject $radar_options Options to configure Radar. See Radar Session for more information.
+ * @property null|string $receipt_email This is the email address that the receipt for this charge was sent to.
+ * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this charge. This attribute will be null until a receipt has been sent.
+ * @property null|string $receipt_url This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.
+ * @property bool $refunded Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
+ * @property null|\Stripe\Collection<\Stripe\Refund> $refunds A list of refunds that have been applied to the charge.
+ * @property null|string|\Stripe\Review $review ID of the review associated with this charge if one exists.
+ * @property null|\Stripe\StripeObject $shipping Shipping information for the charge.
+ * @property null|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $source This is a legacy field that will be removed in the future. It contains the Source, Card, or BankAccount object used for the charge. For details about the payment method used for this charge, refer to payment_method or payment_method_details instead.
+ * @property null|string|\Stripe\Transfer $source_transfer The transfer ID which created this charge. Only present if the charge came from another Stripe account. See the Connect documentation for details.
+ * @property null|string $statement_descriptor For card charges, use statement_descriptor_suffix instead. Otherwise, you can use this value as the complete description of a charge on your customers’ statements. Must contain at least one letter, maximum 22 characters.
+ * @property null|string $statement_descriptor_suffix Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
+ * @property string $status The status of the payment is either succeeded, pending, or failed.
+ * @property null|string|\Stripe\Transfer $transfer ID of the transfer to the destination account (only applicable if the charge was created using the destination parameter).
+ * @property null|\Stripe\StripeObject $transfer_data An optional dictionary including the account to automatically transfer to as part of a destination charge. See the Connect documentation for details.
+ * @property null|string $transfer_group A string that identifies this transaction as part of a group. See the Connect documentation for details.
+ */
+class Charge extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'charge';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Search;
+ use \Stripe\ApiOperations\Update;
+ const STATUS_FAILED = 'failed';
+ const STATUS_PENDING = 'pending';
+ const STATUS_SUCCEEDED = 'succeeded';
+ /**
+ * Possible string representations of decline codes.
+ * These strings are applicable to the decline_code property of the \Stripe\Exception\CardException exception.
+ *
+ * @see https://stripe.com/docs/declines/codes
+ */
+ const DECLINED_AUTHENTICATION_REQUIRED = 'authentication_required';
+ const DECLINED_APPROVE_WITH_ID = 'approve_with_id';
+ const DECLINED_CALL_ISSUER = 'call_issuer';
+ const DECLINED_CARD_NOT_SUPPORTED = 'card_not_supported';
+ const DECLINED_CARD_VELOCITY_EXCEEDED = 'card_velocity_exceeded';
+ const DECLINED_CURRENCY_NOT_SUPPORTED = 'currency_not_supported';
+ const DECLINED_DO_NOT_HONOR = 'do_not_honor';
+ const DECLINED_DO_NOT_TRY_AGAIN = 'do_not_try_again';
+ const DECLINED_DUPLICATED_TRANSACTION = 'duplicate_transaction';
+ const DECLINED_EXPIRED_CARD = 'expired_card';
+ const DECLINED_FRAUDULENT = 'fraudulent';
+ const DECLINED_GENERIC_DECLINE = 'generic_decline';
+ const DECLINED_INCORRECT_NUMBER = 'incorrect_number';
+ const DECLINED_INCORRECT_CVC = 'incorrect_cvc';
+ const DECLINED_INCORRECT_PIN = 'incorrect_pin';
+ const DECLINED_INCORRECT_ZIP = 'incorrect_zip';
+ const DECLINED_INSUFFICIENT_FUNDS = 'insufficient_funds';
+ const DECLINED_INVALID_ACCOUNT = 'invalid_account';
+ const DECLINED_INVALID_AMOUNT = 'invalid_amount';
+ const DECLINED_INVALID_CVC = 'invalid_cvc';
+ const DECLINED_INVALID_EXPIRY_YEAR = 'invalid_expiry_year';
+ const DECLINED_INVALID_NUMBER = 'invalid_number';
+ const DECLINED_INVALID_PIN = 'invalid_pin';
+ const DECLINED_ISSUER_NOT_AVAILABLE = 'issuer_not_available';
+ const DECLINED_LOST_CARD = 'lost_card';
+ const DECLINED_MERCHANT_BLACKLIST = 'merchant_blacklist';
+ const DECLINED_NEW_ACCOUNT_INFORMATION_AVAILABLE = 'new_account_information_available';
+ const DECLINED_NO_ACTION_TAKEN = 'no_action_taken';
+ const DECLINED_NOT_PERMITTED = 'not_permitted';
+ const DECLINED_OFFLINE_PIN_REQUIRED = 'offline_pin_required';
+ const DECLINED_ONLINE_OR_OFFLINE_PIN_REQUIRED = 'online_or_offline_pin_required';
+ const DECLINED_PICKUP_CARD = 'pickup_card';
+ const DECLINED_PIN_TRY_EXCEEDED = 'pin_try_exceeded';
+ const DECLINED_PROCESSING_ERROR = 'processing_error';
+ const DECLINED_REENTER_TRANSACTION = 'reenter_transaction';
+ const DECLINED_RESTRICTED_CARD = 'restricted_card';
+ const DECLINED_REVOCATION_OF_ALL_AUTHORIZATIONS = 'revocation_of_all_authorizations';
+ const DECLINED_REVOCATION_OF_AUTHORIZATION = 'revocation_of_authorization';
+ const DECLINED_SECURITY_VIOLATION = 'security_violation';
+ const DECLINED_SERVICE_NOT_ALLOWED = 'service_not_allowed';
+ const DECLINED_STOLEN_CARD = 'stolen_card';
+ const DECLINED_STOP_PAYMENT_ORDER = 'stop_payment_order';
+ const DECLINED_TESTMODE_DECLINE = 'testmode_decline';
+ const DECLINED_TRANSACTION_NOT_ALLOWED = 'transaction_not_allowed';
+ const DECLINED_TRY_AGAIN_LATER = 'try_again_later';
+ const DECLINED_WITHDRAWAL_COUNT_LIMIT_EXCEEDED = 'withdrawal_count_limit_exceeded';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge the captured charge
+ */
+ public function capture($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult the charge search results
+ */
+ public static function search($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Checkout;
+
+/**
+ * A Checkout Session represents your customer's session as they pay for one-time
+ * purchases or subscriptions through Checkout or Payment Links. We
+ * recommend creating a new Session each time your customer attempts to pay.
+ *
+ * Once payment is successful, the Checkout Session will contain a reference to the
+ * Customer, and either the
+ * successful PaymentIntent or an
+ * active Subscription.
+ *
+ * You can create a Checkout Session on your server and redirect to its URL to
+ * begin Checkout.
+ *
+ * Related guide: Checkout
+ * Quickstart.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $after_expiration When set, provides configuration for actions to take if this Checkout Session expires.
+ * @property null|bool $allow_promotion_codes Enables user redeemable promotion codes.
+ * @property null|int $amount_subtotal Total of all items before discounts or taxes are applied.
+ * @property null|int $amount_total Total of all items after discounts and taxes are applied.
+ * @property \Stripe\StripeObject $automatic_tax
+ * @property null|string $billing_address_collection Describes whether Checkout should collect the customer's billing address.
+ * @property null|string $cancel_url If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
+ * @property null|string $client_reference_id A unique string to reference the Checkout Session. This can be a customer ID, a cart ID, or similar, and can be used to reconcile the Session with your internal systems.
+ * @property null|\Stripe\StripeObject $consent Results of consent_collection for this session.
+ * @property null|\Stripe\StripeObject $consent_collection When set, provides configuration for the Checkout Session to gather active consent from customers.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property \Stripe\StripeObject[] $custom_fields Collect additional information from your customer using custom fields. Up to 2 fields are supported.
+ * @property \Stripe\StripeObject $custom_text
+ * @property null|string|\Stripe\Customer $customer The ID of the customer for this Session. For Checkout Sessions in payment or subscription mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.
+ * @property null|string $customer_creation Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
+ * @property null|\Stripe\StripeObject $customer_details The customer details including the customer's tax exempt status and the customer's tax IDs. Only the customer's email is present on Sessions in setup mode.
+ * @property null|string $customer_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once the payment flow is complete, use the customer attribute.
+ * @property int $expires_at The timestamp at which the Checkout Session will expire.
+ * @property null|string|\Stripe\Invoice $invoice ID of the invoice created by the Checkout Session, if it exists.
+ * @property null|\Stripe\StripeObject $invoice_creation Details on the state of invoice creation for the Checkout Session.
+ * @property null|\Stripe\Collection<\Stripe\LineItem> $line_items The line items purchased by the customer.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string $locale The IETF language tag of the locale Checkout is displayed in. If blank or auto, the browser's locale is used.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $mode The mode of the Checkout Session.
+ * @property null|string|\Stripe\PaymentIntent $payment_intent The ID of the PaymentIntent for Checkout Sessions in payment mode.
+ * @property null|string|\Stripe\PaymentLink $payment_link The ID of the Payment Link that created this Session.
+ * @property null|string $payment_method_collection Configure whether a Checkout Session should collect a payment method.
+ * @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
+ * @property string[] $payment_method_types A list of the types of payment methods (e.g. card) this Checkout Session is allowed to accept.
+ * @property string $payment_status The payment status of the Checkout Session, one of paid, unpaid, or no_payment_required. You can use this value to decide when to fulfill your customer's order.
+ * @property null|\Stripe\StripeObject $phone_number_collection
+ * @property null|string $recovered_from The ID of the original expired Checkout Session that triggered the recovery flow.
+ * @property null|string|\Stripe\SetupIntent $setup_intent The ID of the SetupIntent for Checkout Sessions in setup mode.
+ * @property null|\Stripe\StripeObject $shipping_address_collection When set, provides configuration for Checkout to collect a shipping address from a customer.
+ * @property null|\Stripe\StripeObject $shipping_cost The details of the customer cost of shipping, including the customer chosen ShippingRate.
+ * @property null|\Stripe\StripeObject $shipping_details Shipping information for this Checkout Session.
+ * @property \Stripe\StripeObject[] $shipping_options The shipping rate options applied to this Session.
+ * @property null|string $status The status of the Checkout Session, one of open, complete, or expired.
+ * @property null|string $submit_type Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. submit_type can only be specified on Checkout Sessions in payment mode, but not Checkout Sessions in subscription or setup mode.
+ * @property null|string|\Stripe\Subscription $subscription The ID of the subscription for Checkout Sessions in subscription mode.
+ * @property string $success_url The URL the customer will be directed to after the payment or subscription creation is successful.
+ * @property null|\Stripe\StripeObject $tax_id_collection
+ * @property null|\Stripe\StripeObject $total_details Tax and discount details for the computed total amount.
+ * @property null|string $url The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you’re using Custom Domains, the URL will use your subdomain. Otherwise, it’ll use checkout.stripe.com. This value is only present when the session is active.
+ */
+class Session extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'checkout.session';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ const BILLING_ADDRESS_COLLECTION_AUTO = 'auto';
+ const BILLING_ADDRESS_COLLECTION_REQUIRED = 'required';
+ const CUSTOMER_CREATION_ALWAYS = 'always';
+ const CUSTOMER_CREATION_IF_REQUIRED = 'if_required';
+ const MODE_PAYMENT = 'payment';
+ const MODE_SETUP = 'setup';
+ const MODE_SUBSCRIPTION = 'subscription';
+ const PAYMENT_METHOD_COLLECTION_ALWAYS = 'always';
+ const PAYMENT_METHOD_COLLECTION_IF_REQUIRED = 'if_required';
+ const PAYMENT_STATUS_NO_PAYMENT_REQUIRED = 'no_payment_required';
+ const PAYMENT_STATUS_PAID = 'paid';
+ const PAYMENT_STATUS_UNPAID = 'unpaid';
+ const STATUS_COMPLETE = 'complete';
+ const STATUS_EXPIRED = 'expired';
+ const STATUS_OPEN = 'open';
+ const SUBMIT_TYPE_AUTO = 'auto';
+ const SUBMIT_TYPE_BOOK = 'book';
+ const SUBMIT_TYPE_DONATE = 'donate';
+ const SUBMIT_TYPE_PAY = 'pay';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Checkout\Session the expired session
+ */
+ public function expire($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem> list of LineItems
+ */
+ public static function allLineItems($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * Class Collection.
+ *
+ * @template TStripeObject of StripeObject
+ * @template-implements \IteratorAggregate
+ *
+ * @property string $object
+ * @property string $url
+ * @property bool $has_more
+ * @property TStripeObject[] $data
+ */
+class Collection extends \Stripe\StripeObject implements \Countable, \IteratorAggregate
+{
+ const OBJECT_NAME = 'list';
+ use \Stripe\ApiOperations\Request;
+ /** @var array */
+ protected $filters = [];
+ /**
+ * @return string the base URL for the given class
+ */
+ public static function baseUrl()
+ {
+ }
+ /**
+ * Returns the filters.
+ *
+ * @return array the filters
+ */
+ public function getFilters()
+ {
+ }
+ /**
+ * Sets the filters, removing paging options.
+ *
+ * @param array $filters the filters
+ */
+ public function setFilters($filters)
+ {
+ }
+ /**
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($k)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws Exception\ApiErrorException
+ *
+ * @return Collection
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws Exception\ApiErrorException
+ *
+ * @return TStripeObject
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws Exception\ApiErrorException
+ *
+ * @return TStripeObject
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @return int the number of objects in the current page
+ */
+ #[\ReturnTypeWillChange]
+ public function count()
+ {
+ }
+ /**
+ * @return \ArrayIterator an iterator that can be used to iterate
+ * across objects in the current page
+ */
+ #[\ReturnTypeWillChange]
+ public function getIterator()
+ {
+ }
+ /**
+ * @return \ArrayIterator an iterator that can be used to iterate
+ * backwards across objects in the current page
+ */
+ public function getReverseIterator()
+ {
+ }
+ /**
+ * @return \Generator|TStripeObject[] A generator that can be used to
+ * iterate across all objects across all pages. As page boundaries are
+ * encountered, the next page will be fetched automatically for
+ * continued iteration.
+ */
+ public function autoPagingIterator()
+ {
+ }
+ /**
+ * Returns an empty collection. This is returned from {@see nextPage()}
+ * when we know that there isn't a next page in order to replicate the
+ * behavior of the API when it attempts to return a page beyond the last.
+ *
+ * @param null|array|string $opts
+ *
+ * @return Collection
+ */
+ public static function emptyCollection($opts = null)
+ {
+ }
+ /**
+ * Returns true if the page object contains no element.
+ *
+ * @return bool
+ */
+ public function isEmpty()
+ {
+ }
+ /**
+ * Fetches the next page in the resource list (if there is one).
+ *
+ * This method will try to respect the limit of the current page. If none
+ * was given, the default limit will be fetched again.
+ *
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @return Collection
+ */
+ public function nextPage($params = null, $opts = null)
+ {
+ }
+ /**
+ * Fetches the previous page in the resource list (if there is one).
+ *
+ * This method will try to respect the limit of the current page. If none
+ * was given, the default limit will be fetched again.
+ *
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @return Collection
+ */
+ public function previousPage($params = null, $opts = null)
+ {
+ }
+ /**
+ * Gets the first item from the current page. Returns `null` if the current page is empty.
+ *
+ * @return null|TStripeObject
+ */
+ public function first()
+ {
+ }
+ /**
+ * Gets the last item from the current page. Returns `null` if the current page is empty.
+ *
+ * @return null|TStripeObject
+ */
+ public function last()
+ {
+ }
+}
+/**
+ * Stripe needs to collect certain pieces of information about each account
+ * created. These requirements can differ depending on the account's country. The
+ * Country Specs API makes these rules available to your integration.
+ *
+ * You can also view the information from this API call as an online guide.
+ *
+ * @property string $id Unique identifier for the object. Represented as the ISO country code for this country.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property string $default_currency The default currency for this country. This applies to both payment methods and bank accounts.
+ * @property \Stripe\StripeObject $supported_bank_account_currencies Currencies that can be accepted in the specific country (for transfers).
+ * @property string[] $supported_payment_currencies Currencies that can be accepted in the specified country (for payments).
+ * @property string[] $supported_payment_methods Payment methods available in the specified country. You may need to enable some payment methods (e.g., ACH) on your account before they appear in this list. The stripe payment method refers to charging through your platform.
+ * @property string[] $supported_transfer_countries Countries that can accept transfers from the specified country.
+ * @property \Stripe\StripeObject $verification_fields
+ */
+class CountrySpec extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'country_spec';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+}
+/**
+ * A coupon contains information about a percent-off or amount-off discount you
+ * might want to apply to a customer. Coupons may be applied to subscriptions, invoices, checkout sessions, quotes, and more. Coupons do not
+ * work with conventional one-off charges or payment intents.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|int $amount_off Amount (in the currency specified) that will be taken off the subtotal of any invoices for this customer.
+ * @property null|\Stripe\StripeObject $applies_to
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $currency If amount_off has been set, the three-letter ISO code for the currency of the amount to take off.
+ * @property null|\Stripe\StripeObject $currency_options Coupons defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
+ * @property string $duration One of forever, once, and repeating. Describes how long a customer who applies this coupon will get the discount.
+ * @property null|int $duration_in_months If duration is repeating, the number of months the coupon applies. Null if coupon duration is forever or once.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|int $max_redemptions Maximum number of times this coupon can be redeemed, in total, across all customers, before it is no longer valid.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $name Name of the coupon displayed to customers on for instance invoices or receipts.
+ * @property null|float $percent_off Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon. For example, a coupon with percent_off of 50 will make a %s100 invoice %s50 instead.
+ * @property null|int $redeem_by Date after which the coupon can no longer be redeemed.
+ * @property int $times_redeemed Number of times this coupon has been applied to a customer.
+ * @property bool $valid Taking account of the above properties, whether this coupon can still be applied to a customer.
+ */
+class Coupon extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'coupon';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * Issue a credit note to adjust an invoice's amount after the invoice is
+ * finalized.
+ *
+ * Related guide: Credit Notes.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount The integer amount in %s representing the total amount of the credit note, including tax.
+ * @property int $amount_shipping This is the sum of all the shipping amounts.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string|\Stripe\Customer $customer ID of the customer.
+ * @property null|string|\Stripe\CustomerBalanceTransaction $customer_balance_transaction Customer balance transaction related to this credit note.
+ * @property int $discount_amount The integer amount in %s representing the total amount of discount that was credited.
+ * @property \Stripe\StripeObject[] $discount_amounts The aggregate amounts calculated per discount for all line items.
+ * @property string|\Stripe\Invoice $invoice ID of the invoice.
+ * @property \Stripe\Collection<\Stripe\CreditNoteLineItem> $lines Line items that make up the credit note
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string $memo Customer-facing text that appears on the credit note PDF.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $number A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice.
+ * @property null|int $out_of_band_amount Amount that was credited outside of Stripe.
+ * @property string $pdf The link to download the PDF of the credit note.
+ * @property null|string $reason Reason for issuing this credit note, one of duplicate, fraudulent, order_change, or product_unsatisfactory
+ * @property null|string|\Stripe\Refund $refund Refund related to this credit note.
+ * @property null|\Stripe\StripeObject $shipping_cost The details of the cost of shipping, including the ShippingRate applied to the invoice.
+ * @property string $status Status of this credit note, one of issued or void. Learn more about voiding credit notes.
+ * @property int $subtotal The integer amount in %s representing the amount of the credit note, excluding exclusive tax and invoice level discounts.
+ * @property null|int $subtotal_excluding_tax The integer amount in %s representing the amount of the credit note, excluding all tax and invoice level discounts.
+ * @property \Stripe\StripeObject[] $tax_amounts The aggregate amounts calculated per tax rate for all line items.
+ * @property int $total The integer amount in %s representing the total amount of the credit note, including tax and all discount.
+ * @property null|int $total_excluding_tax The integer amount in %s representing the total amount of the credit note, excluding tax, but including discounts.
+ * @property string $type Type of this credit note, one of pre_payment or post_payment. A pre_payment credit note means it was issued when the invoice was open. A post_payment credit note means it was issued when the invoice was paid.
+ * @property null|int $voided_at The time that the credit note was voided.
+ */
+class CreditNote extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'credit_note';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\NestedResource;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const REASON_DUPLICATE = 'duplicate';
+ const REASON_FRAUDULENT = 'fraudulent';
+ const REASON_ORDER_CHANGE = 'order_change';
+ const REASON_PRODUCT_UNSATISFACTORY = 'product_unsatisfactory';
+ const STATUS_ISSUED = 'issued';
+ const STATUS_VOID = 'void';
+ const TYPE_POST_PAYMENT = 'post_payment';
+ const TYPE_PRE_PAYMENT = 'pre_payment';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote the previewed credit note
+ */
+ public static function preview($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CreditNoteLineItem> list of CreditNoteLineItems
+ */
+ public static function previewLines($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote the voided credit note
+ */
+ public function voidCreditNote($params = null, $opts = null)
+ {
+ }
+ const PATH_LINES = '/lines';
+ /**
+ * @param string $id the ID of the credit note on which to retrieve the credit note line items
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CreditNoteLineItem> the list of credit note line items
+ */
+ public static function allLines($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
+ * @property null|int $amount_excluding_tax The integer amount in %s representing the amount being credited for this line item, excluding all tax and discounts.
+ * @property null|string $description Description of the item being credited.
+ * @property int $discount_amount The integer amount in %s representing the discount being credited for this line item.
+ * @property \Stripe\StripeObject[] $discount_amounts The amount of discount calculated per discount for this line item
+ * @property null|string $invoice_line_item ID of the invoice line item being credited
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|int $quantity The number of units of product being credited.
+ * @property \Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item
+ * @property \Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item.
+ * @property string $type The type of the credit note line item, one of invoice_line_item or custom_line_item. When the type is invoice_line_item there is an additional invoice_line_item property on the resource the value of which is the id of the credited line item on the invoice.
+ * @property null|int $unit_amount The cost of each unit of product being credited.
+ * @property null|string $unit_amount_decimal Same as unit_amount, but contains a decimal value with at most 12 decimal places.
+ * @property null|string $unit_amount_excluding_tax The amount in %s representing the unit amount being credited for this line item, excluding all tax and discounts.
+ */
+class CreditNoteLineItem extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'credit_note_line_item';
+}
+/**
+ * This object represents a customer of your business. It lets you create recurring
+ * charges and track payments that belong to the same customer.
+ *
+ * Related guide: Save a card during
+ * payment.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $address The customer's address.
+ * @property null|int $balance Current balance, if any, being stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized.
+ * @property null|\Stripe\CashBalance $cash_balance The current funds being held by Stripe on behalf of the customer. These funds can be applied towards payment intents with source "cash_balance". The settings[reconciliation_mode] field describes whether these funds are applied to such payment intents manually or automatically.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $currency Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.
+ * @property null|string|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $default_source
ID of the default payment source for the customer.
When the customer's latest invoice is billed by charging automatically, delinquent is true if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, delinquent is true if the invoice isn't paid by its due date.
If an invoice is marked uncollectible by dunning, delinquent doesn't get reset to false.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|\Stripe\Discount $discount Describes the current discount active on the customer, if there is one.
+ * @property null|string $email The customer's email address.
+ * @property null|\Stripe\StripeObject $invoice_credit_balance The current multi-currency balances, if any, being stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that will be added to their next invoice denominated in that currency. These balances do not refer to any unpaid invoices. They solely track amounts that have yet to be successfully applied to any invoice. A balance in a particular currency is only applied to any invoice as an invoice in that currency is finalized.
+ * @property null|string $invoice_prefix The prefix for the customer used to generate unique invoice numbers.
+ * @property null|\Stripe\StripeObject $invoice_settings
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $name The customer's full name or business name.
+ * @property null|int $next_invoice_sequence The suffix of the customer's next invoice number, e.g., 0001.
+ * @property null|string $phone The customer's phone number.
+ * @property null|string[] $preferred_locales The customer's preferred locales (languages), ordered by preference.
+ * @property null|\Stripe\StripeObject $shipping Mailing and shipping address for the customer. Appears on invoices emailed to this customer.
+ * @property null|\Stripe\Collection<\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source> $sources The customer's payment sources, if any.
+ * @property null|\Stripe\Collection<\Stripe\Subscription> $subscriptions The customer's current subscriptions, if any.
+ * @property null|\Stripe\StripeObject $tax
+ * @property null|string $tax_exempt Describes the customer's tax exemption status. One of none, exempt, or reverse. When set to reverse, invoice and receipt PDFs include the text "Reverse charge".
+ * @property null|\Stripe\Collection<\Stripe\TaxId> $tax_ids The customer's tax IDs.
+ * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this customer belongs to.
+ */
+class Customer extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'customer';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\NestedResource;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Search;
+ use \Stripe\ApiOperations\Update;
+ const TAX_EXEMPT_EXEMPT = 'exempt';
+ const TAX_EXEMPT_NONE = 'none';
+ const TAX_EXEMPT_REVERSE = 'reverse';
+ public static function getSavedNestedResources()
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @return \Stripe\Customer the updated customer
+ */
+ public function deleteDiscount($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentMethod> list of PaymentMethods
+ */
+ public static function allPaymentMethods($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $payment_method
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer the retrieved customer
+ */
+ public function retrievePaymentMethod($payment_method, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult the customer search results
+ */
+ public static function search($params = null, $opts = null)
+ {
+ }
+ const PATH_CASH_BALANCE = '/cash_balance';
+ /**
+ * @param string $id the ID of the customer to which the cash balance belongs
+ * @param null|array $params
+ * @param null|array|string $opts
+ * @param mixed $cashBalanceId
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CashBalance
+ */
+ public static function retrieveCashBalance($id, $cashBalanceId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the cash balance belongs
+ * @param null|array $params
+ * @param null|array|string $opts
+ * @param mixed $cashBalanceId
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CashBalance
+ */
+ public static function updateCashBalance($id, $cashBalanceId, $params = null, $opts = null)
+ {
+ }
+ const PATH_BALANCE_TRANSACTIONS = '/balance_transactions';
+ /**
+ * @param string $id the ID of the customer on which to retrieve the customer balance transactions
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CustomerBalanceTransaction> the list of customer balance transactions
+ */
+ public static function allBalanceTransactions($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer on which to create the customer balance transaction
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public static function createBalanceTransaction($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the customer balance transaction belongs
+ * @param string $balanceTransactionId the ID of the customer balance transaction to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public static function retrieveBalanceTransaction($id, $balanceTransactionId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the customer balance transaction belongs
+ * @param string $balanceTransactionId the ID of the customer balance transaction to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public static function updateBalanceTransaction($id, $balanceTransactionId, $params = null, $opts = null)
+ {
+ }
+ const PATH_CASH_BALANCE_TRANSACTIONS = '/cash_balance_transactions';
+ /**
+ * @param string $id the ID of the customer on which to retrieve the customer cash balance transactions
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CustomerCashBalanceTransaction> the list of customer cash balance transactions
+ */
+ public static function allCashBalanceTransactions($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the customer cash balance transaction belongs
+ * @param string $cashBalanceTransactionId the ID of the customer cash balance transaction to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerCashBalanceTransaction
+ */
+ public static function retrieveCashBalanceTransaction($id, $cashBalanceTransactionId, $params = null, $opts = null)
+ {
+ }
+ const PATH_SOURCES = '/sources';
+ /**
+ * @param string $id the ID of the customer on which to retrieve the payment sources
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card|\Stripe\Source> the list of payment sources (BankAccount, Card or Source)
+ */
+ public static function allSources($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer on which to create the payment source
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public static function createSource($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the payment source belongs
+ * @param string $sourceId the ID of the payment source to delete
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public static function deleteSource($id, $sourceId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the payment source belongs
+ * @param string $sourceId the ID of the payment source to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public static function retrieveSource($id, $sourceId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the payment source belongs
+ * @param string $sourceId the ID of the payment source to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public static function updateSource($id, $sourceId, $params = null, $opts = null)
+ {
+ }
+ const PATH_TAX_IDS = '/tax_ids';
+ /**
+ * @param string $id the ID of the customer on which to retrieve the tax ids
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TaxId> the list of tax ids
+ */
+ public static function allTaxIds($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer on which to create the tax id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public static function createTaxId($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the tax id belongs
+ * @param string $taxIdId the ID of the tax id to delete
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public static function deleteTaxId($id, $taxIdId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the customer to which the tax id belongs
+ * @param string $taxIdId the ID of the tax id to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public static function retrieveTaxId($id, $taxIdId, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Each customer has a balance
+ * value, which denotes a debit or credit that's automatically applied to their
+ * next invoice upon finalization. You may modify the value directly by using the
+ * update customer API,
+ * or by creating a Customer Balance Transaction, which increments or decrements
+ * the customer's balance by the specified amount.
+ *
+ * Related guide: Customer Balance to
+ * learn more.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount The amount of the transaction. A negative value is a credit for the customer's balance, and a positive value is a debit to the customer's balance.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string|\Stripe\CreditNote $credit_note The ID of the credit note (if any) related to the transaction.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string|\Stripe\Customer $customer The ID of the customer the transaction belongs to.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property int $ending_balance The customer's balance after the transaction was applied. A negative value decreases the amount due on the customer's next invoice. A positive value increases the amount due on the customer's next invoice.
+ * @property null|string|\Stripe\Invoice $invoice The ID of the invoice (if any) related to the transaction.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $type Transaction type: adjustment, applied_to_invoice, credit_note, initial, invoice_overpaid, invoice_too_large, invoice_too_small, unspent_receiver_credit, or unapplied_from_invoice. See the Customer Balance page to learn more about transaction types.
+ */
+class CustomerBalanceTransaction extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'customer_balance_transaction';
+ const TYPE_ADJUSTMENT = 'adjustment';
+ const TYPE_APPLIED_TO_INVOICE = 'applied_to_invoice';
+ const TYPE_CREDIT_NOTE = 'credit_note';
+ const TYPE_INITIAL = 'initial';
+ const TYPE_INVOICE_OVERPAID = 'invoice_overpaid';
+ const TYPE_INVOICE_TOO_LARGE = 'invoice_too_large';
+ const TYPE_INVOICE_TOO_SMALL = 'invoice_too_small';
+ const TYPE_UNSPENT_RECEIVER_CREDIT = 'unspent_receiver_credit';
+ const TYPE_ADJUSTEMENT = 'adjustment';
+ /**
+ * @return string the API URL for this balance transaction
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param array|string $_id
+ * @param null|array|string $_opts
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function retrieve($_id, $_opts = null)
+ {
+ }
+ /**
+ * @param string $_id
+ * @param null|array $_params
+ * @param null|array|string $_options
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function update($_id, $_params = null, $_options = null)
+ {
+ }
+}
+/**
+ * Customers with certain payments enabled have a cash balance, representing funds
+ * that were paid by the customer to a merchant, but have not yet been allocated to
+ * a payment. Cash Balance Transactions represent when funds are moved into or out
+ * of this balance. This includes funding by the customer, allocation to payments,
+ * and refunds to the customer.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $applied_to_payment
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string|\Stripe\Customer $customer The customer whose available cash balance changed as a result of this transaction.
+ * @property int $ending_balance The total available cash balance for the specified currency after this transaction was applied. Represented in the smallest currency unit.
+ * @property null|\Stripe\StripeObject $funded
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property int $net_amount The amount by which the cash balance changed, represented in the smallest currency unit. A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance.
+ * @property null|\Stripe\StripeObject $refunded_from_payment
+ * @property string $type The type of the cash balance transaction. One of applied_to_payment, unapplied_from_payment, refunded_from_payment, funded, return_initiated, or return_canceled. New types may be added in future. See Customer Balance to learn more about these types.
+ * @property null|\Stripe\StripeObject $unapplied_from_payment
+ */
+class CustomerCashBalanceTransaction extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'customer_cash_balance_transaction';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const TYPE_APPLIED_TO_PAYMENT = 'applied_to_payment';
+ const TYPE_FUNDED = 'funded';
+ const TYPE_FUNDING_REVERSED = 'funding_reversed';
+ const TYPE_REFUNDED_FROM_PAYMENT = 'refunded_from_payment';
+ const TYPE_RETURN_CANCELED = 'return_canceled';
+ const TYPE_RETURN_INITIATED = 'return_initiated';
+ const TYPE_UNAPPLIED_FROM_PAYMENT = 'unapplied_from_payment';
+}
+/**
+ * Class Discount.
+ *
+ * @property null|string $checkout_session The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
+ * @property \Stripe\Coupon $coupon Hash describing the coupon applied to create this discount.
+ * @property string|\Stripe\Customer $customer The ID of the customer associated with this discount.
+ * @property null|int $end If the coupon has a duration of repeating, the date that this discount will end. If the coupon has a duration of once or forever, this attribute will be null.
+ * @property string $id The ID of the discount object.
+ * @property null|string $invoice The invoice that the discount’s coupon was applied to, if it was applied directly to a particular invoice.
+ * @property null|string $invoice_item The invoice item id (or invoice line item id for invoice line items of type=‘subscription’) that the discount’s coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.
+ * @property string $object String representing the object’s type. Objects of the same type share the same value.
+ * @property null|string $promotion_code The promotion code applied to create this discount.
+ * @property int $start Date that the coupon was applied.
+ * @property null|string $subscription The subscription that this coupon is applied to, if it is applied to a particular subscription.
+ */
+class Discount extends \Stripe\StripeObject
+{
+ const OBJECT_NAME = 'discount';
+}
+/**
+ * A dispute occurs when a customer questions your charge with their card issuer.
+ * When this happens, you're given the opportunity to respond to the dispute with
+ * evidence that shows that the charge is legitimate. You can find more information
+ * about the dispute process in our Disputes and Fraud
+ * documentation.
+ *
+ * Related guide: Disputes and
+ * Fraud.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Disputed amount. Usually the amount of the charge, but can differ (usually because of currency fluctuation or because only part of the order is disputed).
+ * @property \Stripe\BalanceTransaction[] $balance_transactions List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
+ * @property string|\Stripe\Charge $charge ID of the charge that was disputed.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property \Stripe\StripeObject $evidence
+ * @property \Stripe\StripeObject $evidence_details
+ * @property bool $is_charge_refundable If true, it is still possible to refund the disputed payment. Once the payment has been fully refunded, no further funds will be withdrawn from your Stripe account as a result of this dispute.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $network_reason_code Network-dependent reason code for the dispute.
+ * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that was disputed.
+ * @property string $reason Reason given by cardholder for dispute. Possible values are bank_cannot_process, check_returned, credit_not_processed, customer_initiated, debit_not_authorized, duplicate, fraudulent, general, incorrect_account_details, insufficient_funds, product_not_received, product_unacceptable, subscription_canceled, or unrecognized. Read more about dispute reasons.
+ * @property string $status Current status of dispute. Possible values are warning_needs_response, warning_under_review, warning_closed, needs_response, under_review, charge_refunded, won, or lost.
+ */
+class Dispute extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'dispute';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const REASON_BANK_CANNOT_PROCESS = 'bank_cannot_process';
+ const REASON_CHECK_RETURNED = 'check_returned';
+ const REASON_CREDIT_NOT_PROCESSED = 'credit_not_processed';
+ const REASON_CUSTOMER_INITIATED = 'customer_initiated';
+ const REASON_DEBIT_NOT_AUTHORIZED = 'debit_not_authorized';
+ const REASON_DUPLICATE = 'duplicate';
+ const REASON_FRAUDULENT = 'fraudulent';
+ const REASON_GENERAL = 'general';
+ const REASON_INCORRECT_ACCOUNT_DETAILS = 'incorrect_account_details';
+ const REASON_INSUFFICIENT_FUNDS = 'insufficient_funds';
+ const REASON_PRODUCT_NOT_RECEIVED = 'product_not_received';
+ const REASON_PRODUCT_UNACCEPTABLE = 'product_unacceptable';
+ const REASON_SUBSCRIPTION_CANCELED = 'subscription_canceled';
+ const REASON_UNRECOGNIZED = 'unrecognized';
+ const STATUS_CHARGE_REFUNDED = 'charge_refunded';
+ const STATUS_LOST = 'lost';
+ const STATUS_NEEDS_RESPONSE = 'needs_response';
+ const STATUS_UNDER_REVIEW = 'under_review';
+ const STATUS_WARNING_CLOSED = 'warning_closed';
+ const STATUS_WARNING_NEEDS_RESPONSE = 'warning_needs_response';
+ const STATUS_WARNING_UNDER_REVIEW = 'warning_under_review';
+ const STATUS_WON = 'won';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Dispute the closed dispute
+ */
+ public function close($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property int $expires Time at which the key will expire. Measured in seconds since the Unix epoch.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string $secret The key's secret. You can use this value to make authorized requests to the Stripe API.
+ */
+class EphemeralKey extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'ephemeral_key';
+ use \Stripe\ApiOperations\Create {
+ create as protected _create;
+ }
+ use \Stripe\ApiOperations\Delete;
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\InvalidArgumentException if stripe_version is missing
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\EphemeralKey the created key
+ */
+ public static function create($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Class ErrorObject.
+ *
+ * @property string $charge For card errors, the ID of the failed charge.
+ * @property string $code For some errors that could be handled
+ * programmatically, a short string indicating the error code reported.
+ * @property string $decline_code For card errors resulting from a card issuer
+ * decline, a short string indicating the card issuer's reason for the
+ * decline if they provide one.
+ * @property string $doc_url A URL to more information about the error code
+ * reported.
+ * @property string $message A human-readable message providing more details
+ * about the error. For card errors, these messages can be shown to your
+ * users.
+ * @property string $param If the error is parameter-specific, the parameter
+ * related to the error. For example, you can use this to display a message
+ * near the correct form field.
+ * @property PaymentIntent $payment_intent The PaymentIntent object for errors
+ * returned on a request involving a PaymentIntent.
+ * @property PaymentMethod $payment_method The PaymentMethod object for errors
+ * returned on a request involving a PaymentMethod.
+ * @property string $payment_method_type If the error is specific to the type
+ * of payment method, the payment method type that had a problem. This
+ * field is only populated for invoice-related errors.
+ * @property string $request_log_url A URL to the request log entry in your
+ * dashboard.
+ * @property SetupIntent $setup_intent The SetupIntent object for errors
+ * returned on a request involving a SetupIntent.
+ * @property StripeObject $source The source object for errors returned on a
+ * request involving a source.
+ * @property string $type The type of error returned. One of `api_error`,
+ * `card_error`, `idempotency_error`, or `invalid_request_error`.
+ */
+class ErrorObject extends \Stripe\StripeObject
+{
+ /**
+ * Possible string representations of an error's code.
+ *
+ * @see https://stripe.com/docs/error-codes
+ */
+ const CODE_ACCOUNT_COUNTRY_INVALID_ADDRESS = 'account_country_invalid_address';
+ const CODE_ACCOUNT_ERROR_COUNTRY_CHANGE_REQUIRES_ADDITIONAL_STEPS = 'account_error_country_change_requires_additional_steps';
+ const CODE_ACCOUNT_INFORMATION_MISMATCH = 'account_information_mismatch';
+ const CODE_ACCOUNT_INVALID = 'account_invalid';
+ const CODE_ACCOUNT_NUMBER_INVALID = 'account_number_invalid';
+ const CODE_ACSS_DEBIT_SESSION_INCOMPLETE = 'acss_debit_session_incomplete';
+ const CODE_ALIPAY_UPGRADE_REQUIRED = 'alipay_upgrade_required';
+ const CODE_AMOUNT_TOO_LARGE = 'amount_too_large';
+ const CODE_AMOUNT_TOO_SMALL = 'amount_too_small';
+ const CODE_API_KEY_EXPIRED = 'api_key_expired';
+ const CODE_AUTHENTICATION_REQUIRED = 'authentication_required';
+ const CODE_BALANCE_INSUFFICIENT = 'balance_insufficient';
+ const CODE_BANK_ACCOUNT_BAD_ROUTING_NUMBERS = 'bank_account_bad_routing_numbers';
+ const CODE_BANK_ACCOUNT_DECLINED = 'bank_account_declined';
+ const CODE_BANK_ACCOUNT_EXISTS = 'bank_account_exists';
+ const CODE_BANK_ACCOUNT_UNUSABLE = 'bank_account_unusable';
+ const CODE_BANK_ACCOUNT_UNVERIFIED = 'bank_account_unverified';
+ const CODE_BANK_ACCOUNT_VERIFICATION_FAILED = 'bank_account_verification_failed';
+ const CODE_BILLING_INVALID_MANDATE = 'billing_invalid_mandate';
+ const CODE_BITCOIN_UPGRADE_REQUIRED = 'bitcoin_upgrade_required';
+ const CODE_CARD_DECLINE_RATE_LIMIT_EXCEEDED = 'card_decline_rate_limit_exceeded';
+ const CODE_CARD_DECLINED = 'card_declined';
+ const CODE_CARDHOLDER_PHONE_NUMBER_REQUIRED = 'cardholder_phone_number_required';
+ const CODE_CHARGE_ALREADY_CAPTURED = 'charge_already_captured';
+ const CODE_CHARGE_ALREADY_REFUNDED = 'charge_already_refunded';
+ const CODE_CHARGE_DISPUTED = 'charge_disputed';
+ const CODE_CHARGE_EXCEEDS_SOURCE_LIMIT = 'charge_exceeds_source_limit';
+ const CODE_CHARGE_EXPIRED_FOR_CAPTURE = 'charge_expired_for_capture';
+ const CODE_CHARGE_INVALID_PARAMETER = 'charge_invalid_parameter';
+ const CODE_CLEARING_CODE_UNSUPPORTED = 'clearing_code_unsupported';
+ const CODE_COUNTRY_CODE_INVALID = 'country_code_invalid';
+ const CODE_COUNTRY_UNSUPPORTED = 'country_unsupported';
+ const CODE_COUPON_EXPIRED = 'coupon_expired';
+ const CODE_CUSTOMER_MAX_PAYMENT_METHODS = 'customer_max_payment_methods';
+ const CODE_CUSTOMER_MAX_SUBSCRIPTIONS = 'customer_max_subscriptions';
+ const CODE_DEBIT_NOT_AUTHORIZED = 'debit_not_authorized';
+ const CODE_EMAIL_INVALID = 'email_invalid';
+ const CODE_EXPIRED_CARD = 'expired_card';
+ const CODE_IDEMPOTENCY_KEY_IN_USE = 'idempotency_key_in_use';
+ const CODE_INCORRECT_ADDRESS = 'incorrect_address';
+ const CODE_INCORRECT_CVC = 'incorrect_cvc';
+ const CODE_INCORRECT_NUMBER = 'incorrect_number';
+ const CODE_INCORRECT_ZIP = 'incorrect_zip';
+ const CODE_INSTANT_PAYOUTS_LIMIT_EXCEEDED = 'instant_payouts_limit_exceeded';
+ const CODE_INSTANT_PAYOUTS_UNSUPPORTED = 'instant_payouts_unsupported';
+ const CODE_INSUFFICIENT_FUNDS = 'insufficient_funds';
+ const CODE_INTENT_INVALID_STATE = 'intent_invalid_state';
+ const CODE_INTENT_VERIFICATION_METHOD_MISSING = 'intent_verification_method_missing';
+ const CODE_INVALID_CARD_TYPE = 'invalid_card_type';
+ const CODE_INVALID_CHARACTERS = 'invalid_characters';
+ const CODE_INVALID_CHARGE_AMOUNT = 'invalid_charge_amount';
+ const CODE_INVALID_CVC = 'invalid_cvc';
+ const CODE_INVALID_EXPIRY_MONTH = 'invalid_expiry_month';
+ const CODE_INVALID_EXPIRY_YEAR = 'invalid_expiry_year';
+ const CODE_INVALID_NUMBER = 'invalid_number';
+ const CODE_INVALID_SOURCE_USAGE = 'invalid_source_usage';
+ const CODE_INVOICE_NO_CUSTOMER_LINE_ITEMS = 'invoice_no_customer_line_items';
+ const CODE_INVOICE_NO_PAYMENT_METHOD_TYPES = 'invoice_no_payment_method_types';
+ const CODE_INVOICE_NO_SUBSCRIPTION_LINE_ITEMS = 'invoice_no_subscription_line_items';
+ const CODE_INVOICE_NOT_EDITABLE = 'invoice_not_editable';
+ const CODE_INVOICE_ON_BEHALF_OF_NOT_EDITABLE = 'invoice_on_behalf_of_not_editable';
+ const CODE_INVOICE_PAYMENT_INTENT_REQUIRES_ACTION = 'invoice_payment_intent_requires_action';
+ const CODE_INVOICE_UPCOMING_NONE = 'invoice_upcoming_none';
+ const CODE_LIVEMODE_MISMATCH = 'livemode_mismatch';
+ const CODE_LOCK_TIMEOUT = 'lock_timeout';
+ const CODE_MISSING = 'missing';
+ const CODE_NO_ACCOUNT = 'no_account';
+ const CODE_NOT_ALLOWED_ON_STANDARD_ACCOUNT = 'not_allowed_on_standard_account';
+ const CODE_OUT_OF_INVENTORY = 'out_of_inventory';
+ const CODE_PARAMETER_INVALID_EMPTY = 'parameter_invalid_empty';
+ const CODE_PARAMETER_INVALID_INTEGER = 'parameter_invalid_integer';
+ const CODE_PARAMETER_INVALID_STRING_BLANK = 'parameter_invalid_string_blank';
+ const CODE_PARAMETER_INVALID_STRING_EMPTY = 'parameter_invalid_string_empty';
+ const CODE_PARAMETER_MISSING = 'parameter_missing';
+ const CODE_PARAMETER_UNKNOWN = 'parameter_unknown';
+ const CODE_PARAMETERS_EXCLUSIVE = 'parameters_exclusive';
+ const CODE_PAYMENT_INTENT_ACTION_REQUIRED = 'payment_intent_action_required';
+ const CODE_PAYMENT_INTENT_AUTHENTICATION_FAILURE = 'payment_intent_authentication_failure';
+ const CODE_PAYMENT_INTENT_INCOMPATIBLE_PAYMENT_METHOD = 'payment_intent_incompatible_payment_method';
+ const CODE_PAYMENT_INTENT_INVALID_PARAMETER = 'payment_intent_invalid_parameter';
+ const CODE_PAYMENT_INTENT_KONBINI_REJECTED_CONFIRMATION_NUMBER = 'payment_intent_konbini_rejected_confirmation_number';
+ const CODE_PAYMENT_INTENT_MANDATE_INVALID = 'payment_intent_mandate_invalid';
+ const CODE_PAYMENT_INTENT_PAYMENT_ATTEMPT_EXPIRED = 'payment_intent_payment_attempt_expired';
+ const CODE_PAYMENT_INTENT_PAYMENT_ATTEMPT_FAILED = 'payment_intent_payment_attempt_failed';
+ const CODE_PAYMENT_INTENT_UNEXPECTED_STATE = 'payment_intent_unexpected_state';
+ const CODE_PAYMENT_METHOD_BANK_ACCOUNT_ALREADY_VERIFIED = 'payment_method_bank_account_already_verified';
+ const CODE_PAYMENT_METHOD_BANK_ACCOUNT_BLOCKED = 'payment_method_bank_account_blocked';
+ const CODE_PAYMENT_METHOD_BILLING_DETAILS_ADDRESS_MISSING = 'payment_method_billing_details_address_missing';
+ const CODE_PAYMENT_METHOD_CURRENCY_MISMATCH = 'payment_method_currency_mismatch';
+ const CODE_PAYMENT_METHOD_INVALID_PARAMETER = 'payment_method_invalid_parameter';
+ const CODE_PAYMENT_METHOD_INVALID_PARAMETER_TESTMODE = 'payment_method_invalid_parameter_testmode';
+ const CODE_PAYMENT_METHOD_MICRODEPOSIT_FAILED = 'payment_method_microdeposit_failed';
+ const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_INVALID = 'payment_method_microdeposit_verification_amounts_invalid';
+ const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_MISMATCH = 'payment_method_microdeposit_verification_amounts_mismatch';
+ const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_ATTEMPTS_EXCEEDED = 'payment_method_microdeposit_verification_attempts_exceeded';
+ const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_DESCRIPTOR_CODE_MISMATCH = 'payment_method_microdeposit_verification_descriptor_code_mismatch';
+ const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_TIMEOUT = 'payment_method_microdeposit_verification_timeout';
+ const CODE_PAYMENT_METHOD_PROVIDER_DECLINE = 'payment_method_provider_decline';
+ const CODE_PAYMENT_METHOD_PROVIDER_TIMEOUT = 'payment_method_provider_timeout';
+ const CODE_PAYMENT_METHOD_UNACTIVATED = 'payment_method_unactivated';
+ const CODE_PAYMENT_METHOD_UNEXPECTED_STATE = 'payment_method_unexpected_state';
+ const CODE_PAYMENT_METHOD_UNSUPPORTED_TYPE = 'payment_method_unsupported_type';
+ const CODE_PAYOUTS_NOT_ALLOWED = 'payouts_not_allowed';
+ const CODE_PLATFORM_ACCOUNT_REQUIRED = 'platform_account_required';
+ const CODE_PLATFORM_API_KEY_EXPIRED = 'platform_api_key_expired';
+ const CODE_POSTAL_CODE_INVALID = 'postal_code_invalid';
+ const CODE_PROCESSING_ERROR = 'processing_error';
+ const CODE_PRODUCT_INACTIVE = 'product_inactive';
+ const CODE_RATE_LIMIT = 'rate_limit';
+ const CODE_REFER_TO_CUSTOMER = 'refer_to_customer';
+ const CODE_REFUND_DISPUTED_PAYMENT = 'refund_disputed_payment';
+ const CODE_RESOURCE_ALREADY_EXISTS = 'resource_already_exists';
+ const CODE_RESOURCE_MISSING = 'resource_missing';
+ const CODE_RETURN_INTENT_ALREADY_PROCESSED = 'return_intent_already_processed';
+ const CODE_ROUTING_NUMBER_INVALID = 'routing_number_invalid';
+ const CODE_SECRET_KEY_REQUIRED = 'secret_key_required';
+ const CODE_SEPA_UNSUPPORTED_ACCOUNT = 'sepa_unsupported_account';
+ const CODE_SETUP_ATTEMPT_FAILED = 'setup_attempt_failed';
+ const CODE_SETUP_INTENT_AUTHENTICATION_FAILURE = 'setup_intent_authentication_failure';
+ const CODE_SETUP_INTENT_INVALID_PARAMETER = 'setup_intent_invalid_parameter';
+ const CODE_SETUP_INTENT_SETUP_ATTEMPT_EXPIRED = 'setup_intent_setup_attempt_expired';
+ const CODE_SETUP_INTENT_UNEXPECTED_STATE = 'setup_intent_unexpected_state';
+ const CODE_SHIPPING_CALCULATION_FAILED = 'shipping_calculation_failed';
+ const CODE_SKU_INACTIVE = 'sku_inactive';
+ const CODE_STATE_UNSUPPORTED = 'state_unsupported';
+ const CODE_TAX_ID_INVALID = 'tax_id_invalid';
+ const CODE_TAXES_CALCULATION_FAILED = 'taxes_calculation_failed';
+ const CODE_TERMINAL_LOCATION_COUNTRY_UNSUPPORTED = 'terminal_location_country_unsupported';
+ const CODE_TESTMODE_CHARGES_ONLY = 'testmode_charges_only';
+ const CODE_TLS_VERSION_UNSUPPORTED = 'tls_version_unsupported';
+ const CODE_TOKEN_ALREADY_USED = 'token_already_used';
+ const CODE_TOKEN_IN_USE = 'token_in_use';
+ const CODE_TRANSFER_SOURCE_BALANCE_PARAMETERS_MISMATCH = 'transfer_source_balance_parameters_mismatch';
+ const CODE_TRANSFERS_NOT_ALLOWED = 'transfers_not_allowed';
+ const CODE_URL_INVALID = 'url_invalid';
+ /**
+ * Refreshes this object using the provided values.
+ *
+ * @param array $values
+ * @param null|array|string|Util\RequestOptions $opts
+ * @param bool $partial defaults to false
+ */
+ public function refreshFrom($values, $opts, $partial = false)
+ {
+ }
+}
+/**
+ * Events are our way of letting you know when something interesting happens in
+ * your account. When an interesting event occurs, we create a new
+ * Event object. For example, when a charge succeeds, we create a
+ * charge.succeeded event; and when an invoice payment attempt fails,
+ * we create an invoice.payment_failed event. Note that many API
+ * requests may cause multiple events to be created. For example, if you create a
+ * new subscription for a customer, you will receive both a
+ * customer.subscription.created event and a
+ * charge.succeeded event.
+ *
+ * Events occur when the state of another API resource changes. The state of that
+ * resource at the time of the change is embedded in the event's data field. For
+ * example, a charge.succeeded event will contain a charge, and an
+ * invoice.payment_failed event will contain an invoice.
+ *
+ * As with other API resources, you can use endpoints to retrieve an individual event or a list of events from the API.
+ * We also have a separate webhooks system for sending the
+ * Event objects directly to an endpoint on your server. Webhooks are
+ * managed in your account
+ * settings, and our Using
+ * Webhooks guide will help you get set up.
+ *
+ * When using Connect, you can also
+ * receive notifications of events that occur in connected accounts. For these
+ * events, there will be an additional account attribute in the
+ * received Event object.
+ *
+ * NOTE: Right now, access to events through the Retrieve Event API is
+ * guaranteed only for 30 days.
+ *
+ * This class includes constants for the possible string representations of
+ * event types. See https://stripe.com/docs/api#event_types for more details.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $account The connected account that originated the event.
+ * @property null|string $api_version The Stripe API version used to render data. Note: This property is populated only for events on or after October 31, 2014.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property \Stripe\StripeObject $data
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property int $pending_webhooks Number of webhooks that have yet to be successfully delivered (i.e., to return a 20x response) to the URLs you've specified.
+ * @property null|\Stripe\StripeObject $request Information on the API request that instigated the event.
+ * @property string $type Description of the event (e.g., invoice.created or charge.refunded).
+ */
+class Event extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'event';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const ACCOUNT_APPLICATION_AUTHORIZED = 'account.application.authorized';
+ const ACCOUNT_APPLICATION_DEAUTHORIZED = 'account.application.deauthorized';
+ const ACCOUNT_EXTERNAL_ACCOUNT_CREATED = 'account.external_account.created';
+ const ACCOUNT_EXTERNAL_ACCOUNT_DELETED = 'account.external_account.deleted';
+ const ACCOUNT_EXTERNAL_ACCOUNT_UPDATED = 'account.external_account.updated';
+ const ACCOUNT_UPDATED = 'account.updated';
+ const APPLICATION_FEE_CREATED = 'application_fee.created';
+ const APPLICATION_FEE_REFUND_UPDATED = 'application_fee.refund.updated';
+ const APPLICATION_FEE_REFUNDED = 'application_fee.refunded';
+ const BALANCE_AVAILABLE = 'balance.available';
+ const BILLING_PORTAL_CONFIGURATION_CREATED = 'billing_portal.configuration.created';
+ const BILLING_PORTAL_CONFIGURATION_UPDATED = 'billing_portal.configuration.updated';
+ const BILLING_PORTAL_SESSION_CREATED = 'billing_portal.session.created';
+ const CAPABILITY_UPDATED = 'capability.updated';
+ const CASH_BALANCE_FUNDS_AVAILABLE = 'cash_balance.funds_available';
+ const CHARGE_CAPTURED = 'charge.captured';
+ const CHARGE_DISPUTE_CLOSED = 'charge.dispute.closed';
+ const CHARGE_DISPUTE_CREATED = 'charge.dispute.created';
+ const CHARGE_DISPUTE_FUNDS_REINSTATED = 'charge.dispute.funds_reinstated';
+ const CHARGE_DISPUTE_FUNDS_WITHDRAWN = 'charge.dispute.funds_withdrawn';
+ const CHARGE_DISPUTE_UPDATED = 'charge.dispute.updated';
+ const CHARGE_EXPIRED = 'charge.expired';
+ const CHARGE_FAILED = 'charge.failed';
+ const CHARGE_PENDING = 'charge.pending';
+ const CHARGE_REFUND_UPDATED = 'charge.refund.updated';
+ const CHARGE_REFUNDED = 'charge.refunded';
+ const CHARGE_SUCCEEDED = 'charge.succeeded';
+ const CHARGE_UPDATED = 'charge.updated';
+ const CHECKOUT_SESSION_ASYNC_PAYMENT_FAILED = 'checkout.session.async_payment_failed';
+ const CHECKOUT_SESSION_ASYNC_PAYMENT_SUCCEEDED = 'checkout.session.async_payment_succeeded';
+ const CHECKOUT_SESSION_COMPLETED = 'checkout.session.completed';
+ const CHECKOUT_SESSION_EXPIRED = 'checkout.session.expired';
+ const COUPON_CREATED = 'coupon.created';
+ const COUPON_DELETED = 'coupon.deleted';
+ const COUPON_UPDATED = 'coupon.updated';
+ const CREDIT_NOTE_CREATED = 'credit_note.created';
+ const CREDIT_NOTE_UPDATED = 'credit_note.updated';
+ const CREDIT_NOTE_VOIDED = 'credit_note.voided';
+ const CUSTOMER_CREATED = 'customer.created';
+ const CUSTOMER_DELETED = 'customer.deleted';
+ const CUSTOMER_DISCOUNT_CREATED = 'customer.discount.created';
+ const CUSTOMER_DISCOUNT_DELETED = 'customer.discount.deleted';
+ const CUSTOMER_DISCOUNT_UPDATED = 'customer.discount.updated';
+ const CUSTOMER_SOURCE_CREATED = 'customer.source.created';
+ const CUSTOMER_SOURCE_DELETED = 'customer.source.deleted';
+ const CUSTOMER_SOURCE_EXPIRING = 'customer.source.expiring';
+ const CUSTOMER_SOURCE_UPDATED = 'customer.source.updated';
+ const CUSTOMER_SUBSCRIPTION_CREATED = 'customer.subscription.created';
+ const CUSTOMER_SUBSCRIPTION_DELETED = 'customer.subscription.deleted';
+ const CUSTOMER_SUBSCRIPTION_PAUSED = 'customer.subscription.paused';
+ const CUSTOMER_SUBSCRIPTION_PENDING_UPDATE_APPLIED = 'customer.subscription.pending_update_applied';
+ const CUSTOMER_SUBSCRIPTION_PENDING_UPDATE_EXPIRED = 'customer.subscription.pending_update_expired';
+ const CUSTOMER_SUBSCRIPTION_RESUMED = 'customer.subscription.resumed';
+ const CUSTOMER_SUBSCRIPTION_TRIAL_WILL_END = 'customer.subscription.trial_will_end';
+ const CUSTOMER_SUBSCRIPTION_UPDATED = 'customer.subscription.updated';
+ const CUSTOMER_TAX_ID_CREATED = 'customer.tax_id.created';
+ const CUSTOMER_TAX_ID_DELETED = 'customer.tax_id.deleted';
+ const CUSTOMER_TAX_ID_UPDATED = 'customer.tax_id.updated';
+ const CUSTOMER_UPDATED = 'customer.updated';
+ const CUSTOMER_CASH_BALANCE_TRANSACTION_CREATED = 'customer_cash_balance_transaction.created';
+ const FILE_CREATED = 'file.created';
+ const FINANCIAL_CONNECTIONS_ACCOUNT_CREATED = 'financial_connections.account.created';
+ const FINANCIAL_CONNECTIONS_ACCOUNT_DEACTIVATED = 'financial_connections.account.deactivated';
+ const FINANCIAL_CONNECTIONS_ACCOUNT_DISCONNECTED = 'financial_connections.account.disconnected';
+ const FINANCIAL_CONNECTIONS_ACCOUNT_REACTIVATED = 'financial_connections.account.reactivated';
+ const FINANCIAL_CONNECTIONS_ACCOUNT_REFRESHED_BALANCE = 'financial_connections.account.refreshed_balance';
+ const IDENTITY_VERIFICATION_SESSION_CANCELED = 'identity.verification_session.canceled';
+ const IDENTITY_VERIFICATION_SESSION_CREATED = 'identity.verification_session.created';
+ const IDENTITY_VERIFICATION_SESSION_PROCESSING = 'identity.verification_session.processing';
+ const IDENTITY_VERIFICATION_SESSION_REDACTED = 'identity.verification_session.redacted';
+ const IDENTITY_VERIFICATION_SESSION_REQUIRES_INPUT = 'identity.verification_session.requires_input';
+ const IDENTITY_VERIFICATION_SESSION_VERIFIED = 'identity.verification_session.verified';
+ const INVOICE_CREATED = 'invoice.created';
+ const INVOICE_DELETED = 'invoice.deleted';
+ const INVOICE_FINALIZATION_FAILED = 'invoice.finalization_failed';
+ const INVOICE_FINALIZED = 'invoice.finalized';
+ const INVOICE_MARKED_UNCOLLECTIBLE = 'invoice.marked_uncollectible';
+ const INVOICE_PAID = 'invoice.paid';
+ const INVOICE_PAYMENT_ACTION_REQUIRED = 'invoice.payment_action_required';
+ const INVOICE_PAYMENT_FAILED = 'invoice.payment_failed';
+ const INVOICE_PAYMENT_SUCCEEDED = 'invoice.payment_succeeded';
+ const INVOICE_SENT = 'invoice.sent';
+ const INVOICE_UPCOMING = 'invoice.upcoming';
+ const INVOICE_UPDATED = 'invoice.updated';
+ const INVOICE_VOIDED = 'invoice.voided';
+ const INVOICEITEM_CREATED = 'invoiceitem.created';
+ const INVOICEITEM_DELETED = 'invoiceitem.deleted';
+ const INVOICEITEM_UPDATED = 'invoiceitem.updated';
+ const ISSUING_AUTHORIZATION_CREATED = 'issuing_authorization.created';
+ const ISSUING_AUTHORIZATION_REQUEST = 'issuing_authorization.request';
+ const ISSUING_AUTHORIZATION_UPDATED = 'issuing_authorization.updated';
+ const ISSUING_CARD_CREATED = 'issuing_card.created';
+ const ISSUING_CARD_UPDATED = 'issuing_card.updated';
+ const ISSUING_CARDHOLDER_CREATED = 'issuing_cardholder.created';
+ const ISSUING_CARDHOLDER_UPDATED = 'issuing_cardholder.updated';
+ const ISSUING_DISPUTE_CLOSED = 'issuing_dispute.closed';
+ const ISSUING_DISPUTE_CREATED = 'issuing_dispute.created';
+ const ISSUING_DISPUTE_FUNDS_REINSTATED = 'issuing_dispute.funds_reinstated';
+ const ISSUING_DISPUTE_SUBMITTED = 'issuing_dispute.submitted';
+ const ISSUING_DISPUTE_UPDATED = 'issuing_dispute.updated';
+ const ISSUING_TRANSACTION_CREATED = 'issuing_transaction.created';
+ const ISSUING_TRANSACTION_UPDATED = 'issuing_transaction.updated';
+ const MANDATE_UPDATED = 'mandate.updated';
+ const ORDER_CREATED = 'order.created';
+ const PAYMENT_INTENT_AMOUNT_CAPTURABLE_UPDATED = 'payment_intent.amount_capturable_updated';
+ const PAYMENT_INTENT_CANCELED = 'payment_intent.canceled';
+ const PAYMENT_INTENT_CREATED = 'payment_intent.created';
+ const PAYMENT_INTENT_PARTIALLY_FUNDED = 'payment_intent.partially_funded';
+ const PAYMENT_INTENT_PAYMENT_FAILED = 'payment_intent.payment_failed';
+ const PAYMENT_INTENT_PROCESSING = 'payment_intent.processing';
+ const PAYMENT_INTENT_REQUIRES_ACTION = 'payment_intent.requires_action';
+ const PAYMENT_INTENT_SUCCEEDED = 'payment_intent.succeeded';
+ const PAYMENT_LINK_CREATED = 'payment_link.created';
+ const PAYMENT_LINK_UPDATED = 'payment_link.updated';
+ const PAYMENT_METHOD_ATTACHED = 'payment_method.attached';
+ const PAYMENT_METHOD_AUTOMATICALLY_UPDATED = 'payment_method.automatically_updated';
+ const PAYMENT_METHOD_DETACHED = 'payment_method.detached';
+ const PAYMENT_METHOD_UPDATED = 'payment_method.updated';
+ const PAYOUT_CANCELED = 'payout.canceled';
+ const PAYOUT_CREATED = 'payout.created';
+ const PAYOUT_FAILED = 'payout.failed';
+ const PAYOUT_PAID = 'payout.paid';
+ const PAYOUT_UPDATED = 'payout.updated';
+ const PERSON_CREATED = 'person.created';
+ const PERSON_DELETED = 'person.deleted';
+ const PERSON_UPDATED = 'person.updated';
+ const PLAN_CREATED = 'plan.created';
+ const PLAN_DELETED = 'plan.deleted';
+ const PLAN_UPDATED = 'plan.updated';
+ const PRICE_CREATED = 'price.created';
+ const PRICE_DELETED = 'price.deleted';
+ const PRICE_UPDATED = 'price.updated';
+ const PRODUCT_CREATED = 'product.created';
+ const PRODUCT_DELETED = 'product.deleted';
+ const PRODUCT_UPDATED = 'product.updated';
+ const PROMOTION_CODE_CREATED = 'promotion_code.created';
+ const PROMOTION_CODE_UPDATED = 'promotion_code.updated';
+ const QUOTE_ACCEPTED = 'quote.accepted';
+ const QUOTE_CANCELED = 'quote.canceled';
+ const QUOTE_CREATED = 'quote.created';
+ const QUOTE_FINALIZED = 'quote.finalized';
+ const RADAR_EARLY_FRAUD_WARNING_CREATED = 'radar.early_fraud_warning.created';
+ const RADAR_EARLY_FRAUD_WARNING_UPDATED = 'radar.early_fraud_warning.updated';
+ const RECIPIENT_CREATED = 'recipient.created';
+ const RECIPIENT_DELETED = 'recipient.deleted';
+ const RECIPIENT_UPDATED = 'recipient.updated';
+ const REFUND_CREATED = 'refund.created';
+ const REFUND_UPDATED = 'refund.updated';
+ const REPORTING_REPORT_RUN_FAILED = 'reporting.report_run.failed';
+ const REPORTING_REPORT_RUN_SUCCEEDED = 'reporting.report_run.succeeded';
+ const REPORTING_REPORT_TYPE_UPDATED = 'reporting.report_type.updated';
+ const REVIEW_CLOSED = 'review.closed';
+ const REVIEW_OPENED = 'review.opened';
+ const SETUP_INTENT_CANCELED = 'setup_intent.canceled';
+ const SETUP_INTENT_CREATED = 'setup_intent.created';
+ const SETUP_INTENT_REQUIRES_ACTION = 'setup_intent.requires_action';
+ const SETUP_INTENT_SETUP_FAILED = 'setup_intent.setup_failed';
+ const SETUP_INTENT_SUCCEEDED = 'setup_intent.succeeded';
+ const SIGMA_SCHEDULED_QUERY_RUN_CREATED = 'sigma.scheduled_query_run.created';
+ const SKU_CREATED = 'sku.created';
+ const SKU_DELETED = 'sku.deleted';
+ const SKU_UPDATED = 'sku.updated';
+ const SOURCE_CANCELED = 'source.canceled';
+ const SOURCE_CHARGEABLE = 'source.chargeable';
+ const SOURCE_FAILED = 'source.failed';
+ const SOURCE_MANDATE_NOTIFICATION = 'source.mandate_notification';
+ const SOURCE_REFUND_ATTRIBUTES_REQUIRED = 'source.refund_attributes_required';
+ const SOURCE_TRANSACTION_CREATED = 'source.transaction.created';
+ const SOURCE_TRANSACTION_UPDATED = 'source.transaction.updated';
+ const SUBSCRIPTION_SCHEDULE_ABORTED = 'subscription_schedule.aborted';
+ const SUBSCRIPTION_SCHEDULE_CANCELED = 'subscription_schedule.canceled';
+ const SUBSCRIPTION_SCHEDULE_COMPLETED = 'subscription_schedule.completed';
+ const SUBSCRIPTION_SCHEDULE_CREATED = 'subscription_schedule.created';
+ const SUBSCRIPTION_SCHEDULE_EXPIRING = 'subscription_schedule.expiring';
+ const SUBSCRIPTION_SCHEDULE_RELEASED = 'subscription_schedule.released';
+ const SUBSCRIPTION_SCHEDULE_UPDATED = 'subscription_schedule.updated';
+ const TAX_RATE_CREATED = 'tax_rate.created';
+ const TAX_RATE_UPDATED = 'tax_rate.updated';
+ const TERMINAL_READER_ACTION_FAILED = 'terminal.reader.action_failed';
+ const TERMINAL_READER_ACTION_SUCCEEDED = 'terminal.reader.action_succeeded';
+ const TEST_HELPERS_TEST_CLOCK_ADVANCING = 'test_helpers.test_clock.advancing';
+ const TEST_HELPERS_TEST_CLOCK_CREATED = 'test_helpers.test_clock.created';
+ const TEST_HELPERS_TEST_CLOCK_DELETED = 'test_helpers.test_clock.deleted';
+ const TEST_HELPERS_TEST_CLOCK_INTERNAL_FAILURE = 'test_helpers.test_clock.internal_failure';
+ const TEST_HELPERS_TEST_CLOCK_READY = 'test_helpers.test_clock.ready';
+ const TOPUP_CANCELED = 'topup.canceled';
+ const TOPUP_CREATED = 'topup.created';
+ const TOPUP_FAILED = 'topup.failed';
+ const TOPUP_REVERSED = 'topup.reversed';
+ const TOPUP_SUCCEEDED = 'topup.succeeded';
+ const TRANSFER_CREATED = 'transfer.created';
+ const TRANSFER_REVERSED = 'transfer.reversed';
+ const TRANSFER_UPDATED = 'transfer.updated';
+ const TREASURY_CREDIT_REVERSAL_CREATED = 'treasury.credit_reversal.created';
+ const TREASURY_CREDIT_REVERSAL_POSTED = 'treasury.credit_reversal.posted';
+ const TREASURY_DEBIT_REVERSAL_COMPLETED = 'treasury.debit_reversal.completed';
+ const TREASURY_DEBIT_REVERSAL_CREATED = 'treasury.debit_reversal.created';
+ const TREASURY_DEBIT_REVERSAL_INITIAL_CREDIT_GRANTED = 'treasury.debit_reversal.initial_credit_granted';
+ const TREASURY_FINANCIAL_ACCOUNT_CLOSED = 'treasury.financial_account.closed';
+ const TREASURY_FINANCIAL_ACCOUNT_CREATED = 'treasury.financial_account.created';
+ const TREASURY_FINANCIAL_ACCOUNT_FEATURES_STATUS_UPDATED = 'treasury.financial_account.features_status_updated';
+ const TREASURY_INBOUND_TRANSFER_CANCELED = 'treasury.inbound_transfer.canceled';
+ const TREASURY_INBOUND_TRANSFER_CREATED = 'treasury.inbound_transfer.created';
+ const TREASURY_INBOUND_TRANSFER_FAILED = 'treasury.inbound_transfer.failed';
+ const TREASURY_INBOUND_TRANSFER_SUCCEEDED = 'treasury.inbound_transfer.succeeded';
+ const TREASURY_OUTBOUND_PAYMENT_CANCELED = 'treasury.outbound_payment.canceled';
+ const TREASURY_OUTBOUND_PAYMENT_CREATED = 'treasury.outbound_payment.created';
+ const TREASURY_OUTBOUND_PAYMENT_EXPECTED_ARRIVAL_DATE_UPDATED = 'treasury.outbound_payment.expected_arrival_date_updated';
+ const TREASURY_OUTBOUND_PAYMENT_FAILED = 'treasury.outbound_payment.failed';
+ const TREASURY_OUTBOUND_PAYMENT_POSTED = 'treasury.outbound_payment.posted';
+ const TREASURY_OUTBOUND_PAYMENT_RETURNED = 'treasury.outbound_payment.returned';
+ const TREASURY_OUTBOUND_TRANSFER_CANCELED = 'treasury.outbound_transfer.canceled';
+ const TREASURY_OUTBOUND_TRANSFER_CREATED = 'treasury.outbound_transfer.created';
+ const TREASURY_OUTBOUND_TRANSFER_EXPECTED_ARRIVAL_DATE_UPDATED = 'treasury.outbound_transfer.expected_arrival_date_updated';
+ const TREASURY_OUTBOUND_TRANSFER_FAILED = 'treasury.outbound_transfer.failed';
+ const TREASURY_OUTBOUND_TRANSFER_POSTED = 'treasury.outbound_transfer.posted';
+ const TREASURY_OUTBOUND_TRANSFER_RETURNED = 'treasury.outbound_transfer.returned';
+ const TREASURY_RECEIVED_CREDIT_CREATED = 'treasury.received_credit.created';
+ const TREASURY_RECEIVED_CREDIT_FAILED = 'treasury.received_credit.failed';
+ const TREASURY_RECEIVED_CREDIT_SUCCEEDED = 'treasury.received_credit.succeeded';
+ const TREASURY_RECEIVED_DEBIT_CREATED = 'treasury.received_debit.created';
+}
+namespace Stripe\Exception;
+
+/**
+ * The base interface for all Stripe exceptions.
+ */
+interface ExceptionInterface extends \Throwable
+{
+}
+/**
+ * Implements properties and methods common to all (non-SPL) Stripe exceptions.
+ */
+abstract class ApiErrorException extends \Exception implements \Stripe\Exception\ExceptionInterface
+{
+ protected $error;
+ protected $httpBody;
+ protected $httpHeaders;
+ protected $httpStatus;
+ protected $jsonBody;
+ protected $requestId;
+ protected $stripeCode;
+ /**
+ * Creates a new API error exception.
+ *
+ * @param string $message the exception message
+ * @param null|int $httpStatus the HTTP status code
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|array $jsonBody the JSON deserialized body
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
+ * @param null|string $stripeCode the Stripe error code
+ *
+ * @return static
+ */
+ public static function factory($message, $httpStatus = null, $httpBody = null, $jsonBody = null, $httpHeaders = null, $stripeCode = null)
+ {
+ }
+ /**
+ * Gets the Stripe error object.
+ *
+ * @return null|\Stripe\ErrorObject
+ */
+ public function getError()
+ {
+ }
+ /**
+ * Sets the Stripe error object.
+ *
+ * @param null|\Stripe\ErrorObject $error
+ */
+ public function setError($error)
+ {
+ }
+ /**
+ * Gets the HTTP body as a string.
+ *
+ * @return null|string
+ */
+ public function getHttpBody()
+ {
+ }
+ /**
+ * Sets the HTTP body as a string.
+ *
+ * @param null|string $httpBody
+ */
+ public function setHttpBody($httpBody)
+ {
+ }
+ /**
+ * Gets the HTTP headers array.
+ *
+ * @return null|array|\Stripe\Util\CaseInsensitiveArray
+ */
+ public function getHttpHeaders()
+ {
+ }
+ /**
+ * Sets the HTTP headers array.
+ *
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders
+ */
+ public function setHttpHeaders($httpHeaders)
+ {
+ }
+ /**
+ * Gets the HTTP status code.
+ *
+ * @return null|int
+ */
+ public function getHttpStatus()
+ {
+ }
+ /**
+ * Sets the HTTP status code.
+ *
+ * @param null|int $httpStatus
+ */
+ public function setHttpStatus($httpStatus)
+ {
+ }
+ /**
+ * Gets the JSON deserialized body.
+ *
+ * @return null|array
+ */
+ public function getJsonBody()
+ {
+ }
+ /**
+ * Sets the JSON deserialized body.
+ *
+ * @param null|array $jsonBody
+ */
+ public function setJsonBody($jsonBody)
+ {
+ }
+ /**
+ * Gets the Stripe request ID.
+ *
+ * @return null|string
+ */
+ public function getRequestId()
+ {
+ }
+ /**
+ * Sets the Stripe request ID.
+ *
+ * @param null|string $requestId
+ */
+ public function setRequestId($requestId)
+ {
+ }
+ /**
+ * Gets the Stripe error code.
+ *
+ * Cf. the `CODE_*` constants on {@see \Stripe\ErrorObject} for possible
+ * values.
+ *
+ * @return null|string
+ */
+ public function getStripeCode()
+ {
+ }
+ /**
+ * Sets the Stripe error code.
+ *
+ * @param null|string $stripeCode
+ */
+ public function setStripeCode($stripeCode)
+ {
+ }
+ /**
+ * Returns the string representation of the exception.
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ }
+ protected function constructErrorObject()
+ {
+ }
+}
+/**
+ * ApiConnection is thrown in the event that the SDK can't connect to Stripe's
+ * servers. That can be for a variety of different reasons from a downed
+ * network to a bad TLS certificate.
+ */
+class ApiConnectionException extends \Stripe\Exception\ApiErrorException
+{
+}
+/**
+ * AuthenticationException is thrown when invalid credentials are used to
+ * connect to Stripe's servers.
+ */
+class AuthenticationException extends \Stripe\Exception\ApiErrorException
+{
+}
+class BadMethodCallException extends \BadMethodCallException implements \Stripe\Exception\ExceptionInterface
+{
+}
+/**
+ * CardException is thrown when a user enters a card that can't be charged for
+ * some reason.
+ */
+class CardException extends \Stripe\Exception\ApiErrorException
+{
+ protected $declineCode;
+ protected $stripeParam;
+ /**
+ * Creates a new CardException exception.
+ *
+ * @param string $message the exception message
+ * @param null|int $httpStatus the HTTP status code
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|array $jsonBody the JSON deserialized body
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
+ * @param null|string $stripeCode the Stripe error code
+ * @param null|string $declineCode the decline code
+ * @param null|string $stripeParam the parameter related to the error
+ *
+ * @return CardException
+ */
+ public static function factory($message, $httpStatus = null, $httpBody = null, $jsonBody = null, $httpHeaders = null, $stripeCode = null, $declineCode = null, $stripeParam = null)
+ {
+ }
+ /**
+ * Gets the decline code.
+ *
+ * @return null|string
+ */
+ public function getDeclineCode()
+ {
+ }
+ /**
+ * Sets the decline code.
+ *
+ * @param null|string $declineCode
+ */
+ public function setDeclineCode($declineCode)
+ {
+ }
+ /**
+ * Gets the parameter related to the error.
+ *
+ * @return null|string
+ */
+ public function getStripeParam()
+ {
+ }
+ /**
+ * Sets the parameter related to the error.
+ *
+ * @param null|string $stripeParam
+ */
+ public function setStripeParam($stripeParam)
+ {
+ }
+}
+/**
+ * IdempotencyException is thrown in cases where an idempotency key was used
+ * improperly.
+ */
+class IdempotencyException extends \Stripe\Exception\ApiErrorException
+{
+}
+class InvalidArgumentException extends \InvalidArgumentException implements \Stripe\Exception\ExceptionInterface
+{
+}
+/**
+ * InvalidRequestException is thrown when a request is initiated with invalid
+ * parameters.
+ */
+class InvalidRequestException extends \Stripe\Exception\ApiErrorException
+{
+ protected $stripeParam;
+ /**
+ * Creates a new InvalidRequestException exception.
+ *
+ * @param string $message the exception message
+ * @param null|int $httpStatus the HTTP status code
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|array $jsonBody the JSON deserialized body
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
+ * @param null|string $stripeCode the Stripe error code
+ * @param null|string $stripeParam the parameter related to the error
+ *
+ * @return InvalidRequestException
+ */
+ public static function factory($message, $httpStatus = null, $httpBody = null, $jsonBody = null, $httpHeaders = null, $stripeCode = null, $stripeParam = null)
+ {
+ }
+ /**
+ * Gets the parameter related to the error.
+ *
+ * @return null|string
+ */
+ public function getStripeParam()
+ {
+ }
+ /**
+ * Sets the parameter related to the error.
+ *
+ * @param null|string $stripeParam
+ */
+ public function setStripeParam($stripeParam)
+ {
+ }
+}
+namespace Stripe\Exception\OAuth;
+
+/**
+ * The base interface for all Stripe OAuth exceptions.
+ */
+interface ExceptionInterface extends \Stripe\Exception\ExceptionInterface
+{
+}
+/**
+ * Implements properties and methods common to all (non-SPL) Stripe OAuth
+ * exceptions.
+ */
+abstract class OAuthErrorException extends \Stripe\Exception\ApiErrorException
+{
+ protected function constructErrorObject()
+ {
+ }
+}
+/**
+ * InvalidClientException is thrown when the client_id does not belong to you,
+ * the stripe_user_id does not exist or is not connected to your application,
+ * or the API key mode (live or test mode) does not match the client_id mode.
+ */
+class InvalidClientException extends \Stripe\Exception\OAuth\OAuthErrorException
+{
+}
+/**
+ * InvalidGrantException is thrown when a specified code doesn't exist, is
+ * expired, has been used, or doesn't belong to you; a refresh token doesn't
+ * exist, or doesn't belong to you; or if an API key's mode (live or test)
+ * doesn't match the mode of a code or refresh token.
+ */
+class InvalidGrantException extends \Stripe\Exception\OAuth\OAuthErrorException
+{
+}
+/**
+ * InvalidRequestException is thrown when a code, refresh token, or grant
+ * type parameter is not provided, but was required.
+ */
+class InvalidRequestException extends \Stripe\Exception\OAuth\OAuthErrorException
+{
+}
+/**
+ * InvalidScopeException is thrown when an invalid scope parameter is provided.
+ */
+class InvalidScopeException extends \Stripe\Exception\OAuth\OAuthErrorException
+{
+}
+/**
+ * UnknownApiErrorException is thrown when the client library receives an
+ * error from the OAuth API it doesn't know about. Receiving this error usually
+ * means that your client library is outdated and should be upgraded.
+ */
+class UnknownOAuthErrorException extends \Stripe\Exception\OAuth\OAuthErrorException
+{
+}
+/**
+ * UnsupportedGrantTypeException is thrown when an unuspported grant type
+ * parameter is specified.
+ */
+class UnsupportedGrantTypeException extends \Stripe\Exception\OAuth\OAuthErrorException
+{
+}
+/**
+ * UnsupportedResponseTypeException is thrown when an unsupported response type
+ * parameter is specified.
+ */
+class UnsupportedResponseTypeException extends \Stripe\Exception\OAuth\OAuthErrorException
+{
+}
+namespace Stripe\Exception;
+
+/**
+ * PermissionException is thrown in cases where access was attempted on a
+ * resource that wasn't allowed.
+ */
+class PermissionException extends \Stripe\Exception\ApiErrorException
+{
+}
+/**
+ * RateLimitException is thrown in cases where an account is putting too much
+ * load on Stripe's API servers (usually by performing too many requests).
+ * Please back off on request rate.
+ */
+class RateLimitException extends \Stripe\Exception\InvalidRequestException
+{
+}
+/**
+ * SignatureVerificationException is thrown when the signature verification for
+ * a webhook fails.
+ */
+class SignatureVerificationException extends \Exception implements \Stripe\Exception\ExceptionInterface
+{
+ protected $httpBody;
+ protected $sigHeader;
+ /**
+ * Creates a new SignatureVerificationException exception.
+ *
+ * @param string $message the exception message
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|string $sigHeader the `Stripe-Signature` HTTP header
+ *
+ * @return SignatureVerificationException
+ */
+ public static function factory($message, $httpBody = null, $sigHeader = null)
+ {
+ }
+ /**
+ * Gets the HTTP body as a string.
+ *
+ * @return null|string
+ */
+ public function getHttpBody()
+ {
+ }
+ /**
+ * Sets the HTTP body as a string.
+ *
+ * @param null|string $httpBody
+ */
+ public function setHttpBody($httpBody)
+ {
+ }
+ /**
+ * Gets the `Stripe-Signature` HTTP header.
+ *
+ * @return null|string
+ */
+ public function getSigHeader()
+ {
+ }
+ /**
+ * Sets the `Stripe-Signature` HTTP header.
+ *
+ * @param null|string $sigHeader
+ */
+ public function setSigHeader($sigHeader)
+ {
+ }
+}
+class UnexpectedValueException extends \UnexpectedValueException implements \Stripe\Exception\ExceptionInterface
+{
+}
+/**
+ * UnknownApiErrorException is thrown when the client library receives an
+ * error from the API it doesn't know about. Receiving this error usually
+ * means that your client library is outdated and should be upgraded.
+ */
+class UnknownApiErrorException extends \Stripe\Exception\ApiErrorException
+{
+}
+namespace Stripe;
+
+/**
+ * Exchange Rate objects allow you to determine the rates that Stripe
+ * is currently using to convert from one currency to another. Since this number is
+ * variable throughout the day, there are various reasons why you might want to
+ * know the current rate (for example, to dynamically price an item for a user with
+ * a default payment in a foreign currency).
+ *
+ * If you want a guarantee that the charge is made with a certain exchange rate you
+ * expect is current, you can pass in exchange_rate to charges
+ * endpoints. If the value is no longer up to date, the charge won't go through.
+ * Please refer to our Exchange
+ * Rates API guide for more details.
+ *
+ * @property string $id Unique identifier for the object. Represented as the three-letter ISO currency code in lowercase.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property \Stripe\StripeObject $rates Hash where the keys are supported currencies and the values are the exchange rate at which the base id currency converts to the key currency.
+ */
+class ExchangeRate extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'exchange_rate';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+}
+/**
+ * This is an object representing a file hosted on Stripe's servers. The file may
+ * have been uploaded by yourself using the create file request (for
+ * example, when uploading dispute evidence) or it may have been created by Stripe
+ * (for example, the results of a Sigma scheduled
+ * query).
+ *
+ * Related guide: File Upload
+ * Guide.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|int $expires_at The time at which the file expires and is no longer available in epoch seconds.
+ * @property null|string $filename A filename for the file, suitable for saving to a filesystem.
+ * @property null|\Stripe\Collection<\Stripe\FileLink> $links A list of file links that point at this file.
+ * @property string $purpose The purpose of the uploaded file.
+ * @property int $size The size in bytes of the file object.
+ * @property null|string $title A user friendly title for the document.
+ * @property null|string $type The type of the file returned (e.g., csv, pdf, jpg, or png).
+ * @property null|string $url The URL from which the file can be downloaded using your live secret API key.
+ */
+class File extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'file';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const PURPOSE_ACCOUNT_REQUIREMENT = 'account_requirement';
+ const PURPOSE_ADDITIONAL_VERIFICATION = 'additional_verification';
+ const PURPOSE_BUSINESS_ICON = 'business_icon';
+ const PURPOSE_BUSINESS_LOGO = 'business_logo';
+ const PURPOSE_CUSTOMER_SIGNATURE = 'customer_signature';
+ const PURPOSE_DISPUTE_EVIDENCE = 'dispute_evidence';
+ const PURPOSE_DOCUMENT_PROVIDER_IDENTITY_DOCUMENT = 'document_provider_identity_document';
+ const PURPOSE_FINANCE_REPORT_RUN = 'finance_report_run';
+ const PURPOSE_IDENTITY_DOCUMENT = 'identity_document';
+ const PURPOSE_IDENTITY_DOCUMENT_DOWNLOADABLE = 'identity_document_downloadable';
+ const PURPOSE_PCI_DOCUMENT = 'pci_document';
+ const PURPOSE_SELFIE = 'selfie';
+ const PURPOSE_SIGMA_SCHEDULED_QUERY = 'sigma_scheduled_query';
+ const PURPOSE_TAX_DOCUMENT_USER_UPLOAD = 'tax_document_user_upload';
+ const PURPOSE_TERMINAL_READER_SPLASHSCREEN = 'terminal_reader_splashscreen';
+ // This resource can have two different object names. In latter API
+ // versions, only `file` is used, but since stripe-php may be used with
+ // any API version, we need to support deserializing the older
+ // `file_upload` object into the same class.
+ const OBJECT_NAME_ALT = 'file_upload';
+ use \Stripe\ApiOperations\Create {
+ create as protected _create;
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\File the created file
+ */
+ public static function create($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * To share the contents of a File object with non-Stripe users, you
+ * can create a FileLink. FileLinks contain a URL that
+ * can be used to retrieve the contents of the file without authentication.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property bool $expired Whether this link is already expired.
+ * @property null|int $expires_at Time at which the link expires.
+ * @property string|\Stripe\File $file The file object this link points to.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $url The publicly accessible URL to download the file.
+ */
+class FileLink extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'file_link';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+namespace Stripe\FinancialConnections;
+
+/**
+ * A Financial Connections Account represents an account that exists outside of
+ * Stripe, to which you have been granted some degree of access.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $account_holder The account holder that this account belongs to.
+ * @property null|\Stripe\StripeObject $balance The most recent information about the account's balance.
+ * @property null|\Stripe\StripeObject $balance_refresh The state of the most recent attempt to refresh the account balance.
+ * @property string $category The type of the account. Account category is further divided in subcategory.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $display_name A human-readable name that has been assigned to this account, either by the account holder or by the institution.
+ * @property string $institution_name The name of the institution that holds this account.
+ * @property null|string $last4 The last 4 digits of the account number. If present, this will be 4 numeric characters.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string|\Stripe\FinancialConnections\AccountOwnership $ownership The most recent information about the account's owners.
+ * @property null|\Stripe\StripeObject $ownership_refresh The state of the most recent attempt to refresh the account owners.
+ * @property null|string[] $permissions The list of permissions granted by this account.
+ * @property string $status The status of the link to the account.
+ * @property string $subcategory
If category is cash, one of:
- checking - savings - other
If category is credit, one of:
- mortgage - line_of_credit - credit_card - other
If category is investment or other, this will be other.
+ * @property string[] $supported_payment_method_types The PaymentMethod type(s) that can be created from this account.
+ */
+class Account extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'financial_connections.account';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const CATEGORY_CASH = 'cash';
+ const CATEGORY_CREDIT = 'credit';
+ const CATEGORY_INVESTMENT = 'investment';
+ const CATEGORY_OTHER = 'other';
+ const STATUS_ACTIVE = 'active';
+ const STATUS_DISCONNECTED = 'disconnected';
+ const STATUS_INACTIVE = 'inactive';
+ const SUBCATEGORY_CHECKING = 'checking';
+ const SUBCATEGORY_CREDIT_CARD = 'credit_card';
+ const SUBCATEGORY_LINE_OF_CREDIT = 'line_of_credit';
+ const SUBCATEGORY_MORTGAGE = 'mortgage';
+ const SUBCATEGORY_OTHER = 'other';
+ const SUBCATEGORY_SAVINGS = 'savings';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Account the disconnected account
+ */
+ public function disconnect($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\FinancialConnections\AccountOwner> list of BankConnectionsResourceOwners
+ */
+ public static function allOwners($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Account the refreshed account
+ */
+ public function refreshAccount($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $email The email address of the owner.
+ * @property string $name The full name of the owner.
+ * @property string $ownership The ownership object that this owner belongs to.
+ * @property null|string $phone The raw phone number of the owner.
+ * @property null|string $raw_address The raw physical address of the owner.
+ * @property null|int $refreshed_at The timestamp of the refresh that updated this owner.
+ */
+class AccountOwner extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'financial_connections.account_owner';
+}
+/**
+ * Describes a snapshot of the owners of an account at a particular point in time.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property \Stripe\Collection<\Stripe\FinancialConnections\AccountOwner> $owners A paginated list of owners for this account.
+ */
+class AccountOwnership extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'financial_connections.account_ownership';
+}
+/**
+ * A Financial Connections Session is the secure way to programmatically launch the
+ * client-side Stripe.js modal that lets your users link their accounts.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $account_holder The account holder for whom accounts are collected in this session.
+ * @property \Stripe\Collection<\Stripe\FinancialConnections\Account> $accounts The accounts that were collected as part of this Session.
+ * @property string $client_secret A value that will be passed to the client to launch the authentication flow.
+ * @property null|\Stripe\StripeObject $filters
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string[] $permissions Permissions requested for accounts collected during this session.
+ * @property null|string $return_url For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
+ */
+class Session extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'financial_connections.session';
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+}
+namespace Stripe;
+
+/**
+ * Each customer has a balance
+ * that is automatically applied to future invoices and payments using the
+ * customer_balance payment method. Customers can fund this balance by
+ * initiating a bank transfer to any account in the
+ * financial_addresses field. Related guide: Customer
+ * Balance - Funding Instructions to learn more.
+ *
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property \Stripe\StripeObject $bank_transfer
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string $funding_type The funding_type of the returned instructions
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ */
+class FundingInstructions extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'funding_instructions';
+ const FUNDING_TYPE_BANK_TRANSFER = 'bank_transfer';
+}
+namespace Stripe\HttpClient;
+
+interface ClientInterface
+{
+ /**
+ * @param string $method The HTTP method being used
+ * @param string $absUrl The URL being requested, including domain and protocol
+ * @param array $headers Headers to be used in the request (full strings, not KV pairs)
+ * @param array $params KV pairs for parameters. Can be nested for arrays and hashes
+ * @param bool $hasFile Whether or not $params references a file (via an @ prefix or
+ * CURLFile)
+ *
+ * @throws \Stripe\Exception\ApiConnectionException
+ * @throws \Stripe\Exception\UnexpectedValueException
+ *
+ * @return array an array whose first element is raw request body, second
+ * element is HTTP status code and third array of HTTP headers
+ */
+ public function request($method, $absUrl, $headers, $params, $hasFile);
+}
+interface StreamingClientInterface
+{
+ /**
+ * @param string $method The HTTP method being used
+ * @param string $absUrl The URL being requested, including domain and protocol
+ * @param array $headers Headers to be used in the request (full strings, not KV pairs)
+ * @param array $params KV pairs for parameters. Can be nested for arrays and hashes
+ * @param bool $hasFile Whether or not $params references a file (via an @ prefix or
+ * CURLFile)
+ * @param callable $readBodyChunkCallable a function that will be called with chunks of bytes from the body if the request is successful
+ *
+ * @throws \Stripe\Exception\ApiConnectionException
+ * @throws \Stripe\Exception\UnexpectedValueException
+ *
+ * @return array an array whose first element is raw request body, second
+ * element is HTTP status code and third array of HTTP headers
+ */
+ public function requestStream($method, $absUrl, $headers, $params, $hasFile, $readBodyChunkCallable);
+}
+class CurlClient implements \Stripe\HttpClient\ClientInterface, \Stripe\HttpClient\StreamingClientInterface
+{
+ protected static $instance;
+ public static function instance()
+ {
+ }
+ protected $defaultOptions;
+ /** @var \Stripe\Util\RandomGenerator */
+ protected $randomGenerator;
+ protected $userAgentInfo;
+ protected $enablePersistentConnections = true;
+ protected $enableHttp2;
+ protected $curlHandle;
+ protected $requestStatusCallback;
+ /**
+ * CurlClient constructor.
+ *
+ * Pass in a callable to $defaultOptions that returns an array of CURLOPT_* values to start
+ * off a request with, or an flat array with the same format used by curl_setopt_array() to
+ * provide a static set of options. Note that many options are overridden later in the request
+ * call, including timeouts, which can be set via setTimeout() and setConnectTimeout().
+ *
+ * Note that request() will silently ignore a non-callable, non-array $defaultOptions, and will
+ * throw an exception if $defaultOptions returns a non-array value.
+ *
+ * @param null|array|callable $defaultOptions
+ * @param null|\Stripe\Util\RandomGenerator $randomGenerator
+ */
+ public function __construct($defaultOptions = null, $randomGenerator = null)
+ {
+ }
+ public function __destruct()
+ {
+ }
+ public function initUserAgentInfo()
+ {
+ }
+ public function getDefaultOptions()
+ {
+ }
+ public function getUserAgentInfo()
+ {
+ }
+ /**
+ * @return bool
+ */
+ public function getEnablePersistentConnections()
+ {
+ }
+ /**
+ * @param bool $enable
+ */
+ public function setEnablePersistentConnections($enable)
+ {
+ }
+ /**
+ * @return bool
+ */
+ public function getEnableHttp2()
+ {
+ }
+ /**
+ * @param bool $enable
+ */
+ public function setEnableHttp2($enable)
+ {
+ }
+ /**
+ * @return null|callable
+ */
+ public function getRequestStatusCallback()
+ {
+ }
+ /**
+ * Sets a callback that is called after each request. The callback will
+ * receive the following parameters:
+ *
+ *
string $rbody The response body
+ *
integer $rcode The response status code
+ *
\Stripe\Util\CaseInsensitiveArray $rheaders The response headers
+ *
integer $errno The curl error number
+ *
string|null $message The curl error message
+ *
boolean $shouldRetry Whether the request will be retried
+ *
integer $numRetries The number of the retry attempt
+ * .
+ *
+ * @param null|callable $requestStatusCallback
+ */
+ public function setRequestStatusCallback($requestStatusCallback)
+ {
+ }
+ // USER DEFINED TIMEOUTS
+ const DEFAULT_TIMEOUT = 80;
+ const DEFAULT_CONNECT_TIMEOUT = 30;
+ public function setTimeout($seconds)
+ {
+ }
+ public function setConnectTimeout($seconds)
+ {
+ }
+ public function getTimeout()
+ {
+ }
+ public function getConnectTimeout()
+ {
+ }
+ public function request($method, $absUrl, $headers, $params, $hasFile)
+ {
+ }
+ public function requestStream($method, $absUrl, $headers, $params, $hasFile, $readBodyChunk)
+ {
+ }
+ /**
+ * Like `executeRequestWithRetries` except:
+ * 1. Does not buffer the body of a successful (status code < 300)
+ * response into memory -- instead, calls the caller-provided
+ * $readBodyChunk with each chunk of incoming data.
+ * 2. Does not retry if a network error occurs while streaming the
+ * body of a successful response.
+ *
+ * @param array $opts cURL options
+ * @param string $absUrl
+ * @param callable $readBodyChunk
+ *
+ * @return array
+ */
+ public function executeStreamingRequestWithRetries($opts, $absUrl, $readBodyChunk)
+ {
+ }
+ /**
+ * @param array $opts cURL options
+ * @param string $absUrl
+ */
+ public function executeRequestWithRetries($opts, $absUrl)
+ {
+ }
+}
+namespace Stripe\Identity;
+
+/**
+ * A VerificationReport is the result of an attempt to collect and verify data from
+ * a user. The collection of verification checks performed is determined from the
+ * type and options parameters used. You can find the
+ * result of each verification check performed in the appropriate sub-resource:
+ * document, id_number, selfie.
+ *
+ * Each VerificationReport contains a copy of any data collected by the user as
+ * well as reference IDs which can be used to access collected images through the
+ * FileUpload API. To configure and
+ * create VerificationReports, use the VerificationSession
+ * API.
+ *
+ * Related guides: Accessing
+ * verification results.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|\Stripe\StripeObject $document Result from a document check
+ * @property null|\Stripe\StripeObject $id_number Result from an id_number check
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $options
+ * @property null|\Stripe\StripeObject $selfie Result from a selfie check
+ * @property string $type Type of report.
+ * @property null|string $verification_session ID of the VerificationSession that created this report.
+ */
+class VerificationReport extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'identity.verification_report';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const TYPE_DOCUMENT = 'document';
+ const TYPE_ID_NUMBER = 'id_number';
+}
+/**
+ * A VerificationSession guides you through the process of collecting and verifying
+ * the identities of your users. It contains details about the type of
+ * verification, such as what verification check to perform.
+ * Only create one VerificationSession for each verification in your system.
+ *
+ * A VerificationSession transitions through multiple statuses throughout its
+ * lifetime as it progresses through the verification flow. The VerificationSession
+ * contains the user's verified data after verification checks are complete.
+ *
+ * Related guide: The Verification
+ * Sessions API
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $client_secret The short-lived client secret used by Stripe.js to show a verification modal inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on passing the client secret to the frontend to learn more.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|\Stripe\StripeObject $last_error If present, this property tells you the last error encountered when processing the verification.
+ * @property null|string|\Stripe\Identity\VerificationReport $last_verification_report ID of the most recent VerificationReport. Learn more about accessing detailed verification results.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property \Stripe\StripeObject $options
+ * @property null|\Stripe\StripeObject $redaction Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
+ * @property string $status Status of this VerificationSession. Learn more about the lifecycle of sessions.
+ * @property string $type The type of verification check to be performed.
+ * @property null|string $url The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on verifying identity documents to learn how to redirect users to Stripe.
+ * @property null|\Stripe\StripeObject $verified_outputs The user’s verified data.
+ */
+class VerificationSession extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'identity.verification_session';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_PROCESSING = 'processing';
+ const STATUS_REQUIRES_INPUT = 'requires_input';
+ const STATUS_VERIFIED = 'verified';
+ const TYPE_DOCUMENT = 'document';
+ const TYPE_ID_NUMBER = 'id_number';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession the canceled verification session
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession the redacted verification session
+ */
+ public function redact($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * Invoices are statements of amounts owed by a customer, and are either generated
+ * one-off, or generated periodically from a subscription.
+ *
+ * They contain invoice
+ * items, and proration adjustments that may be caused by subscription
+ * upgrades/downgrades (if necessary).
+ *
+ * If your invoice is configured to be billed through automatic charges, Stripe
+ * automatically finalizes your invoice and attempts payment. Note that finalizing
+ * the invoice, when
+ * automatic, does not happen immediately as the invoice is created. Stripe
+ * waits until one hour after the last webhook was successfully sent (or the last
+ * webhook timed out after failing). If you (and the platforms you may have
+ * connected to) have no webhooks configured, Stripe waits one hour after creation
+ * to finalize the invoice.
+ *
+ * If your invoice is configured to be billed by sending an email, then based on
+ * your email
+ * settings, Stripe will email the invoice to your customer and await payment.
+ * These emails can contain a link to a hosted page to pay the invoice.
+ *
+ * Stripe applies any customer credit on the account before determining the amount
+ * due for the invoice (i.e., the amount that will be actually charged). If the
+ * amount due for the invoice is less than Stripe's minimum allowed
+ * charge per currency, the invoice is automatically marked paid, and we add
+ * the amount due to the customer's credit balance which is applied to the next
+ * invoice.
+ *
+ * More details on the customer's credit balance are here.
+ *
+ * Related guide: Send
+ * Invoices to Customers.
+ *
+ * @property null|string $id Unique identifier for the object. This property is always present unless the invoice is an upcoming invoice. See Retrieve an upcoming invoice for more details.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $account_country The country of the business associated with this invoice, most often the business creating the invoice.
+ * @property null|string $account_name The public name of the business associated with this invoice, most often the business creating the invoice.
+ * @property null|(string|\Stripe\TaxId)[] $account_tax_ids The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
+ * @property int $amount_due Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the amount_due may be 0. If there is a positive starting_balance for the invoice (the customer owes money), the amount_due will also take that into account. The charge that gets generated for the invoice will be for the amount specified in amount_due.
+ * @property int $amount_paid The amount, in %s, that was paid.
+ * @property int $amount_remaining The difference between amount_due and amount_paid, in %s.
+ * @property int $amount_shipping This is the sum of all the shipping amounts.
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect Application that created the invoice.
+ * @property null|int $application_fee_amount The fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.
+ * @property int $attempt_count Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule.
+ * @property bool $attempted Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the invoice.created webhook, for example, so you might not want to display that invoice as unpaid to your users.
+ * @property null|bool $auto_advance Controls whether Stripe will perform automatic collection of the invoice. When false, the invoice's state will not automatically advance without an explicit action.
+ * @property \Stripe\StripeObject $automatic_tax
+ * @property null|string $billing_reason Indicates the reason why the invoice was created. subscription_cycle indicates an invoice created by a subscription advancing into a new period. subscription_create indicates an invoice created due to creating a subscription. subscription_update indicates an invoice created due to updating a subscription. subscription is set for all old invoices to indicate either a change to a subscription or a period advancement. manual is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The upcoming value is reserved for simulated invoices per the upcoming invoice endpoint. subscription_threshold indicates an invoice created due to a billing threshold being reached.
+ * @property null|string|\Stripe\Charge $charge ID of the latest charge generated for this invoice, if any.
+ * @property string $collection_method Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|\Stripe\StripeObject[] $custom_fields Custom fields displayed on the invoice.
+ * @property null|string|\Stripe\Customer $customer The ID of the customer who will be billed.
+ * @property null|\Stripe\StripeObject $customer_address The customer's address. Until the invoice is finalized, this field will equal customer.address. Once the invoice is finalized, this field will no longer be updated.
+ * @property null|string $customer_email The customer's email. Until the invoice is finalized, this field will equal customer.email. Once the invoice is finalized, this field will no longer be updated.
+ * @property null|string $customer_name The customer's name. Until the invoice is finalized, this field will equal customer.name. Once the invoice is finalized, this field will no longer be updated.
+ * @property null|string $customer_phone The customer's phone number. Until the invoice is finalized, this field will equal customer.phone. Once the invoice is finalized, this field will no longer be updated.
+ * @property null|\Stripe\StripeObject $customer_shipping The customer's shipping information. Until the invoice is finalized, this field will equal customer.shipping. Once the invoice is finalized, this field will no longer be updated.
+ * @property null|string $customer_tax_exempt The customer's tax exempt status. Until the invoice is finalized, this field will equal customer.tax_exempt. Once the invoice is finalized, this field will no longer be updated.
+ * @property null|\Stripe\StripeObject[] $customer_tax_ids The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as customer.tax_ids. Once the invoice is finalized, this field will no longer be updated.
+ * @property null|string|\Stripe\PaymentMethod $default_payment_method ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
+ * @property null|string|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $default_source ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
+ * @property \Stripe\TaxRate[] $default_tax_rates The tax rates applied to this invoice, if any.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
+ * @property null|\Stripe\Discount $discount Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.
+ * @property null|(string|\Stripe\Discount)[] $discounts The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use expand[]=discounts to expand each discount.
+ * @property null|int $due_date The date on which payment for this invoice is due. This value will be null for invoices where collection_method=charge_automatically.
+ * @property null|int $ending_balance Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
+ * @property null|string $footer Footer displayed on the invoice.
+ * @property null|\Stripe\StripeObject $from_invoice Details of the invoice that was cloned. See the revision documentation for more details.
+ * @property null|string $hosted_invoice_url The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null.
+ * @property null|string $invoice_pdf The link to download the PDF for the invoice. If the invoice has not been finalized yet, this will be null.
+ * @property null|\Stripe\StripeObject $last_finalization_error The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
+ * @property null|string|\Stripe\Invoice $latest_revision The ID of the most recent non-draft revision of this invoice
+ * @property \Stripe\Collection<\Stripe\InvoiceLineItem> $lines The individual line items that make up the invoice. lines is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|int $next_payment_attempt The time at which payment will next be attempted. This value will be null for invoices where collection_method=send_invoice.
+ * @property null|string $number A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
+ * @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.
+ * @property bool $paid Whether payment was successfully collected for this invoice. An invoice can be paid (most commonly) with a charge or with credit from the customer's account balance.
+ * @property bool $paid_out_of_band Returns true if the invoice was manually marked paid, returns false if the invoice hasn't been paid yet or was paid on Stripe.
+ * @property null|string|\Stripe\PaymentIntent $payment_intent The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent.
+ * @property \Stripe\StripeObject $payment_settings
+ * @property int $period_end End of the usage period during which invoice items were added to this invoice.
+ * @property int $period_start Start of the usage period during which invoice items were added to this invoice.
+ * @property int $post_payment_credit_notes_amount Total amount of all post-payment credit notes issued for this invoice.
+ * @property int $pre_payment_credit_notes_amount Total amount of all pre-payment credit notes issued for this invoice.
+ * @property null|string|\Stripe\Quote $quote The quote this invoice was generated from.
+ * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this invoice.
+ * @property null|\Stripe\StripeObject $rendering_options Options for invoice PDF rendering.
+ * @property null|\Stripe\StripeObject $shipping_cost The details of the cost of shipping, including the ShippingRate applied on the invoice.
+ * @property null|\Stripe\StripeObject $shipping_details Shipping details for the invoice. The Invoice PDF will use the shipping_details value if it is set, otherwise the PDF will render the shipping address from the customer.
+ * @property int $starting_balance Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.
+ * @property null|string $statement_descriptor Extra information about an invoice for the customer's credit card statement.
+ * @property null|string $status The status of the invoice, one of draft, open, paid, uncollectible, or void. Learn more
+ * @property \Stripe\StripeObject $status_transitions
+ * @property null|string|\Stripe\Subscription $subscription The subscription that this invoice was prepared for, if any.
+ * @property null|int $subscription_proration_date Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
+ * @property int $subtotal Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated
+ * @property null|int $subtotal_excluding_tax The integer amount in %s representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
+ * @property null|int $tax The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice.
+ * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this invoice belongs to.
+ * @property null|\Stripe\StripeObject $threshold_reason
+ * @property int $total Total after discounts and taxes.
+ * @property null|\Stripe\StripeObject[] $total_discount_amounts The aggregate amounts calculated per discount across all line items.
+ * @property null|int $total_excluding_tax The integer amount in %s representing the total amount of the invoice including all discounts but excluding all tax.
+ * @property \Stripe\StripeObject[] $total_tax_amounts The aggregate amounts calculated per tax rate for all line items.
+ * @property null|\Stripe\StripeObject $transfer_data The account (if any) the payment will be attributed to for tax reporting, and where funds from the payment will be transferred to for the invoice.
+ * @property null|int $webhooks_delivered_at Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have been exhausted. This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
+ */
+class Invoice extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'invoice';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\NestedResource;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Search;
+ use \Stripe\ApiOperations\Update;
+ const BILLING_CHARGE_AUTOMATICALLY = 'charge_automatically';
+ const BILLING_SEND_INVOICE = 'send_invoice';
+ const BILLING_REASON_AUTOMATIC_PENDING_INVOICE_ITEM_INVOICE = 'automatic_pending_invoice_item_invoice';
+ const BILLING_REASON_MANUAL = 'manual';
+ const BILLING_REASON_QUOTE_ACCEPT = 'quote_accept';
+ const BILLING_REASON_SUBSCRIPTION = 'subscription';
+ const BILLING_REASON_SUBSCRIPTION_CREATE = 'subscription_create';
+ const BILLING_REASON_SUBSCRIPTION_CYCLE = 'subscription_cycle';
+ const BILLING_REASON_SUBSCRIPTION_THRESHOLD = 'subscription_threshold';
+ const BILLING_REASON_SUBSCRIPTION_UPDATE = 'subscription_update';
+ const BILLING_REASON_UPCOMING = 'upcoming';
+ const COLLECTION_METHOD_CHARGE_AUTOMATICALLY = 'charge_automatically';
+ const COLLECTION_METHOD_SEND_INVOICE = 'send_invoice';
+ const STATUS_DELETED = 'deleted';
+ const STATUS_DRAFT = 'draft';
+ const STATUS_OPEN = 'open';
+ const STATUS_PAID = 'paid';
+ const STATUS_UNCOLLECTIBLE = 'uncollectible';
+ const STATUS_VOID = 'void';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice the finalized invoice
+ */
+ public function finalizeInvoice($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice the uncollectible invoice
+ */
+ public function markUncollectible($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice the paid invoice
+ */
+ public function pay($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice the sent invoice
+ */
+ public function sendInvoice($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice the upcoming invoice
+ */
+ public static function upcoming($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\InvoiceLineItem> list of InvoiceLineItems
+ */
+ public static function upcomingLines($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice the voided invoice
+ */
+ public function voidInvoice($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult the invoice search results
+ */
+ public static function search($params = null, $opts = null)
+ {
+ }
+ const PATH_LINES = '/lines';
+ /**
+ * @param string $id the ID of the invoice on which to retrieve the line items
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem> the list of line items
+ */
+ public static function allLines($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Invoice Items represent the component lines of an invoice. An invoice item is
+ * added to an invoice by creating or updating it with an invoice
+ * field, at which point it will be included as an invoice line item
+ * within invoice.lines.
+ *
+ * Invoice Items can be created before you are ready to actually send the invoice.
+ * This can be particularly useful when combined with a subscription. Sometimes you
+ * want to add a charge or credit to a customer, but actually charge or credit the
+ * customer’s card only at the end of a regular billing cycle. This is useful for
+ * combining several charges (to minimize per-transaction fees), or for having
+ * Stripe tabulate your usage-based billing totals.
+ *
+ * Related guides: Integrate with the
+ * Invoicing API, Subscription
+ * Invoices.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in the currency specified) of the invoice item. This should always be equal to unit_amount * quantity.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string|\Stripe\Customer $customer The ID of the customer who will be billed when this invoice item is billed.
+ * @property int $date Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property bool $discountable If true, discounts will apply to this invoice item. Always false for prorations.
+ * @property null|(string|\Stripe\Discount)[] $discounts The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use expand[]=discounts to expand each discount.
+ * @property null|string|\Stripe\Invoice $invoice The ID of the invoice this invoice item belongs to.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property \Stripe\StripeObject $period
+ * @property null|\Stripe\Plan $plan If the invoice item is a proration, the plan of the subscription that the proration was computed for.
+ * @property null|\Stripe\Price $price The price of the invoice item.
+ * @property bool $proration Whether the invoice item was created automatically as a proration adjustment when the customer switched plans.
+ * @property int $quantity Quantity of units for the invoice item. If the invoice item is a proration, the quantity of the subscription that the proration was computed for.
+ * @property null|string|\Stripe\Subscription $subscription The subscription that this invoice item has been created for, if any.
+ * @property null|string $subscription_item The subscription item that this invoice item has been created for, if any.
+ * @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to the invoice item. When set, the default_tax_rates on the invoice do not apply to this invoice item.
+ * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this invoice item belongs to.
+ * @property null|int $unit_amount Unit amount (in the currency specified) of the invoice item.
+ * @property null|string $unit_amount_decimal Same as unit_amount, but contains a decimal value with at most 12 decimal places.
+ */
+class InvoiceItem extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'invoiceitem';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount The amount, in %s.
+ * @property null|int $amount_excluding_tax The integer amount in %s representing the amount for this line item, excluding all tax and discounts.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|\Stripe\StripeObject[] $discount_amounts The amount of discount calculated per discount for this line item.
+ * @property bool $discountable If true, discounts will apply to this line item. Always false for prorations.
+ * @property null|(string|\Stripe\Discount)[] $discounts The discounts applied to the invoice line item. Line item discounts are applied before invoice discounts. Use expand[]=discounts to expand each discount.
+ * @property null|string $invoice_item The ID of the invoice item associated with this line item if any.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items with type=subscription this will reflect the metadata of the subscription that caused the line item to be created.
+ * @property \Stripe\StripeObject $period
+ * @property null|\Stripe\Plan $plan The plan of the subscription, if the line item is a subscription or a proration.
+ * @property null|\Stripe\Price $price The price of the line item.
+ * @property bool $proration Whether this is a proration.
+ * @property null|\Stripe\StripeObject $proration_details Additional details for proration line items
+ * @property null|int $quantity The quantity of the subscription, if the line item is a subscription or a proration.
+ * @property null|string $subscription The subscription that the invoice item pertains to, if any.
+ * @property null|string $subscription_item The subscription item that generated this line item. Left empty if the line item is not an explicit result of a subscription.
+ * @property null|\Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item
+ * @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item.
+ * @property string $type A string identifying the type of the source of this line item, either an invoiceitem or a subscription.
+ * @property null|string $unit_amount_excluding_tax The amount in %s representing the unit amount for this line item, excluding all tax and discounts.
+ */
+class InvoiceLineItem extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'line_item';
+}
+namespace Stripe\Issuing;
+
+/**
+ * When an issued card is used to
+ * make a purchase, an Issuing Authorization object is created. Authorizations
+ * must be approved for the purchase to be completed successfully.
+ *
+ * Related guide: Issued Card
+ * Authorizations.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount The total amount that was authorized or rejected. This amount is in the card's currency and in the smallest currency unit.
+ * @property null|\Stripe\StripeObject $amount_details Detailed breakdown of amount components. These amounts are denominated in currency and in the smallest currency unit.
+ * @property bool $approved Whether the authorization has been approved.
+ * @property string $authorization_method How the card details were provided.
+ * @property \Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with this authorization.
+ * @property \Stripe\Issuing\Card $card You can create physical or virtual cards that are issued to cardholders.
+ * @property null|string|\Stripe\Issuing\Cardholder $cardholder The cardholder to whom this authorization belongs.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property int $merchant_amount The total amount that was authorized or rejected. This amount is in the merchant_currency and in the smallest currency unit.
+ * @property string $merchant_currency The currency that was presented to the cardholder for the authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property \Stripe\StripeObject $merchant_data
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\StripeObject $network_data Details about the authorization, such as identifiers, set by the card network.
+ * @property null|\Stripe\StripeObject $pending_request The pending authorization request. This field will only be non-null during an issuing_authorization.request webhook.
+ * @property \Stripe\StripeObject[] $request_history History of every time a pending_request authorization was approved/declined, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization. This field can be helpful in determining why a given authorization was approved/declined.
+ * @property string $status The current status of the authorization in its lifecycle.
+ * @property \Stripe\Issuing\Transaction[] $transactions List of transactions associated with this authorization.
+ * @property null|\Stripe\StripeObject $treasury Treasury details related to this authorization if it was created on a FinancialAccount.
+ * @property \Stripe\StripeObject $verification_data
+ * @property null|string $wallet The digital wallet used for this transaction. One of apple_pay, google_pay, or samsung_pay. Will populate as null when no digital wallet was utilized.
+ */
+class Authorization extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.authorization';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization the approved authorization
+ */
+ public function approve($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization the declined authorization
+ */
+ public function decline($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * You can create physical or
+ * virtual cards that are issued to cardholders.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property string $brand The brand of the card.
+ * @property null|string $cancellation_reason The reason why the card was canceled.
+ * @property \Stripe\Issuing\Cardholder $cardholder
An Issuing Cardholder object represents an individual or business entity who is issued cards.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Supported currencies are usd in the US, eur in the EU, and gbp in the UK.
+ * @property null|string $cvc The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with the expand parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint.
+ * @property int $exp_month The expiration month of the card.
+ * @property int $exp_year The expiration year of the card.
+ * @property null|string $financial_account The financial account this card is attached to.
+ * @property string $last4 The last 4 digits of the card number.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $number The full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with the expand parameter. Additionally, it's only available via the "Retrieve a card" endpoint, not via "List all cards" or any other endpoint.
+ * @property null|string|\Stripe\Issuing\Card $replaced_by The latest card that replaces this card, if any.
+ * @property null|string|\Stripe\Issuing\Card $replacement_for The card this card replaces, if any.
+ * @property null|string $replacement_reason The reason why the previous card needed to be replaced.
+ * @property null|\Stripe\StripeObject $shipping Where and how the card will be shipped.
+ * @property \Stripe\StripeObject $spending_controls
+ * @property string $status Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to inactive.
+ * @property string $type The type of the card.
+ * @property null|\Stripe\StripeObject $wallets Information relating to digital wallets (like Apple Pay and Google Pay).
+ */
+class Card extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.card';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * Class CardDetails.
+ *
+ * @property string $id
+ * @property string $object
+ * @property Card $card
+ * @property string $cvc
+ * @property int $exp_month
+ * @property int $exp_year
+ * @property string $number
+ */
+class CardDetails extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.card_details';
+}
+/**
+ * An Issuing Cardholder object represents an individual or business
+ * entity who is issued cards.
+ *
+ * Related guide: How to create a
+ * Cardholder
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property \Stripe\StripeObject $billing
+ * @property null|\Stripe\StripeObject $company Additional information about a company cardholder.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $email The cardholder's email address.
+ * @property null|\Stripe\StripeObject $individual Additional information about an individual cardholder.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $name The cardholder's name. This will be printed on cards issued to them.
+ * @property null|string $phone_number The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the 3D Secure documentation for more details.
+ * @property \Stripe\StripeObject $requirements
+ * @property null|\Stripe\StripeObject $spending_controls Rules that control spending across this cardholder's cards. Refer to our documentation for more details.
+ * @property string $status Specifies whether to permit authorizations on this cardholder's cards.
+ * @property string $type One of individual or company.
+ */
+class Cardholder extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.cardholder';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * As a card issuer, you can dispute
+ * transactions that the cardholder does not recognize, suspects to be fraudulent,
+ * or has other issues with.
+ *
+ * Related guide: Disputing
+ * Transactions
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Disputed amount in the card's currency and in the smallest currency unit. Usually the amount of the transaction, but can differ (usually because of currency fluctuation).
+ * @property null|\Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with the dispute.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency The currency the transaction was made in.
+ * @property \Stripe\StripeObject $evidence
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $status Current status of the dispute.
+ * @property string|\Stripe\Issuing\Transaction $transaction The transaction being disputed.
+ * @property null|\Stripe\StripeObject $treasury Treasury details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
+ */
+class Dispute extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.dispute';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute the submited dispute
+ */
+ public function submit($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Any use of an issued card that
+ * results in funds entering or leaving your Stripe account, such as a completed
+ * purchase or refund, is represented by an Issuing Transaction
+ * object.
+ *
+ * Related guide: Issued Card
+ * Transactions.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount The transaction amount, which will be reflected in your balance. This amount is in your currency and in the smallest currency unit.
+ * @property null|\Stripe\StripeObject $amount_details Detailed breakdown of amount components. These amounts are denominated in currency and in the smallest currency unit.
+ * @property null|string|\Stripe\Issuing\Authorization $authorization The Authorization object that led to this transaction.
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the balance transaction associated with this transaction.
+ * @property string|\Stripe\Issuing\Card $card The card used to make this transaction.
+ * @property null|string|\Stripe\Issuing\Cardholder $cardholder The cardholder to whom this transaction belongs.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string|\Stripe\Issuing\Dispute $dispute If you've disputed the transaction, the ID of the dispute.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property int $merchant_amount The amount that the merchant will receive, denominated in merchant_currency and in the smallest currency unit. It will be different from amount if the merchant is taking payment in a different currency.
+ * @property string $merchant_currency The currency with which the merchant is taking payment.
+ * @property \Stripe\StripeObject $merchant_data
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\StripeObject $purchase_details Additional purchase information that is optionally provided by the merchant.
+ * @property null|\Stripe\StripeObject $treasury Treasury details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
+ * @property string $type The nature of the transaction.
+ * @property null|string $wallet The digital wallet used for this transaction. One of apple_pay, google_pay, or samsung_pay.
+ */
+class Transaction extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.transaction';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+namespace Stripe;
+
+/**
+ * A line item.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount_discount Total discount amount applied. If no discounts were applied, defaults to 0.
+ * @property int $amount_subtotal Total before any discounts or taxes are applied.
+ * @property int $amount_tax Total tax amount applied. If no tax was applied, defaults to 0.
+ * @property int $amount_total Total after discounts and taxes.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string $description An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
+ * @property null|\Stripe\StripeObject[] $discounts The discounts applied to the line item.
+ * @property null|\Stripe\Price $price The price used to generate the line item.
+ * @property null|int $quantity The quantity of products being purchased.
+ * @property null|\Stripe\StripeObject[] $taxes The taxes applied to the line item.
+ */
+class LineItem extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'item';
+}
+/**
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $url The URL for the login link.
+ */
+class LoginLink extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'login_link';
+}
+/**
+ * A Mandate is a record of the permission a customer has given you to debit their
+ * payment method.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property \Stripe\StripeObject $customer_acceptance
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $multi_use
+ * @property string|\Stripe\PaymentMethod $payment_method ID of the payment method associated with this mandate.
+ * @property \Stripe\StripeObject $payment_method_details
+ * @property null|\Stripe\StripeObject $single_use
+ * @property string $status The status of the mandate, which indicates whether it can be used to initiate a payment.
+ * @property string $type The type of the mandate.
+ */
+class Mandate extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'mandate';
+ use \Stripe\ApiOperations\Retrieve;
+}
+abstract class OAuth
+{
+ /**
+ * Generates a URL to Stripe's OAuth form.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @return string the URL to Stripe's OAuth form
+ */
+ public static function authorizeUrl($params = null, $opts = null)
+ {
+ }
+ /**
+ * Use an authoriztion code to connect an account to your platform and
+ * fetch the user's credentials.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
+ *
+ * @return StripeObject object containing the response from the API
+ */
+ public static function token($params = null, $opts = null)
+ {
+ }
+ /**
+ * Disconnects an account from your platform.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
+ *
+ * @return StripeObject object containing the response from the API
+ */
+ public static function deauthorize($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Class OAuthErrorObject.
+ *
+ * @property string $error
+ * @property string $error_description
+ */
+class OAuthErrorObject extends \Stripe\StripeObject
+{
+ /**
+ * Refreshes this object using the provided values.
+ *
+ * @param array $values
+ * @param null|array|string|Util\RequestOptions $opts
+ * @param bool $partial defaults to false
+ */
+ public function refreshFrom($values, $opts, $partial = false)
+ {
+ }
+}
+/**
+ * A PaymentIntent guides you through the process of collecting a payment from your
+ * customer. We recommend that you create exactly one PaymentIntent for each order
+ * or customer session in your system. You can reference the PaymentIntent later to
+ * see the history of payment attempts for a particular session.
+ *
+ * A PaymentIntent transitions through multiple
+ * statuses throughout its lifetime as it interfaces with Stripe.js to perform
+ * authentication flows and ultimately creates at most one successful charge.
+ *
+ * Related guide: Payment Intents API.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
+ * @property int $amount_capturable Amount that can be captured from this PaymentIntent.
+ * @property null|\Stripe\StripeObject $amount_details
+ * @property int $amount_received Amount that was collected by this PaymentIntent.
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect application that created the PaymentIntent.
+ * @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents use case for connected accounts.
+ * @property null|\Stripe\StripeObject $automatic_payment_methods Settings to configure compatible payment methods from the Stripe Dashboard
+ * @property null|int $canceled_at Populated when status is canceled, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
+ * @property null|string $cancellation_reason Reason for cancellation of this PaymentIntent, either user-provided (duplicate, fraudulent, requested_by_customer, or abandoned) or generated by Stripe internally (failed_invoice, void_invoice, or automatic).
+ * @property string $capture_method Controls when the funds will be captured from the customer's account.
+ * @property null|string $client_secret
The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
Refer to our docs to accept a payment and learn about how client_secret should be handled.
+ * @property string $confirmation_method
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string|\Stripe\Customer $customer
ID of the Customer this PaymentIntent belongs to, if one exists.
Payment methods attached to other Customers cannot be used with this PaymentIntent.
If present in combination with setup_future_usage, this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string|\Stripe\Invoice $invoice ID of the invoice that created this PaymentIntent, if it exists.
+ * @property null|\Stripe\StripeObject $last_payment_error The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
+ * @property null|string|\Stripe\Charge $latest_charge The latest charge created by this payment intent.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. For more information, see the documentation.
+ * @property null|\Stripe\StripeObject $next_action If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
+ * @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents use case for connected accounts for details.
+ * @property null|string|\Stripe\PaymentMethod $payment_method ID of the payment method used in this PaymentIntent.
+ * @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for this PaymentIntent.
+ * @property string[] $payment_method_types The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
+ * @property null|\Stripe\StripeObject $processing If present, this property tells you about the processing state of the payment.
+ * @property null|string $receipt_email Email address that the receipt for the resulting payment will be sent to. If receipt_email is specified for a payment in live mode, a receipt will be sent regardless of your email settings.
+ * @property null|string|\Stripe\Review $review ID of the review associated with this PaymentIntent, if any.
+ * @property null|string $setup_future_usage
Indicates that you intend to make future payments with this PaymentIntent's payment method.
Providing this parameter will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.
When processing card payments, Stripe also uses setup_future_usage to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
+ * @property null|\Stripe\StripeObject $shipping Shipping information for this PaymentIntent.
+ * @property null|string|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $source This is a legacy field that will be removed in the future. It is the ID of the Source object that is associated with this PaymentIntent, if one was supplied.
+ * @property null|string $statement_descriptor For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.
+ * @property null|string $statement_descriptor_suffix Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
+ * @property string $status Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. Read more about each PaymentIntent status.
+ * @property null|\Stripe\StripeObject $transfer_data The data with which to automatically create a Transfer when the payment is finalized. See the PaymentIntents use case for connected accounts for details.
+ * @property null|string $transfer_group A string that identifies the resulting payment as part of a group. See the PaymentIntents use case for connected accounts for details.
+ */
+class PaymentIntent extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'payment_intent';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Search;
+ use \Stripe\ApiOperations\Update;
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_PROCESSING = 'processing';
+ const STATUS_REQUIRES_ACTION = 'requires_action';
+ const STATUS_REQUIRES_CAPTURE = 'requires_capture';
+ const STATUS_REQUIRES_CONFIRMATION = 'requires_confirmation';
+ const STATUS_REQUIRES_PAYMENT_METHOD = 'requires_payment_method';
+ const STATUS_SUCCEEDED = 'succeeded';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent the applied payment intent
+ */
+ public function applyCustomerBalance($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent the canceled payment intent
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent the captured payment intent
+ */
+ public function capture($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent the confirmed payment intent
+ */
+ public function confirm($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent the incremented payment intent
+ */
+ public function incrementAuthorization($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent the verified payment intent
+ */
+ public function verifyMicrodeposits($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult the payment intent search results
+ */
+ public static function search($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * A payment link is a shareable URL that will take your customers to a hosted
+ * payment page. A payment link can be shared and used multiple times.
+ *
+ * When a customer opens a payment link it will open a new checkout session to
+ * render the payment page. You can use checkout
+ * session events to track payments through payment links.
+ *
+ * Related guide: Payment Links API
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $active Whether the payment link's url is active. If false, customers visiting the URL will be shown a page saying that the link has been deactivated.
+ * @property \Stripe\StripeObject $after_completion
+ * @property bool $allow_promotion_codes Whether user redeemable promotion codes are enabled.
+ * @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
+ * @property null|float $application_fee_percent This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account.
+ * @property \Stripe\StripeObject $automatic_tax
+ * @property string $billing_address_collection Configuration for collecting the customer's billing address.
+ * @property null|\Stripe\StripeObject $consent_collection When set, provides configuration to gather active consent from customers.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property \Stripe\StripeObject[] $custom_fields Collect additional information from your customer using custom fields. Up to 2 fields are supported.
+ * @property \Stripe\StripeObject $custom_text
+ * @property string $customer_creation Configuration for Customer creation during checkout.
+ * @property null|\Stripe\StripeObject $invoice_creation Configuration for creating invoice for payment mode payment links.
+ * @property null|\Stripe\Collection<\Stripe\LineItem> $line_items The line items representing what is being sold.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string|\Stripe\Account $on_behalf_of The account on behalf of which to charge. See the Connect documentation for details.
+ * @property null|\Stripe\StripeObject $payment_intent_data Indicates the parameters to be passed to PaymentIntent creation during checkout.
+ * @property string $payment_method_collection Configuration for collecting a payment method during checkout.
+ * @property null|string[] $payment_method_types The list of payment method types that customers can use. When null, Stripe will dynamically show relevant payment methods you've enabled in your payment method settings.
+ * @property \Stripe\StripeObject $phone_number_collection
+ * @property null|\Stripe\StripeObject $shipping_address_collection Configuration for collecting the customer's shipping address.
+ * @property \Stripe\StripeObject[] $shipping_options The shipping rate options applied to the session.
+ * @property string $submit_type Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.
+ * @property null|\Stripe\StripeObject $subscription_data When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use subscription_data.
+ * @property \Stripe\StripeObject $tax_id_collection
+ * @property null|\Stripe\StripeObject $transfer_data The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
+ * @property string $url The public URL that can be shared with customers.
+ */
+class PaymentLink extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'payment_link';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const BILLING_ADDRESS_COLLECTION_AUTO = 'auto';
+ const BILLING_ADDRESS_COLLECTION_REQUIRED = 'required';
+ const CUSTOMER_CREATION_ALWAYS = 'always';
+ const CUSTOMER_CREATION_IF_REQUIRED = 'if_required';
+ const PAYMENT_METHOD_COLLECTION_ALWAYS = 'always';
+ const PAYMENT_METHOD_COLLECTION_IF_REQUIRED = 'if_required';
+ const SUBMIT_TYPE_AUTO = 'auto';
+ const SUBMIT_TYPE_BOOK = 'book';
+ const SUBMIT_TYPE_DONATE = 'donate';
+ const SUBMIT_TYPE_PAY = 'pay';
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem> list of LineItems
+ */
+ public static function allLineItems($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * PaymentMethod objects represent your customer's payment instruments. You can use
+ * them with PaymentIntents to
+ * collect payments or save them to Customer objects to store instrument details
+ * for future payments.
+ *
+ * Related guides: Payment Methods and
+ * More Payment
+ * Scenarios.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $acss_debit
+ * @property null|\Stripe\StripeObject $affirm
+ * @property null|\Stripe\StripeObject $afterpay_clearpay
+ * @property null|\Stripe\StripeObject $alipay
+ * @property null|\Stripe\StripeObject $au_becs_debit
+ * @property null|\Stripe\StripeObject $bacs_debit
+ * @property null|\Stripe\StripeObject $bancontact
+ * @property \Stripe\StripeObject $billing_details
+ * @property null|\Stripe\StripeObject $blik
+ * @property null|\Stripe\StripeObject $boleto
+ * @property null|\Stripe\StripeObject $card
+ * @property null|\Stripe\StripeObject $card_present
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string|\Stripe\Customer $customer The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
+ * @property null|\Stripe\StripeObject $customer_balance
+ * @property null|\Stripe\StripeObject $eps
+ * @property null|\Stripe\StripeObject $fpx
+ * @property null|\Stripe\StripeObject $giropay
+ * @property null|\Stripe\StripeObject $grabpay
+ * @property null|\Stripe\StripeObject $ideal
+ * @property null|\Stripe\StripeObject $interac_present
+ * @property null|\Stripe\StripeObject $klarna
+ * @property null|\Stripe\StripeObject $konbini
+ * @property null|\Stripe\StripeObject $link
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\StripeObject $oxxo
+ * @property null|\Stripe\StripeObject $p24
+ * @property null|\Stripe\StripeObject $paynow
+ * @property null|\Stripe\StripeObject $pix
+ * @property null|\Stripe\StripeObject $promptpay
+ * @property null|\Stripe\StripeObject $radar_options Options to configure Radar. See Radar Session for more information.
+ * @property null|\Stripe\StripeObject $sepa_debit
+ * @property null|\Stripe\StripeObject $sofort
+ * @property string $type The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ * @property null|\Stripe\StripeObject $us_bank_account
+ * @property null|\Stripe\StripeObject $wechat_pay
+ */
+class PaymentMethod extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'payment_method';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod the attached payment method
+ */
+ public function attach($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod the detached payment method
+ */
+ public function detach($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * A Payout object is created when you receive funds from Stripe, or
+ * when you initiate a payout to either a bank account or debit card of a connected Stripe account. You
+ * can retrieve individual payouts, as well as list all payouts. Payouts are made
+ * on varying schedules,
+ * depending on your country and industry.
+ *
+ * Related guide: Receiving Payouts.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in %s) to be transferred to your bank account or debit card.
+ * @property int $arrival_date Date the payout is expected to arrive in the bank. This factors in delays like weekends or bank holidays.
+ * @property bool $automatic Returns true if the payout was created by an automated payout schedule, and false if it was requested manually.
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the balance transaction that describes the impact of this payout on your account balance.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string|\Stripe\BankAccount|\Stripe\Card $destination ID of the bank account or card the payout was sent to.
+ * @property null|string|\Stripe\BalanceTransaction $failure_balance_transaction If the payout failed or was canceled, this will be the ID of the balance transaction that reversed the initial balance transaction, and puts the funds from the failed payout back in your balance.
+ * @property null|string $failure_code Error code explaining reason for payout failure if available. See Types of payout failures for a list of failure codes.
+ * @property null|string $failure_message Message to user further explaining reason for payout failure if available.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $method The method used to send this payout, which can be standard or instant. instant is only supported for payouts to debit cards. (See Instant payouts for marketplaces for more information.)
+ * @property null|string|\Stripe\Payout $original_payout If the payout reverses another, this is the ID of the original payout.
+ * @property null|string|\Stripe\Payout $reversed_by If the payout was reversed, this is the ID of the payout that reverses this payout.
+ * @property string $source_type The source balance this payout came from. One of card, fpx, or bank_account.
+ * @property null|string $statement_descriptor Extra information about a payout to be displayed on the user's bank statement.
+ * @property string $status Current status of the payout: paid, pending, in_transit, canceled or failed. A payout is pending until it is submitted to the bank, when it becomes in_transit. The status then changes to paid if the transaction goes through, or to failed or canceled (within 5 business days). Some failed payouts may initially show as paid but then change to failed.
+ * @property string $type Can be bank_account or card.
+ */
+class Payout extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'payout';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const FAILURE_ACCOUNT_CLOSED = 'account_closed';
+ const FAILURE_ACCOUNT_FROZEN = 'account_frozen';
+ const FAILURE_BANK_ACCOUNT_RESTRICTED = 'bank_account_restricted';
+ const FAILURE_BANK_OWNERSHIP_CHANGED = 'bank_ownership_changed';
+ const FAILURE_COULD_NOT_PROCESS = 'could_not_process';
+ const FAILURE_DEBIT_NOT_AUTHORIZED = 'debit_not_authorized';
+ const FAILURE_DECLINED = 'declined';
+ const FAILURE_INCORRECT_ACCOUNT_HOLDER_ADDRESS = 'incorrect_account_holder_address';
+ const FAILURE_INCORRECT_ACCOUNT_HOLDER_NAME = 'incorrect_account_holder_name';
+ const FAILURE_INCORRECT_ACCOUNT_HOLDER_TAX_ID = 'incorrect_account_holder_tax_id';
+ const FAILURE_INSUFFICIENT_FUNDS = 'insufficient_funds';
+ const FAILURE_INVALID_ACCOUNT_NUMBER = 'invalid_account_number';
+ const FAILURE_INVALID_CURRENCY = 'invalid_currency';
+ const FAILURE_NO_ACCOUNT = 'no_account';
+ const FAILURE_UNSUPPORTED_CARD = 'unsupported_card';
+ const METHOD_INSTANT = 'instant';
+ const METHOD_STANDARD = 'standard';
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_FAILED = 'failed';
+ const STATUS_IN_TRANSIT = 'in_transit';
+ const STATUS_PAID = 'paid';
+ const STATUS_PENDING = 'pending';
+ const TYPE_BANK_ACCOUNT = 'bank_account';
+ const TYPE_CARD = 'card';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout the canceled payout
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout the reversed payout
+ */
+ public function reverse($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * This is an object representing a person associated with a Stripe account.
+ *
+ * A platform cannot access a Standard or Express account's persons after the
+ * account starts onboarding, such as after generating an account link for the
+ * account. See the Standard onboarding
+ * or Express onboarding
+ * documentation for information about platform pre-filling and account
+ * onboarding steps.
+ *
+ * Related guide: Handling
+ * Identity Verification with the API.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $account The account the person is associated with.
+ * @property null|\Stripe\StripeObject $address
+ * @property null|\Stripe\StripeObject $address_kana The Kana variation of the person's address (Japan only).
+ * @property null|\Stripe\StripeObject $address_kanji The Kanji variation of the person's address (Japan only).
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|\Stripe\StripeObject $dob
+ * @property null|string $email The person's email address.
+ * @property null|string $first_name The person's first name.
+ * @property null|string $first_name_kana The Kana variation of the person's first name (Japan only).
+ * @property null|string $first_name_kanji The Kanji variation of the person's first name (Japan only).
+ * @property null|string[] $full_name_aliases A list of alternate names or aliases that the person is known by.
+ * @property null|\Stripe\StripeObject $future_requirements Information about the upcoming new requirements for this person, including what information needs to be collected, and by when.
+ * @property null|string $gender The person's gender (International regulations require either "male" or "female").
+ * @property null|bool $id_number_provided Whether the person's id_number was provided.
+ * @property null|bool $id_number_secondary_provided Whether the person's id_number_secondary was provided.
+ * @property null|string $last_name The person's last name.
+ * @property null|string $last_name_kana The Kana variation of the person's last name (Japan only).
+ * @property null|string $last_name_kanji The Kanji variation of the person's last name (Japan only).
+ * @property null|string $maiden_name The person's maiden name.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $nationality The country where the person is a national.
+ * @property null|string $phone The person's phone number.
+ * @property null|string $political_exposure Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
+ * @property null|\Stripe\StripeObject $registered_address
+ * @property null|\Stripe\StripeObject $relationship
+ * @property null|\Stripe\StripeObject $requirements Information about the requirements for this person, including what information needs to be collected, and by when.
+ * @property null|bool $ssn_last_4_provided Whether the last four digits of the person's Social Security number have been provided (U.S. only).
+ * @property null|\Stripe\StripeObject $verification
+ */
+class Person extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'person';
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Update;
+ const GENDER_FEMALE = 'female';
+ const GENDER_MALE = 'male';
+ const POLITICAL_EXPOSURE_EXISTING = 'existing';
+ const POLITICAL_EXPOSURE_NONE = 'none';
+ const VERIFICATION_STATUS_PENDING = 'pending';
+ const VERIFICATION_STATUS_UNVERIFIED = 'unverified';
+ const VERIFICATION_STATUS_VERIFIED = 'verified';
+ /**
+ * @return string the API URL for this Stripe account reversal
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param array|string $_id
+ * @param null|array|string $_opts
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function retrieve($_id, $_opts = null)
+ {
+ }
+ /**
+ * @param string $_id
+ * @param null|array $_params
+ * @param null|array|string $_options
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function update($_id, $_params = null, $_options = null)
+ {
+ }
+}
+/**
+ * You can now model subscriptions more flexibly using the Prices API. It replaces the Plans
+ * API and is backwards compatible to simplify your migration.
+ *
+ * Plans define the base price, currency, and billing cycle for recurring purchases
+ * of products. Products help
+ * you track inventory or provisioning, and plans help you track pricing. Different
+ * physical goods or levels of service should be represented by products, and
+ * pricing options should be represented by plans. This approach lets you change
+ * prices without having to change your provisioning scheme.
+ *
+ * For example, you might have a single "gold" product that has plans for
+ * $10/month, $100/year, €9/month, and €90/year.
+ *
+ * Related guides: Set up
+ * a subscription and more about products and prices.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $active Whether the plan can be used for new purchases.
+ * @property null|string $aggregate_usage Specifies a usage aggregation strategy for plans of usage_type=metered. Allowed values are sum for summing up all usage during a period, last_during_period for using the last usage record reported within a period, last_ever for using the last usage record ever (across period bounds) or max which uses the usage record with the maximum reported usage during a period. Defaults to sum.
+ * @property null|int $amount The unit amount in %s to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit.
+ * @property null|string $amount_decimal The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places. Only set if billing_scheme=per_unit.
+ * @property string $billing_scheme Describes how to compute the price per period. Either per_unit or tiered. per_unit indicates that the fixed amount (specified in amount) will be charged per unit in quantity (for plans with usage_type=licensed), or per unit of total usage (for plans with usage_type=metered). tiered indicates that the unit pricing will be computed using a tiering strategy as defined using the tiers and tiers_mode attributes.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string $interval The frequency at which a subscription is billed. One of day, week, month or year.
+ * @property int $interval_count The number of intervals (specified in the interval attribute) between subscription billings. For example, interval=month and interval_count=3 bills every 3 months.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $nickname A brief description of the plan, hidden from customers.
+ * @property null|string|\Stripe\Product $product The product whose pricing this plan determines.
+ * @property null|\Stripe\StripeObject[] $tiers Each element represents a pricing tier. This parameter requires billing_scheme to be set to tiered. See also the documentation for billing_scheme.
+ * @property null|string $tiers_mode Defines if the tiering price should be graduated or volume based. In volume-based tiering, the maximum quantity within a period determines the per unit price. In graduated tiering, pricing can change as the quantity grows.
+ * @property null|\Stripe\StripeObject $transform_usage Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with tiers.
+ * @property null|int $trial_period_days Default number of trial days when subscribing a customer to this plan using trial_from_plan=true.
+ * @property string $usage_type Configures how the quantity per period should be determined. Can be either metered or licensed. licensed automatically bills the quantity set when adding it to a subscription. metered aggregates the total usage based on usage records. Defaults to licensed.
+ */
+class Plan extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'plan';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * Prices define the unit cost, currency, and (optional) billing cycle for both
+ * recurring and one-time purchases of products. Products help you track
+ * inventory or provisioning, and prices help you track payment terms. Different
+ * physical goods or levels of service should be represented by products, and
+ * pricing options should be represented by prices. This approach lets you change
+ * prices without having to change your provisioning scheme.
+ *
+ * For example, you might have a single "gold" product that has prices
+ * for $10/month, $100/year, and €9 once.
+ *
+ * Related guides: Set up
+ * a subscription, create an invoice,
+ * and more about products and prices.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $active Whether the price can be used for new purchases.
+ * @property string $billing_scheme Describes how to compute the price per period. Either per_unit or tiered. per_unit indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity (for prices with usage_type=licensed), or per unit of total usage (for prices with usage_type=metered). tiered indicates that the unit pricing will be computed using a tiering strategy as defined using the tiers and tiers_mode attributes.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|\Stripe\StripeObject $currency_options Prices defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
+ * @property null|\Stripe\StripeObject $custom_unit_amount When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string $lookup_key A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $nickname A brief description of the price, hidden from customers.
+ * @property string|\Stripe\Product $product The ID of the product this price is associated with.
+ * @property null|\Stripe\StripeObject $recurring The recurring components of a price such as interval and usage_type.
+ * @property null|string $tax_behavior Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.
+ * @property null|\Stripe\StripeObject[] $tiers Each element represents a pricing tier. This parameter requires billing_scheme to be set to tiered. See also the documentation for billing_scheme.
+ * @property null|string $tiers_mode Defines if the tiering price should be graduated or volume based. In volume-based tiering, the maximum quantity within a period determines the per unit price. In graduated tiering, pricing can change as the quantity grows.
+ * @property null|\Stripe\StripeObject $transform_quantity Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with tiers.
+ * @property string $type One of one_time or recurring depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
+ * @property null|int $unit_amount The unit amount in %s to be charged, represented as a whole integer if possible. Only set if billing_scheme=per_unit.
+ * @property null|string $unit_amount_decimal The unit amount in %s to be charged, represented as a decimal string with at most 12 decimal places. Only set if billing_scheme=per_unit.
+ */
+class Price extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'price';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Search;
+ use \Stripe\ApiOperations\Update;
+ const BILLING_SCHEME_PER_UNIT = 'per_unit';
+ const BILLING_SCHEME_TIERED = 'tiered';
+ const TAX_BEHAVIOR_EXCLUSIVE = 'exclusive';
+ const TAX_BEHAVIOR_INCLUSIVE = 'inclusive';
+ const TAX_BEHAVIOR_UNSPECIFIED = 'unspecified';
+ const TIERS_MODE_GRADUATED = 'graduated';
+ const TIERS_MODE_VOLUME = 'volume';
+ const TYPE_ONE_TIME = 'one_time';
+ const TYPE_RECURRING = 'recurring';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult the price search results
+ */
+ public static function search($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Products describe the specific goods or services you offer to your customers.
+ * For example, you might offer a Standard and Premium version of your goods or
+ * service; each version would be a separate Product. They can be used in
+ * conjunction with Prices to
+ * configure pricing in Payment Links, Checkout, and Subscriptions.
+ *
+ * Related guides: Set up
+ * a subscription, share a Payment
+ * Link, accept
+ * payments with Checkout, and more about Products and Prices
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $active Whether the product is currently available for purchase.
+ * @property null|string[] $attributes A list of up to 5 attributes that each SKU can provide values for (e.g., ["color", "size"]).
+ * @property null|string $caption A short one-line description of the product, meant to be displayable to the customer. Only applicable to products of type=good.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string[] $deactivate_on An array of connect application identifiers that cannot purchase this product. Only applicable to products of type=good.
+ * @property null|string|\Stripe\Price $default_price The ID of the Price object that is the default price for this product.
+ * @property null|string $description The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
+ * @property string[] $images A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $name The product's name, meant to be displayable to the customer.
+ * @property null|\Stripe\StripeObject $package_dimensions The dimensions of this product for shipping purposes.
+ * @property null|bool $shippable Whether this product is shipped (i.e., physical goods).
+ * @property null|string $statement_descriptor Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used.
+ * @property null|string|\Stripe\TaxCode $tax_code A tax code ID.
+ * @property string $type The type of the product. The product is either of type good, which is eligible for use with Orders and SKUs, or service, which is eligible for use with Subscriptions and Plans.
+ * @property null|string $unit_label A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
+ * @property int $updated Time at which the object was last updated. Measured in seconds since the Unix epoch.
+ * @property null|string $url A URL of a publicly-accessible webpage for this product.
+ */
+class Product extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'product';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Search;
+ use \Stripe\ApiOperations\Update;
+ const TYPE_GOOD = 'good';
+ const TYPE_SERVICE = 'service';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult the product search results
+ */
+ public static function search($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * A Promotion Code represents a customer-redeemable code for a coupon. It can be used to create
+ * multiple codes for a single coupon.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $active Whether the promotion code is currently active. A promotion code is only active if the coupon is also valid.
+ * @property string $code The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer.
+ * @property \Stripe\Coupon $coupon A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to subscriptions, invoices, checkout sessions, quotes, and more. Coupons do not work with conventional one-off charges or payment intents.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string|\Stripe\Customer $customer The customer that this promotion code can be used by.
+ * @property null|int $expires_at Date at which the promotion code can no longer be redeemed.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|int $max_redemptions Maximum number of times this promotion code can be redeemed.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property \Stripe\StripeObject $restrictions
+ * @property int $times_redeemed Number of times this promotion code has been used.
+ */
+class PromotionCode extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'promotion_code';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * A Quote is a way to model prices that you'd like to provide to a customer. Once
+ * accepted, it will automatically create an invoice, subscription or subscription
+ * schedule.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount_subtotal Total before any discounts or taxes are applied.
+ * @property int $amount_total Total after discounts and taxes are applied.
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect Application that created the quote.
+ * @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Only applicable if there are no line items with recurring prices on the quote.
+ * @property null|float $application_fee_percent A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. Only applicable if there are line items with recurring prices on the quote.
+ * @property \Stripe\StripeObject $automatic_tax
+ * @property string $collection_method Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as active. Defaults to charge_automatically.
+ * @property \Stripe\StripeObject $computed
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string|\Stripe\Customer $customer The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
+ * @property null|(string|\Stripe\TaxRate)[] $default_tax_rates The tax rates applied to this quote.
+ * @property null|string $description A description that will be displayed on the quote PDF.
+ * @property (string|\Stripe\Discount)[] $discounts The discounts applied to this quote.
+ * @property int $expires_at The date on which the quote will be canceled if in open or draft status. Measured in seconds since the Unix epoch.
+ * @property null|string $footer A footer that will be displayed on the quote PDF.
+ * @property null|\Stripe\StripeObject $from_quote Details of the quote that was cloned. See the cloning documentation for more details.
+ * @property null|string $header A header that will be displayed on the quote PDF.
+ * @property null|string|\Stripe\Invoice $invoice The invoice that was created from this quote.
+ * @property null|\Stripe\StripeObject $invoice_settings All invoices will be billed using the specified settings.
+ * @property null|\Stripe\Collection<\Stripe\LineItem> $line_items A list of items the customer is being quoted for.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $number A unique number that identifies this particular quote. This number is assigned once the quote is finalized.
+ * @property null|string|\Stripe\Account $on_behalf_of The account on behalf of which to charge. See the Connect documentation for details.
+ * @property string $status The status of the quote.
+ * @property \Stripe\StripeObject $status_transitions
+ * @property null|string|\Stripe\Subscription $subscription The subscription that was created or updated from this quote.
+ * @property \Stripe\StripeObject $subscription_data
+ * @property null|string|\Stripe\SubscriptionSchedule $subscription_schedule The subscription schedule that was created or updated from this quote.
+ * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this quote belongs to.
+ * @property \Stripe\StripeObject $total_details
+ * @property null|\Stripe\StripeObject $transfer_data The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the invoices.
+ */
+class Quote extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'quote';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const COLLECTION_METHOD_CHARGE_AUTOMATICALLY = 'charge_automatically';
+ const COLLECTION_METHOD_SEND_INVOICE = 'send_invoice';
+ const STATUS_ACCEPTED = 'accepted';
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_DRAFT = 'draft';
+ const STATUS_OPEN = 'open';
+ /**
+ * @param callable $readBodyChunkCallable
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function pdf($readBodyChunkCallable, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote the accepted quote
+ */
+ public function accept($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote the canceled quote
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote the finalized quote
+ */
+ public function finalizeQuote($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem> list of LineItems
+ */
+ public static function allComputedUpfrontLineItems($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem> list of LineItems
+ */
+ public static function allLineItems($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Radar;
+
+/**
+ * An early fraud warning indicates that the card issuer has notified us that a
+ * charge may be fraudulent.
+ *
+ * Related guide: Early
+ * Fraud Warnings.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $actionable An EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later.
+ * @property string|\Stripe\Charge $charge ID of the charge this early fraud warning is for, optionally expanded.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $fraud_type The type of fraud labelled by the issuer. One of card_never_received, fraudulent_card_application, made_with_counterfeit_card, made_with_lost_card, made_with_stolen_card, misc, unauthorized_use_of_card.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the Payment Intent this early fraud warning is for, optionally expanded.
+ */
+class EarlyFraudWarning extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'radar.early_fraud_warning';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const FRAUD_TYPE_CARD_NEVER_RECEIVED = 'card_never_received';
+ const FRAUD_TYPE_FRAUDULENT_CARD_APPLICATION = 'fraudulent_card_application';
+ const FRAUD_TYPE_MADE_WITH_COUNTERFEIT_CARD = 'made_with_counterfeit_card';
+ const FRAUD_TYPE_MADE_WITH_LOST_CARD = 'made_with_lost_card';
+ const FRAUD_TYPE_MADE_WITH_STOLEN_CARD = 'made_with_stolen_card';
+ const FRAUD_TYPE_MISC = 'misc';
+ const FRAUD_TYPE_UNAUTHORIZED_USE_OF_CARD = 'unauthorized_use_of_card';
+}
+/**
+ * Value lists allow you to group values together which can then be referenced in
+ * rules.
+ *
+ * Related guide: Default Stripe
+ * Lists.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property string $alias The name of the value list for use in rules.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $created_by The name or email address of the user who created this value list.
+ * @property string $item_type The type of items in the value list. One of card_fingerprint, card_bin, email, ip_address, country, string, case_sensitive_string, or customer_id.
+ * @property \Stripe\Collection<\Stripe\Radar\ValueListItem> $list_items List of items contained within this value list.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $name The name of the value list.
+ */
+class ValueList extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'radar.value_list';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * Value list items allow you to add specific values to a given Radar value list,
+ * which can then be used in rules.
+ *
+ * Related guide: Managing List
+ * Items.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $created_by The name or email address of the user who added this item to the value list.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string $value The value of the item.
+ * @property string $value_list The identifier of the value list this item belongs to.
+ */
+class ValueListItem extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'radar.value_list_item';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+}
+namespace Stripe;
+
+/**
+ * Class RecipientTransfer.
+ *
+ * @property string $id
+ * @property string $object
+ * @property int $amount
+ * @property int $amount_reversed
+ * @property string $balance_transaction
+ * @property string $bank_account
+ * @property string $card
+ * @property int $created
+ * @property string $currency
+ * @property int $date
+ * @property string $description
+ * @property string $destination
+ * @property string $failure_code
+ * @property string $failure_message
+ * @property bool $livemode
+ * @property \Stripe\StripeObject $metadata
+ * @property string $method
+ * @property string $recipient
+ * @property \Stripe\Collection $reversals
+ * @property bool $reversed
+ * @property string $source_type
+ * @property string $statement_descriptor
+ * @property string $status
+ * @property string $type
+ */
+class RecipientTransfer extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'recipient_transfer';
+}
+/**
+ * Refund objects allow you to refund a charge that has previously
+ * been created but not yet refunded. Funds will be refunded to the credit or debit
+ * card that was originally charged.
+ *
+ * Related guide: Refunds.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount, in %s.
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact on your account balance.
+ * @property null|string|\Stripe\Charge $charge ID of the charge that was refunded.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. (Available on non-card refunds only)
+ * @property null|string|\Stripe\BalanceTransaction $failure_balance_transaction If the refund failed, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.
+ * @property null|string $failure_reason If the refund failed, the reason for refund failure if known. Possible values are lost_or_stolen_card, expired_or_canceled_card, charge_for_pending_refund_disputed, insufficient_funds, declined, merchant_request or unknown.
+ * @property null|string $instructions_email Email to which refund instructions, if required, are sent to.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\StripeObject $next_action
+ * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that was refunded.
+ * @property null|string $reason Reason for the refund, either user-provided (duplicate, fraudulent, or requested_by_customer) or generated by Stripe internally (expired_uncaptured_charge).
+ * @property null|string $receipt_number This is the transaction number that appears on email receipts sent for this refund.
+ * @property null|string|\Stripe\TransferReversal $source_transfer_reversal The transfer reversal that is associated with the refund. Only present if the charge came from another Stripe account. See the Connect documentation for details.
+ * @property null|string $status Status of the refund. For credit card refunds, this can be pending, succeeded, or failed. For other types of refunds, it can be pending, requires_action, succeeded, failed, or canceled. Refer to our refunds documentation for more details.
+ * @property null|string|\Stripe\TransferReversal $transfer_reversal If the accompanying transfer was reversed, the transfer reversal object. Only applicable if the charge was created using the destination parameter.
+ */
+class Refund extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'refund';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const FAILURE_REASON_EXPIRED_OR_CANCELED_CARD = 'expired_or_canceled_card';
+ const FAILURE_REASON_LOST_OR_STOLEN_CARD = 'lost_or_stolen_card';
+ const FAILURE_REASON_UNKNOWN = 'unknown';
+ const REASON_DUPLICATE = 'duplicate';
+ const REASON_EXPIRED_UNCAPTURED_CHARGE = 'expired_uncaptured_charge';
+ const REASON_FRAUDULENT = 'fraudulent';
+ const REASON_REQUESTED_BY_CUSTOMER = 'requested_by_customer';
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_FAILED = 'failed';
+ const STATUS_PENDING = 'pending';
+ const STATUS_REQUIRES_ACTION = 'requires_action';
+ const STATUS_SUCCEEDED = 'succeeded';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund the canceled refund
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Reporting;
+
+/**
+ * The Report Run object represents an instance of a report type generated with
+ * specific run parameters. Once the object is created, Stripe begins processing
+ * the report. When the report has finished running, it will give you a reference
+ * to a file where you can retrieve your results. For an overview, see API Access to
+ * Reports.
+ *
+ * Note that certain report types can only be run based on your live-mode data (not
+ * test-mode data), and will error when queried without a live-mode API key.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $error If something should go wrong during the run, a message about the failure (populated when status=failed).
+ * @property bool $livemode true if the report is run on live mode data and false if it is run on test mode data.
+ * @property \Stripe\StripeObject $parameters
+ * @property string $report_type The ID of the report type to run, such as "balance.summary.1".
+ * @property null|\Stripe\File $result The file object representing the result of the report run (populated when status=succeeded).
+ * @property string $status Status of this report run. This will be pending when the run is initially created. When the run finishes, this will be set to succeeded and the result field will be populated. Rarely, we may encounter an error, at which point this will be set to failed and the error field will be populated.
+ * @property null|int $succeeded_at Timestamp at which this run successfully finished (populated when status=succeeded). Measured in seconds since the Unix epoch.
+ */
+class ReportRun extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'reporting.report_run';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+}
+/**
+ * The Report Type resource corresponds to a particular type of report, such as the
+ * "Activity summary" or "Itemized payouts" reports. These
+ * objects are identified by an ID belonging to a set of enumerated values. See API Access to Reports
+ * documentation for those Report Type IDs, along with required and optional
+ * parameters.
+ *
+ * Note that certain report types can only be run based on your live-mode data (not
+ * test-mode data), and will error when queried without a live-mode API key.
+ *
+ * @property string $id The ID of the Report Type, such as balance.summary.1.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $data_available_end Most recent time for which this Report Type is available. Measured in seconds since the Unix epoch.
+ * @property int $data_available_start Earliest time for which this Report Type is available. Measured in seconds since the Unix epoch.
+ * @property null|string[] $default_columns List of column names that are included by default when this Report Type gets run. (If the Report Type doesn't support the columns parameter, this will be null.)
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string $name Human-readable name of the Report Type
+ * @property int $updated When this Report Type was latest updated. Measured in seconds since the Unix epoch.
+ * @property int $version Version of the Report Type. Different versions report with the same ID will have the same purpose, but may take different run parameters or have different result schemas.
+ */
+class ReportType extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'reporting.report_type';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+}
+namespace Stripe;
+
+/**
+ * Class RequestTelemetry.
+ *
+ * Tracks client request telemetry
+ */
+class RequestTelemetry
+{
+ public $requestId;
+ public $requestDuration;
+ /**
+ * Initialize a new telemetry object.
+ *
+ * @param string $requestId the request's request ID
+ * @param int $requestDuration the request's duration in milliseconds
+ */
+ public function __construct($requestId, $requestDuration)
+ {
+ }
+}
+/**
+ * Reviews can be used to supplement automated fraud detection with human
+ * expertise.
+ *
+ * Learn more about Radar and reviewing payments here.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $billing_zip The ZIP or postal code of the card used, if applicable.
+ * @property null|string|\Stripe\Charge $charge The charge associated with this review.
+ * @property null|string $closed_reason The reason the review was closed, or null if it has not yet been closed. One of approved, refunded, refunded_as_fraud, disputed, or redacted.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $ip_address The IP address where the payment originated.
+ * @property null|\Stripe\StripeObject $ip_address_location Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property bool $open If true, the review needs action.
+ * @property string $opened_reason The reason the review was opened. One of rule or manual.
+ * @property null|string|\Stripe\PaymentIntent $payment_intent The PaymentIntent ID associated with this review, if one exists.
+ * @property string $reason The reason the review is currently open or closed. One of rule, manual, approved, refunded, refunded_as_fraud, disputed, or redacted.
+ * @property null|\Stripe\StripeObject $session Information related to the browsing session of the user who initiated the payment.
+ */
+class Review extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'review';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ /**
+ * Possible string representations of the current, the opening or the closure reason of the review.
+ * Not all of these enumeration apply to all of the ´reason´ fields. Please consult the Review object to
+ * determine where these are apply.
+ *
+ * @see https://stripe.com/docs/api/radar/reviews/object
+ */
+ const REASON_APPROVED = 'approved';
+ const REASON_DISPUTED = 'disputed';
+ const REASON_MANUAL = 'manual';
+ const REASON_REFUNDED = 'refunded';
+ const REASON_REFUNDED_AS_FRAUD = 'refunded_as_fraud';
+ const REASON_RULE = 'rule';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Review the approved review
+ */
+ public function approve($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Search results for an API resource.
+ *
+ * This behaves similarly to Collection in that they both wrap
+ * around a list of objects and provide pagination. However the
+ * SearchResult object paginates by relying on a
+ * next_page token included in the response rather than using
+ * object IDs and a starting_before/ending_after
+ * parameter. Thus, SearchResult only supports forwards pagination.
+ *
+ * The {@see $total_count} property is only available when
+ * the `expand` parameter contains `total_count`.
+ *
+ * @template TStripeObject of StripeObject
+ * @template-implements \IteratorAggregate
+ *
+ * @property string $object
+ * @property string $url
+ * @property string $next_page
+ * @property int $total_count
+ * @property bool $has_more
+ * @property TStripeObject[] $data
+ */
+class SearchResult extends \Stripe\StripeObject implements \Countable, \IteratorAggregate
+{
+ const OBJECT_NAME = 'search_result';
+ use \Stripe\ApiOperations\Request;
+ /** @var array */
+ protected $filters = [];
+ /**
+ * @return string the base URL for the given class
+ */
+ public static function baseUrl()
+ {
+ }
+ /**
+ * Returns the filters.
+ *
+ * @return array the filters
+ */
+ public function getFilters()
+ {
+ }
+ /**
+ * Sets the filters, removing paging options.
+ *
+ * @param array $filters the filters
+ */
+ public function setFilters($filters)
+ {
+ }
+ /**
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($k)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws Exception\ApiErrorException
+ *
+ * @return SearchResult
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * @return int the number of objects in the current page
+ */
+ #[\ReturnTypeWillChange]
+ public function count()
+ {
+ }
+ /**
+ * @return \ArrayIterator an iterator that can be used to iterate
+ * across objects in the current page
+ */
+ #[\ReturnTypeWillChange]
+ public function getIterator()
+ {
+ }
+ /**
+ * @return \Generator|TStripeObject[] A generator that can be used to
+ * iterate across all objects across all pages. As page boundaries are
+ * encountered, the next page will be fetched automatically for
+ * continued iteration.
+ */
+ public function autoPagingIterator()
+ {
+ }
+ /**
+ * Returns an empty set of search results. This is returned from
+ * {@see nextPage()} when we know that there isn't a next page in order to
+ * replicate the behavior of the API when it attempts to return a page
+ * beyond the last.
+ *
+ * @param null|array|string $opts
+ *
+ * @return SearchResult
+ */
+ public static function emptySearchResult($opts = null)
+ {
+ }
+ /**
+ * Returns true if the page object contains no element.
+ *
+ * @return bool
+ */
+ public function isEmpty()
+ {
+ }
+ /**
+ * Fetches the next page in the resource list (if there is one).
+ *
+ * This method will try to respect the limit of the current page. If none
+ * was given, the default limit will be fetched again.
+ *
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @return SearchResult
+ */
+ public function nextPage($params = null, $opts = null)
+ {
+ }
+ /**
+ * Gets the first item from the current page. Returns `null` if the current page is empty.
+ *
+ * @return null|TStripeObject
+ */
+ public function first()
+ {
+ }
+ /**
+ * Gets the last item from the current page. Returns `null` if the current page is empty.
+ *
+ * @return null|TStripeObject
+ */
+ public function last()
+ {
+ }
+}
+namespace Stripe\Service;
+
+/**
+ * Abstract base class for all services.
+ */
+abstract class AbstractService
+{
+ /**
+ * @var \Stripe\StripeClientInterface
+ */
+ protected $client;
+ /**
+ * @var \Stripe\StripeStreamingClientInterface
+ */
+ protected $streamingClient;
+ /**
+ * Initializes a new instance of the {@link AbstractService} class.
+ *
+ * @param \Stripe\StripeClientInterface $client
+ */
+ public function __construct($client)
+ {
+ }
+ /**
+ * Gets the client used by this service to send requests.
+ *
+ * @return \Stripe\StripeClientInterface
+ */
+ public function getClient()
+ {
+ }
+ /**
+ * Gets the client used by this service to send requests.
+ *
+ * @return \Stripe\StripeStreamingClientInterface
+ */
+ public function getStreamingClient()
+ {
+ }
+ protected function request($method, $path, $params, $opts)
+ {
+ }
+ protected function requestStream($method, $path, $readBodyChunkCallable, $params, $opts)
+ {
+ }
+ protected function requestCollection($method, $path, $params, $opts)
+ {
+ }
+ protected function requestSearchResult($method, $path, $params, $opts)
+ {
+ }
+ protected function buildPath($basePath, ...$ids)
+ {
+ }
+}
+/**
+ * Abstract base class for all service factories used to expose service
+ * instances through {@link \Stripe\StripeClient}.
+ *
+ * Service factories serve two purposes:
+ *
+ * 1. Expose properties for all services through the `__get()` magic method.
+ * 2. Lazily initialize each service instance the first time the property for
+ * a given service is used.
+ */
+abstract class AbstractServiceFactory
+{
+ /**
+ * @param \Stripe\StripeClientInterface $client
+ */
+ public function __construct($client)
+ {
+ }
+ /**
+ * @param string $name
+ *
+ * @return null|string
+ */
+ protected abstract function getServiceClass($name);
+ /**
+ * @param string $name
+ *
+ * @return null|AbstractService|AbstractServiceFactory
+ */
+ public function __get($name)
+ {
+ }
+ /**
+ * @param string $name
+ *
+ * @return null|AbstractService|AbstractServiceFactory
+ */
+ public function getService($name)
+ {
+ }
+}
+class AccountLinkService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Creates an AccountLink object that includes a single-use Stripe URL that the
+ * platform can redirect their user to in order to take them through the Connect
+ * Onboarding flow.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\AccountLink
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+}
+class AccountService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Account>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a list of capabilities associated with the account. The capabilities are
+ * returned sorted by creation date, with the most recent capability appearing
+ * first.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Capability>
+ */
+ public function allCapabilities($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * List external accounts for an account.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card>
+ */
+ public function allExternalAccounts($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a list of people associated with the account’s legal entity. The people
+ * are returned sorted by creation date, with the most recent people appearing
+ * first.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Person>
+ */
+ public function allPersons($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * With Connect, you can create Stripe accounts for
+ * your users. To do this, you’ll first need to register your
+ * platform.
+ *
+ * If you’ve already collected information for your connected accounts, you can pre-fill that information
+ * when creating the account. Connect Onboarding won’t ask for the pre-filled
+ * information during account onboarding. You can pre-fill any information on the
+ * account.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Create an external account for a given account.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public function createExternalAccount($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a single-use login link for an Express account to access their Stripe
+ * dashboard.
+ *
+ * You may only create login links for Express accounts connected to your
+ * platform.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\LoginLink
+ */
+ public function createLoginLink($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new person.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public function createPerson($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * With Connect, you can delete accounts you manage.
+ *
+ * Accounts created using test-mode keys can be deleted at any time. Standard
+ * accounts created using live-mode keys cannot be deleted. Custom or Express
+ * accounts created using live-mode keys can only be deleted once all balances are
+ * zero.
+ *
+ * If you want to delete your own account, use the account information tab in your
+ * account settings instead.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Delete a specified external account for a given account.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public function deleteExternalAccount($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes an existing person’s relationship to the account’s legal entity. Any
+ * person with a relationship for an account can be deleted through the API, except
+ * if the person is the account_opener. If your integration is using
+ * the executive parameter, you cannot delete the only verified
+ * executive on file.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public function deletePerson($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * With Connect, you may flag accounts as suspicious.
+ *
+ * Test-mode Custom and Express accounts can be rejected at any time. Accounts
+ * created using live-mode keys may only be rejected once all balances are zero.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function reject($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves information about the specified Account Capability.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Capability
+ */
+ public function retrieveCapability($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieve a specified external account for a given account.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public function retrieveExternalAccount($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves an existing person.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public function retrievePerson($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a connected account by setting the
+ * values of the parameters passed. Any parameters not provided are left unchanged.
+ *
+ * For Custom accounts, you can update any information on the account. For other
+ * accounts, you can update all information until that account has started to go
+ * through Connect Onboarding. Once you create an Account Link for a Standard or Express
+ * account, some parameters can no longer be changed. These are marked as
+ * Custom Only or Custom and Express below.
+ *
+ * To update your own account, use the Dashboard. Refer to our Connect documentation to learn more
+ * about updating accounts.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates an existing Account Capability.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Capability
+ */
+ public function updateCapability($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the metadata, account holder name, account holder type of a bank account
+ * belonging to a Custom account, and
+ * optionally sets it as the default for its currency. Other bank account details
+ * are not editable by design.
+ *
+ * You can re-enable a disabled bank account by performing an update call without
+ * providing any arguments or changes.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public function updateExternalAccount($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates an existing person.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public function updatePerson($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an account.
+ *
+ * @param null|string $id
+ * @param null|array $params
+ * @param null|array|StripeUtilRequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function retrieve($id = null, $params = null, $opts = null)
+ {
+ }
+}
+class ApplePayDomainService extends \Stripe\Service\AbstractService
+{
+ /**
+ * List apple pay domains.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ApplePayDomain>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Create an apple pay domain.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplePayDomain
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Delete an apple pay domain.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplePayDomain
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieve an apple pay domain.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplePayDomain
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class ApplicationFeeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of application fees you’ve previously collected. The application
+ * fees are returned in sorted order, with the most recent fees appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ApplicationFee>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * You can see a list of the refunds belonging to a specific application fee. Note
+ * that the 10 most recent refunds are always available by default on the
+ * application fee object. If you need more than those 10, you can use this API
+ * method and the limit and starting_after parameters to
+ * page through additional refunds.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund>
+ */
+ public function allRefunds($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Refunds an application fee that has previously been collected but not yet
+ * refunded. Funds will be refunded to the Stripe account from which the fee was
+ * originally collected.
+ *
+ * You can optionally refund only part of an application fee. You can do so
+ * multiple times, until the entire fee has been refunded.
+ *
+ * Once entirely refunded, an application fee can’t be refunded again. This method
+ * will raise an error when called on an already-refunded application fee, or when
+ * trying to refund more money than is left on an application fee.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public function createRefund($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an application fee that your account has collected. The
+ * same information is returned when refunding the application fee.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFee
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * By default, you can see the 10 most recent refunds stored directly on the
+ * application fee object, but you can also retrieve details about a specific
+ * refund stored on the application fee.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public function retrieveRefund($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified application fee refund by setting the values of the
+ * parameters passed. Any parameters not provided will be left unchanged.
+ *
+ * This request only accepts metadata as an argument.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public function updateRefund($parentId, $id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Apps;
+
+/**
+ * Service factory class for API resources in the Apps namespace.
+ *
+ * @property SecretService $secrets
+ */
+class AppsServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class SecretService extends \Stripe\Service\AbstractService
+{
+ /**
+ * List all secrets stored on the given scope.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Apps\Secret>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Create or replace a secret in the secret store.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Apps\Secret
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes a secret from the secret store by name and scope.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Apps\Secret
+ */
+ public function deleteWhere($params = null, $opts = null)
+ {
+ }
+ /**
+ * Finds a secret in the secret store by name and scope.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Apps\Secret
+ */
+ public function find($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class BalanceService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Retrieves the current account balance, based on the authentication that was used
+ * to make the request. For a sample request, see Accounting
+ * for negative balances.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Balance
+ */
+ public function retrieve($params = null, $opts = null)
+ {
+ }
+}
+class BalanceTransactionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of transactions that have contributed to the Stripe account
+ * balance (e.g., charges, transfers, and so forth). The transactions are returned
+ * in sorted order, with the most recent transactions appearing first.
+ *
+ * Note that this endpoint was previously called “Balance history” and used the
+ * path /v1/balance/history.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BalanceTransaction>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the balance transaction with the given ID.
+ *
+ * Note that this endpoint previously used the path
+ * /v1/balance/history/:id.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BalanceTransaction
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\BillingPortal;
+
+/**
+ * Service factory class for API resources in the BillingPortal namespace.
+ *
+ * @property ConfigurationService $configurations
+ * @property SessionService $sessions
+ */
+class BillingPortalServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class ConfigurationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of configurations that describe the functionality of the customer
+ * portal.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BillingPortal\Configuration>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a configuration that describes the functionality and behavior of a
+ * PortalSession.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a configuration that describes the functionality of the customer
+ * portal.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a configuration that describes the functionality of the customer portal.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class SessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Creates a session of the customer portal.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Session
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class ChargeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of charges you’ve previously created. The charges are returned in
+ * sorted order, with the most recent charges appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Charge>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Capture the payment of an existing, uncaptured, charge. This is the second half
+ * of the two-step payment flow, where first you created a
+ * charge with the capture option set to false.
+ *
+ * Uncaptured payments expire a set number of days after they are created (7 by default). If they are not captured
+ * by that point in time, they will be marked as refunded and will no longer be
+ * capturable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge
+ */
+ public function capture($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * To charge a credit card or other payment source, you create a
+ * Charge object. If your API key is in test mode, the supplied
+ * payment source (e.g., card) won’t actually be charged, although everything else
+ * will occur as if in live mode. (Stripe assumes that the charge would have
+ * completed successfully).
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of a charge that has previously been created. Supply the
+ * unique charge ID that was returned from your previous request, and Stripe will
+ * return the corresponding charge information. The same information is returned
+ * when creating or refunding the charge.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Search for charges you’ve previously created using Stripe’s Search Query Language. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Charge>
+ */
+ public function search($params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified charge by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Checkout;
+
+/**
+ * Service factory class for API resources in the Checkout namespace.
+ *
+ * @property SessionService $sessions
+ */
+class CheckoutServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class SessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Checkout Sessions.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Checkout\Session>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * When retrieving a Checkout Session, there is an includable
+ * line_items property containing the first handful of those
+ * items. There is also a URL where you can retrieve the full (paginated) list of
+ * line items.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem>
+ */
+ public function allLineItems($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a Session object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Checkout\Session
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * A Session can be expired when it is in one of these statuses: open.
+ *
+ * After it expires, a customer can’t complete a Session and customers loading the
+ * Session see a message saying the Session is expired.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Checkout\Session
+ */
+ public function expire($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a Session object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Checkout\Session
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service;
+
+/**
+ * Service factory class for API resources in the root namespace.
+ *
+ * @property AccountLinkService $accountLinks
+ * @property AccountService $accounts
+ * @property ApplePayDomainService $applePayDomains
+ * @property ApplicationFeeService $applicationFees
+ * @property Apps\AppsServiceFactory $apps
+ * @property BalanceService $balance
+ * @property BalanceTransactionService $balanceTransactions
+ * @property BillingPortal\BillingPortalServiceFactory $billingPortal
+ * @property ChargeService $charges
+ * @property Checkout\CheckoutServiceFactory $checkout
+ * @property CountrySpecService $countrySpecs
+ * @property CouponService $coupons
+ * @property CreditNoteService $creditNotes
+ * @property CustomerService $customers
+ * @property DisputeService $disputes
+ * @property EphemeralKeyService $ephemeralKeys
+ * @property EventService $events
+ * @property ExchangeRateService $exchangeRates
+ * @property FileLinkService $fileLinks
+ * @property FileService $files
+ * @property FinancialConnections\FinancialConnectionsServiceFactory $financialConnections
+ * @property Identity\IdentityServiceFactory $identity
+ * @property InvoiceItemService $invoiceItems
+ * @property InvoiceService $invoices
+ * @property Issuing\IssuingServiceFactory $issuing
+ * @property MandateService $mandates
+ * @property OAuthService $oauth
+ * @property PaymentIntentService $paymentIntents
+ * @property PaymentLinkService $paymentLinks
+ * @property PaymentMethodService $paymentMethods
+ * @property PayoutService $payouts
+ * @property PlanService $plans
+ * @property PriceService $prices
+ * @property ProductService $products
+ * @property PromotionCodeService $promotionCodes
+ * @property QuoteService $quotes
+ * @property Radar\RadarServiceFactory $radar
+ * @property RefundService $refunds
+ * @property Reporting\ReportingServiceFactory $reporting
+ * @property ReviewService $reviews
+ * @property SetupAttemptService $setupAttempts
+ * @property SetupIntentService $setupIntents
+ * @property ShippingRateService $shippingRates
+ * @property Sigma\SigmaServiceFactory $sigma
+ * @property SourceService $sources
+ * @property SubscriptionItemService $subscriptionItems
+ * @property SubscriptionService $subscriptions
+ * @property SubscriptionScheduleService $subscriptionSchedules
+ * @property TaxCodeService $taxCodes
+ * @property TaxRateService $taxRates
+ * @property Terminal\TerminalServiceFactory $terminal
+ * @property TestHelpers\TestHelpersServiceFactory $testHelpers
+ * @property TokenService $tokens
+ * @property TopupService $topups
+ * @property TransferService $transfers
+ * @property Treasury\TreasuryServiceFactory $treasury
+ * @property WebhookEndpointService $webhookEndpoints
+ */
+class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class CountrySpecService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Lists all Country Spec objects available in the API.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CountrySpec>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a Country Spec for a given Country code.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CountrySpec
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class CouponService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your coupons.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Coupon>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * You can create coupons easily via the coupon management page of the
+ * Stripe dashboard. Coupon creation is also accessible via the API if you need to
+ * create coupons on the fly.
+ *
+ * A coupon has either a percent_off or an amount_off and
+ * currency. If you set an amount_off, that amount will
+ * be subtracted from any invoice’s subtotal. For example, an invoice with a
+ * subtotal of 100 will have a final total of
+ * 0 if a coupon with an amount_off of
+ * 200 is applied to it and an invoice with a subtotal of
+ * 300 will have a final total of 100 if
+ * a coupon with an amount_off of 200 is applied to
+ * it.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Coupon
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * You can delete coupons via the coupon management page of the
+ * Stripe dashboard. However, deleting a coupon does not affect any customers who
+ * have already applied the coupon; it means that new customers can’t redeem the
+ * coupon. You can also delete coupons via the API.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Coupon
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the coupon with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Coupon
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the metadata of a coupon. Other coupon details (currency, duration,
+ * amount_off) are, by design, not editable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Coupon
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class CreditNoteService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of credit notes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CreditNote>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * When retrieving a credit note, you’ll get a lines property
+ * containing the the first handful of those items. There is also a URL where you
+ * can retrieve the full (paginated) list of line items.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CreditNoteLineItem>
+ */
+ public function allLines($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Issue a credit note to adjust the amount of a finalized invoice. For a
+ * status=open invoice, a credit note reduces its
+ * amount_due. For a status=paid invoice, a credit note
+ * does not affect its amount_due. Instead, it can result in any
+ * combination of the following:.
+ *
+ *
Refund: create a new refund (using refund_amount) or link
+ * an existing refund (using refund).
Customer balance
+ * credit: credit the customer’s balance (using credit_amount) which
+ * will be automatically applied to their next invoice when it’s finalized.
+ *
Outside of Stripe credit: record the amount that is or will be credited
+ * outside of Stripe (using out_of_band_amount).
+ *
+ * For post-payment credit notes the sum of the refund, credit and outside of
+ * Stripe amounts must equal the credit note total.
+ *
+ * You may issue multiple credit notes for an invoice. Each credit note will
+ * increment the invoice’s pre_payment_credit_notes_amount or
+ * post_payment_credit_notes_amount depending on its
+ * status at the time of credit note creation.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Get a preview of a credit note without creating it.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function preview($params = null, $opts = null)
+ {
+ }
+ /**
+ * When retrieving a credit note preview, you’ll get a lines
+ * property containing the first handful of those items. This URL you can retrieve
+ * the full (paginated) list of line items.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CreditNoteLineItem>
+ */
+ public function previewLines($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the credit note object with the given identifier.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates an existing credit note.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Marks a credit note as void. Learn more about voiding credit notes.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function voidCreditNote($id, $params = null, $opts = null)
+ {
+ }
+}
+class CustomerService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your customers. The customers are returned sorted by creation
+ * date, with the most recent customers appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Customer>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a list of transactions that updated the customer’s balances.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CustomerBalanceTransaction>
+ */
+ public function allBalanceTransactions($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a list of transactions that modified the customer’s cash balance.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CustomerCashBalanceTransaction>
+ */
+ public function allCashBalanceTransactions($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a list of PaymentMethods for a given Customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentMethod>
+ */
+ public function allPaymentMethods($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * List sources for a specified customer.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card|\Stripe\Source>
+ */
+ public function allSources($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a list of tax IDs for a customer.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TaxId>
+ */
+ public function allTaxIds($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new customer object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates an immutable transaction that updates the customer’s credit balance.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public function createBalanceTransaction($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieve funding instructions for a customer cash balance. If funding
+ * instructions do not yet exist for the customer, new funding instructions will be
+ * created. If funding instructions have already been created for a given customer,
+ * the same funding instructions will be retrieved. In other words, we will return
+ * the same funding instructions each time.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function createFundingInstructions($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * When you create a new credit card, you must specify a customer or recipient on
+ * which to create it.
+ *
+ * If the card’s owner has no default card, then the new card will become the
+ * default. However, if the owner already has a default, then it will not change.
+ * To change the default, you should update the
+ * customer to have a new default_source.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public function createSource($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new TaxID object for a customer.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public function createTaxId($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Permanently deletes a customer. It cannot be undone. Also immediately cancels
+ * any active subscriptions on the customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Removes the currently applied discount on a customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function deleteDiscount($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public function deleteSource($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes an existing TaxID object.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public function deleteTaxId($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a Customer object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a specific customer balance transaction that updated the customer’s balances.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public function retrieveBalanceTransaction($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a customer’s cash balance.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CashBalance
+ */
+ public function retrieveCashBalance($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a specific cash balance transaction, which updated the customer’s cash balance.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerCashBalanceTransaction
+ */
+ public function retrieveCashBalanceTransaction($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a PaymentMethod object for a given Customer.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function retrievePaymentMethod($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieve a specified source for a given customer.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public function retrieveSource($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the TaxID object with the given identifier.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public function retrieveTaxId($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Search for customers you’ve previously created using Stripe’s Search Query Language. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Customer>
+ */
+ public function search($params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified customer by setting the values of the parameters passed.
+ * Any parameters not provided will be left unchanged. For example, if you pass the
+ * source parameter, that becomes the customer’s active source
+ * (e.g., a card) to be used for all charges in the future. When you update a
+ * customer to a new valid card source by passing the source
+ * parameter: for each of the customer’s current subscriptions, if the subscription
+ * bills automatically and is in the past_due state, then the latest
+ * open invoice for the subscription with automatic collection enabled will be
+ * retried. This retry will not count as an automatic retry, and will not affect
+ * the next regularly scheduled payment for the invoice. Changing the
+ * default_source for a customer will not trigger this behavior.
+ *
+ * This request accepts mostly the same arguments as the customer creation call.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Most credit balance transaction fields are immutable, but you may update its
+ * description and metadata.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public function updateBalanceTransaction($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Changes the settings on a customer’s cash balance.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CashBalance
+ */
+ public function updateCashBalance($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public function updateSource($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card|\Stripe\Source
+ */
+ public function verifySource($parentId, $id, $params = null, $opts = null)
+ {
+ }
+}
+class DisputeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your disputes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Dispute>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Closing the dispute for a charge indicates that you do not have any evidence to
+ * submit and are essentially dismissing the dispute, acknowledging it as lost.
+ *
+ * The status of the dispute will change from needs_response to
+ * lost. Closing a dispute is irreversible.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Dispute
+ */
+ public function close($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the dispute with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Dispute
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * When you get a dispute, contacting your customer is always the best first step.
+ * If that doesn’t work, you can submit evidence to help us resolve the dispute in
+ * your favor. You can do this in your dashboard, but if you prefer,
+ * you can use the API to submit evidence programmatically.
+ *
+ * Depending on your dispute type, different evidence fields will give you a better
+ * chance of winning your dispute. To figure out which evidence fields to provide,
+ * see our guide to dispute types.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Dispute
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class EphemeralKeyService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Invalidates a short-lived API key for a given resource.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\EphemeralKey
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a short-lived API key for a given resource.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\EphemeralKey
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+}
+class EventService extends \Stripe\Service\AbstractService
+{
+ /**
+ * List events, going back up to 30 days. Each event data is rendered according to
+ * Stripe API version at its creation time, specified in event objectapi_version
+ * attribute (not according to your current Stripe API version or
+ * Stripe-Version header).
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Event>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an event. Supply the unique identifier of the event,
+ * which you might have received in a webhook.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Event
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class ExchangeRateService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of objects that contain the rates at which foreign currencies are
+ * converted to one another. Only shows the currencies for which Stripe supports.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ExchangeRate>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the exchange rates from the given currency to every supported
+ * currency.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ExchangeRate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class FileLinkService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of file links.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\FileLink>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new file link object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FileLink
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the file link with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FileLink
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates an existing file link object. Expired links can no longer be updated.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FileLink
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class FileService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of the files that your account has access to. The files are
+ * returned sorted by creation date, with the most recently created files appearing
+ * first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\File>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing file object. Supply the unique file ID from
+ * a file, and Stripe will return the corresponding file object. To access file
+ * contents, see the File Upload
+ * Guide.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\File
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Create a file.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\File
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\FinancialConnections;
+
+class AccountService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Financial Connections Account objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\FinancialConnections\Account>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Lists all owners for a given Account.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\FinancialConnections\AccountOwner>
+ */
+ public function allOwners($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Disables your access to a Financial Connections Account. You will
+ * no longer be able to access data associated with the account (e.g. balances,
+ * transactions).
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Account
+ */
+ public function disconnect($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Refreshes the data associated with a Financial Connections Account.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Account
+ */
+ public function refresh($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an Financial Connections Account.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Account
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the FinancialConnections namespace.
+ *
+ * @property AccountService $accounts
+ * @property SessionService $sessions
+ */
+class FinancialConnectionsServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class SessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * To launch the Financial Connections authorization flow, create a
+ * Session. The session’s client_secret can be used to
+ * launch the flow using Stripe.js.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Session
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of a Financial Connections Session.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Session
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Identity;
+
+/**
+ * Service factory class for API resources in the Identity namespace.
+ *
+ * @property VerificationReportService $verificationReports
+ * @property VerificationSessionService $verificationSessions
+ */
+class IdentityServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class VerificationReportService extends \Stripe\Service\AbstractService
+{
+ /**
+ * List all verification reports.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Identity\VerificationReport>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves an existing VerificationReport.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationReport
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class VerificationSessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of VerificationSessions.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Identity\VerificationSession>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * A VerificationSession object can be canceled when it is in
+ * requires_inputstatus.
+ *
+ * Once canceled, future submission attempts are disabled. This cannot be undone.
+ * Learn more.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a VerificationSession object.
+ *
+ * After the VerificationSession is created, display a verification modal using the
+ * session client_secret or send your users to the session’s
+ * url.
+ *
+ * If your API key is in test mode, verification checks won’t actually process,
+ * though everything else will occur as if in live mode.
+ *
+ * Related guide: Verify your
+ * users’ identity documents.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Redact a VerificationSession to remove all collected information from Stripe.
+ * This will redact the VerificationSession and all objects related to it,
+ * including VerificationReports, Events, request logs, etc.
+ *
+ * A VerificationSession object can be redacted when it is in
+ * requires_input or verifiedstatus. Redacting a
+ * VerificationSession in requires_action state will automatically
+ * cancel it.
+ *
+ * The redaction process may take up to four days. When the redaction process is in
+ * progress, the VerificationSession’s redaction.status field will be
+ * set to processing; when the process is finished, it will change to
+ * redacted and an identity.verification_session.redacted
+ * event will be emitted.
+ *
+ * Redaction is irreversible. Redacted objects are still accessible in the Stripe
+ * API, but all the fields that contain personal data will be replaced by the
+ * string [redacted] or a similar placeholder. The
+ * metadata field will also be erased. Redacted objects cannot be
+ * updated or used for any purpose.
+ *
+ * Learn more.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function redact($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of a VerificationSession that was previously created.
+ *
+ * When the session status is requires_input, you can use this method
+ * to retrieve a valid client_secret or url to allow
+ * re-submission.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a VerificationSession object.
+ *
+ * When the session status is requires_input, you can use this method
+ * to update the verification check and options.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class InvoiceItemService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your invoice items. Invoice items are returned sorted by
+ * creation date, with the most recently created invoice items appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\InvoiceItem>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates an item to be added to a draft invoice (up to 250 items per invoice). If
+ * no invoice is specified, the item will be on the next invoice created for the
+ * customer specified.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceItem
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes an invoice item, removing it from an invoice. Deleting invoice items is
+ * only possible when they’re not attached to invoices, or if it’s attached to a
+ * draft invoice.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceItem
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the invoice item with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceItem
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the amount or description of an invoice item on an upcoming invoice.
+ * Updating an invoice item is only possible before the invoice it’s attached to is
+ * closed.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceItem
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class InvoiceService extends \Stripe\Service\AbstractService
+{
+ /**
+ * You can list all invoices, or list the invoices for a specific customer. The
+ * invoices are returned sorted by creation date, with the most recently created
+ * invoices appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Invoice>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * When retrieving an invoice, you’ll get a lines property
+ * containing the total count of line items and the first handful of those items.
+ * There is also a URL where you can retrieve the full (paginated) list of line
+ * items.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\InvoiceLineItem>
+ */
+ public function allLines($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * This endpoint creates a draft invoice for a given customer. The invoice remains
+ * a draft until you finalize the invoice, which
+ * allows you to pay or send
+ * the invoice to your customers.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to
+ * delete invoices that are no longer in a draft state will fail; once an invoice
+ * has been finalized or if an invoice is for a subscription, it must be voided.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Stripe automatically finalizes drafts before sending and attempting payment on
+ * invoices. However, if you’d like to finalize a draft invoice manually, you can
+ * do so using this method.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function finalizeInvoice($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Marking an invoice as uncollectible is useful for keeping track of bad debts
+ * that can be written off for accounting purposes.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function markUncollectible($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Stripe automatically creates and then attempts to collect payment on invoices
+ * for customers on subscriptions according to your subscriptions
+ * settings. However, if you’d like to attempt payment on an invoice out of the
+ * normal collection schedule or for some other reason, you can do so.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function pay($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the invoice with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Search for invoices you’ve previously created using Stripe’s Search Query Language. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Invoice>
+ */
+ public function search($params = null, $opts = null)
+ {
+ }
+ /**
+ * Stripe will automatically send invoices to customers according to your subscriptions
+ * settings. However, if you’d like to manually send an invoice to your
+ * customer out of the normal schedule, you can do so. When sending invoices that
+ * have already been paid, there will be no reference to the payment in the email.
+ *
+ * Requests made in test-mode result in no emails being sent, despite sending an
+ * invoice.sent event.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function sendInvoice($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * At any time, you can preview the upcoming invoice for a customer. This will show
+ * you all the charges that are pending, including subscription renewal charges,
+ * invoice item charges, etc. It will also show you any discounts that are
+ * applicable to the invoice.
+ *
+ * Note that when you are viewing an upcoming invoice, you are simply viewing a
+ * preview – the invoice has not yet been created. As such, the upcoming invoice
+ * will not show up in invoice listing calls, and you cannot use the API to pay or
+ * edit the invoice. If you want to change the amount that your customer will be
+ * billed, you can add, remove, or update pending invoice items, or update the
+ * customer’s discount.
+ *
+ * You can preview the effects of updating a subscription, including a preview of
+ * what proration will take place. To ensure that the actual proration is
+ * calculated exactly the same as the previewed proration, you should pass a
+ * proration_date parameter when doing the actual subscription update.
+ * The value passed in should be the same as the
+ * subscription_proration_date returned on the upcoming invoice
+ * resource. The recommended way to get only the prorations being previewed is to
+ * consider only proration line items where period[start] is equal to
+ * the subscription_proration_date on the upcoming invoice resource.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function upcoming($params = null, $opts = null)
+ {
+ }
+ /**
+ * When retrieving an upcoming invoice, you’ll get a lines
+ * property containing the total count of line items and the first handful of those
+ * items. There is also a URL where you can retrieve the full (paginated) list of
+ * line items.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\InvoiceLineItem>
+ */
+ public function upcomingLines($params = null, $opts = null)
+ {
+ }
+ /**
+ * Draft invoices are fully editable. Once an invoice is finalized, monetary values,
+ * as well as collection_method, become uneditable.
+ *
+ * If you would like to stop the Stripe Billing engine from automatically
+ * finalizing, reattempting payments on, sending reminders for, or automatically reconciling
+ * invoices, pass auto_advance=false.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is
+ * similar to deletion, however it only applies to
+ * finalized invoices and maintains a papertrail where the invoice can still be
+ * found.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function voidInvoice($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Issuing;
+
+class AuthorizationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing Authorization objects. The objects are
+ * sorted in descending order by creation date, with the most recently created
+ * object appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Authorization>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Approves a pending Issuing Authorization object. This request
+ * should be made within the timeout window of the real-time
+ * authorization flow. You can also respond directly to the webhook request to
+ * approve an authorization (preferred). More details can be found here.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function approve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Declines a pending Issuing Authorization object. This request
+ * should be made within the timeout window of the real time
+ * authorization flow. You can also respond directly to the webhook request to
+ * decline an authorization (preferred). More details can be found here.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function decline($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves an Issuing Authorization object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified Issuing Authorization object by setting the
+ * values of the parameters passed. Any parameters not provided will be left
+ * unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class CardholderService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing Cardholder objects. The objects are
+ * sorted in descending order by creation date, with the most recently created
+ * object appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Cardholder>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new Issuing Cardholder object that can be issued cards.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Cardholder
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves an Issuing Cardholder object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Cardholder
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified Issuing Cardholder object by setting the
+ * values of the parameters passed. Any parameters not provided will be left
+ * unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Cardholder
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class CardService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing Card objects. The objects are sorted in
+ * descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Card>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates an Issuing Card object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves an Issuing Card object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified Issuing Card object by setting the values of
+ * the parameters passed. Any parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class DisputeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing Dispute objects. The objects are sorted
+ * in descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Dispute>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates an Issuing Dispute object. Individual pieces of evidence
+ * within the evidence object are optional at this point. Stripe only
+ * validates that required evidence is present during submission. Refer to Dispute
+ * reasons and evidence for more details about evidence requirements.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves an Issuing Dispute object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Submits an Issuing Dispute to the card network. Stripe validates
+ * that all evidence fields required for the dispute’s reason are present. For more
+ * details, see Dispute
+ * reasons and evidence.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute
+ */
+ public function submit($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified Issuing Dispute object by setting the values
+ * of the parameters passed. Any parameters not provided will be left unchanged.
+ * Properties on the evidence object can be unset by passing in an
+ * empty string.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the Issuing namespace.
+ *
+ * @property AuthorizationService $authorizations
+ * @property CardholderService $cardholders
+ * @property CardService $cards
+ * @property DisputeService $disputes
+ * @property TransactionService $transactions
+ */
+class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class TransactionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing Transaction objects. The objects are
+ * sorted in descending order by creation date, with the most recently created
+ * object appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Transaction>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves an Issuing Transaction object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Transaction
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified Issuing Transaction object by setting the
+ * values of the parameters passed. Any parameters not provided will be left
+ * unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Transaction
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class MandateService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Retrieves a Mandate object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Mandate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class OAuthService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Sends a request to Stripe's Connect API.
+ *
+ * @param string $method the HTTP method
+ * @param string $path the path of the request
+ * @param array $params the parameters of the request
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
+ *
+ * @return \Stripe\StripeObject the object returned by Stripe's Connect API
+ */
+ protected function requestConnect($method, $path, $params, $opts)
+ {
+ }
+ /**
+ * Generates a URL to Stripe's OAuth form.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @return string the URL to Stripe's OAuth form
+ */
+ public function authorizeUrl($params = null, $opts = null)
+ {
+ }
+ /**
+ * Use an authoriztion code to connect an account to your platform and
+ * fetch the user's credentials.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject object containing the response from the API
+ */
+ public function token($params = null, $opts = null)
+ {
+ }
+ /**
+ * Disconnects an account from your platform.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject object containing the response from the API
+ */
+ public function deauthorize($params = null, $opts = null)
+ {
+ }
+}
+class PaymentIntentService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of PaymentIntents.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentIntent>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Manually reconcile the remaining amount for a customer_balance PaymentIntent.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function applyCustomerBalance($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * A PaymentIntent object can be canceled when it is in one of these statuses:
+ * requires_payment_method, requires_capture,
+ * requires_confirmation, requires_action or, in rare cases, processing.
+ *
+ * Once canceled, no additional charges will be made by the PaymentIntent and any
+ * operations on the PaymentIntent will fail with an error. For PaymentIntents with
+ * status=’requires_capture’, the remaining
+ * amount_capturable will automatically be refunded.
+ *
+ * You cannot cancel the PaymentIntent for a Checkout Session. Expire the Checkout Session
+ * instead.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Capture the funds of an existing uncaptured PaymentIntent when its status is
+ * requires_capture.
+ *
+ * Uncaptured PaymentIntents will be canceled a set number of days after they are
+ * created (7 by default).
+ *
+ * Learn more about separate authorization
+ * and capture.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function capture($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Confirm that your customer intends to pay with current or provided payment
+ * method. Upon confirmation, the PaymentIntent will attempt to initiate a payment.
+ * If the selected payment method requires additional authentication steps, the
+ * PaymentIntent will transition to the requires_action status and
+ * suggest additional actions via next_action. If payment fails, the
+ * PaymentIntent will transition to the requires_payment_method
+ * status. If payment succeeds, the PaymentIntent will transition to the
+ * succeeded status (or requires_capture, if
+ * capture_method is set to manual). If the
+ * confirmation_method is automatic, payment may be
+ * attempted using our client SDKs and
+ * the PaymentIntent’s client_secret. After
+ * next_actions are handled by the client, no additional confirmation
+ * is required to complete the payment. If the confirmation_method is
+ * manual, all payment attempts must be initiated using a secret key.
+ * If any actions are required for the payment, the PaymentIntent will return to
+ * the requires_confirmation state after those actions are completed.
+ * Your server needs to then explicitly re-confirm the PaymentIntent to initiate
+ * the next payment attempt. Read the expanded documentation to
+ * learn more about manual confirmation.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function confirm($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a PaymentIntent object.
+ *
+ * After the PaymentIntent is created, attach a payment method and confirm to continue the payment.
+ * You can read more about the different payment flows available via the Payment
+ * Intents API here.
+ *
+ * When confirm=true is used during creation, it is equivalent to
+ * creating and confirming the PaymentIntent in the same call. You may use any
+ * parameters available in the confirm
+ * API when confirm=true is supplied.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Perform an incremental authorization on an eligible PaymentIntent. To be eligible, the
+ * PaymentIntent’s status must be requires_capture and incremental_authorization_supported
+ * must be true.
+ *
+ * Incremental authorizations attempt to increase the authorized amount on your
+ * customer’s card to the new, higher amount provided. As with the
+ * initial authorization, incremental authorizations may be declined. A single
+ * PaymentIntent can call this endpoint multiple times to further increase the
+ * authorized amount.
+ *
+ * If the incremental authorization succeeds, the PaymentIntent object is returned
+ * with the updated amount.
+ * If the incremental authorization fails, a card_declined error is returned, and
+ * no fields on the PaymentIntent or Charge are updated. The PaymentIntent object
+ * remains capturable for the previously authorized amount.
+ *
+ * Each PaymentIntent can have a maximum of 10 incremental authorization attempts,
+ * including declines. Once captured, a PaymentIntent can no longer be incremented.
+ *
+ * Learn more about incremental
+ * authorizations.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function incrementAuthorization($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of a PaymentIntent that has previously been created.
+ *
+ * Client-side retrieval using a publishable key is allowed when the
+ * client_secret is provided in the query string.
+ *
+ * When retrieved with a publishable key, only a subset of properties will be
+ * returned. Please refer to the payment
+ * intent object reference for more details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Search for PaymentIntents you’ve previously created using Stripe’s Search Query Language. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\PaymentIntent>
+ */
+ public function search($params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates properties on a PaymentIntent object without confirming.
+ *
+ * Depending on which properties you update, you may need to confirm the
+ * PaymentIntent again. For example, updating the payment_method will
+ * always require you to confirm the PaymentIntent again. If you prefer to update
+ * and confirm at the same time, we recommend updating properties via the confirm API instead.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Verifies microdeposits on a PaymentIntent object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function verifyMicrodeposits($id, $params = null, $opts = null)
+ {
+ }
+}
+class PaymentLinkService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your payment links.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentLink>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * When retrieving a payment link, there is an includable
+ * line_items property containing the first handful of those
+ * items. There is also a URL where you can retrieve the full (paginated) list of
+ * line items.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem>
+ */
+ public function allLineItems($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a payment link.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieve a payment link.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a payment link.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class PaymentMethodService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of PaymentMethods for Treasury flows. If you want to list the
+ * PaymentMethods attached to a Customer for payments, you should use the List a Customer’s
+ * PaymentMethods API instead.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentMethod>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Attaches a PaymentMethod object to a Customer.
+ *
+ * To attach a new PaymentMethod to a customer for future payments, we recommend
+ * you use a SetupIntent or a PaymentIntent
+ * with setup_future_usage.
+ * These approaches will perform any necessary steps to set up the PaymentMethod
+ * for future payments. Using the /v1/payment_methods/:id/attach
+ * endpoint without first using a SetupIntent or PaymentIntent with
+ * setup_future_usage does not optimize the PaymentMethod for future
+ * use, which makes later declines and payment friction more likely. See Optimizing cards for future
+ * payments for more information about setting up future payments.
+ *
+ * To use this PaymentMethod as the default for invoice or subscription payments,
+ * set invoice_settings.default_payment_method,
+ * on the Customer to the PaymentMethod’s ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function attach($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a PaymentMethod object. Read the Stripe.js
+ * reference to learn how to create PaymentMethods via Stripe.js.
+ *
+ * Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a
+ * payment immediately or the SetupIntent API to collect payment
+ * method details ahead of a future payment.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Detaches a PaymentMethod object from a Customer. After a PaymentMethod is
+ * detached, it can no longer be used for a payment or re-attached to a Customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function detach($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a
+ * payment method attached to a Customer, you should use Retrieve a Customer’s
+ * PaymentMethods.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a PaymentMethod object. A PaymentMethod must be attached a customer to
+ * be updated.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class PayoutService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of existing payouts sent to third-party bank accounts or that
+ * Stripe has sent you. The payouts are returned in sorted order, with the most
+ * recently created payouts appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Payout>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * A previously created payout can be canceled if it has not yet been paid out.
+ * Funds will be refunded to your available balance. You may not cancel automatic
+ * Stripe payouts.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * To send funds to your own bank account, you create a new payout object. Your Stripe balance must be able to cover the payout amount, or
+ * you’ll receive an “Insufficient Funds” error.
+ *
+ * If your API key is in test mode, money won’t actually be sent, though everything
+ * else will occur as if in live mode.
+ *
+ * If you are creating a manual payout on a Stripe account that uses multiple
+ * payment source types, you’ll need to specify the source type balance that the
+ * payout should draw from. The balance object
+ * details available and pending amounts by source type.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing payout. Supply the unique payout ID from
+ * either a payout creation request or the payout list, and Stripe will return the
+ * corresponding payout information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Reverses a payout by debiting the destination bank account. Only payouts for
+ * connected accounts to US bank accounts may be reversed at this time. If the
+ * payout is in the pending status,
+ * /v1/payouts/:id/cancel should be used instead.
+ *
+ * By requesting a reversal via /v1/payouts/:id/reverse, you confirm
+ * that the authorized signatory of the selected bank account has authorized the
+ * debit on the bank account and that no other authorization is required.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function reverse($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified payout by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged. This request accepts only the
+ * metadata as arguments.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class PlanService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your plans.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Plan>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * You can now model subscriptions more flexibly using the Prices
+ * API. It replaces the Plans API and is backwards compatible to simplify your
+ * migration.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Plan
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deleting plans means new subscribers can’t be added. Existing subscribers aren’t
+ * affected.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Plan
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the plan with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Plan
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified plan by setting the values of the parameters passed. Any
+ * parameters not provided are left unchanged. By design, you cannot change a
+ * plan’s ID, amount, currency, or billing cycle.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Plan
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class PriceService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your prices.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Price>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new price for an existing product. The price can be recurring or
+ * one-time.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Price
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the price with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Price
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Search for prices you’ve previously created using Stripe’s Search Query Language. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Price>
+ */
+ public function search($params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified price by setting the values of the parameters passed. Any
+ * parameters not provided are left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Price
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class ProductService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your products. The products are returned sorted by creation
+ * date, with the most recently created products appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Product>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new product object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Product
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Delete a product. Deleting a product is only possible if it has no prices
+ * associated with it. Additionally, deleting a product with type=good
+ * is only possible if it has no SKUs associated with it.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Product
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing product. Supply the unique product ID from
+ * either a product creation request or the product list, and Stripe will return
+ * the corresponding product information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Product
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Search for products you’ve previously created using Stripe’s Search Query Language. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Product>
+ */
+ public function search($params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specific product by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Product
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class PromotionCodeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your promotion codes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PromotionCode>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * A promotion code points to a coupon. You can optionally restrict the code to a
+ * specific customer, redemption limit, and expiration date.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PromotionCode
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the promotion code with the given ID. In order to retrieve a promotion
+ * code by the customer-facing code use list with the desired
+ * code.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PromotionCode
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified promotion code by setting the values of the parameters
+ * passed. Most fields are, by design, not editable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PromotionCode
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class QuoteService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Accepts the specified quote.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function accept($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a list of your quotes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Quote>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * When retrieving a quote, there is an includable computed.upfront.line_items
+ * property containing the first handful of those items. There is also a URL where
+ * you can retrieve the full (paginated) list of upfront line items.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem>
+ */
+ public function allComputedUpfrontLineItems($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * When retrieving a quote, there is an includable line_items
+ * property containing the first handful of those items. There is also a URL where
+ * you can retrieve the full (paginated) list of line items.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem>
+ */
+ public function allLineItems($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Cancels the quote.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * A quote models prices and services for a customer. Default options for
+ * header, description, footer, and
+ * expires_at can be set in the dashboard via the quote template.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Finalizes the quote.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function finalizeQuote($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the quote with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * A quote models prices and services for a customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Download the PDF for a finalized quote.
+ *
+ * @param string $id
+ * @param callable $readBodyChunkCallable
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function pdf($id, $readBodyChunkCallable, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Radar;
+
+class EarlyFraudWarningService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of early fraud warnings.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\EarlyFraudWarning>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an early fraud warning that has previously been
+ * created.
+ *
+ * Please refer to the early fraud
+ * warning object reference for more details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\EarlyFraudWarning
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the Radar namespace.
+ *
+ * @property EarlyFraudWarningService $earlyFraudWarnings
+ * @property ValueListItemService $valueListItems
+ * @property ValueListService $valueLists
+ */
+class RadarServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class ValueListItemService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of ValueListItem objects. The objects are sorted in
+ * descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\ValueListItem>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new ValueListItem object, which is added to the specified
+ * parent value list.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes a ValueListItem object, removing it from its parent value
+ * list.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a ValueListItem object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class ValueListService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of ValueList objects. The objects are sorted in
+ * descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\ValueList>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new ValueList object, which can then be referenced in
+ * rules.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes a ValueList object, also deleting any items contained
+ * within the value list. To be deleted, a value list must not be referenced in any
+ * rules.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a ValueList object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a ValueList object by setting the values of the parameters
+ * passed. Any parameters not provided will be left unchanged. Note that
+ * item_type is immutable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class RefundService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of all refunds you’ve previously created. The refunds are
+ * returned in sorted order, with the most recent refunds appearing first. For
+ * convenience, the 10 most recent refunds are always available by default on the
+ * charge object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Refund>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Cancels a refund with a status of requires_action.
+ *
+ * Refunds in other states cannot be canceled, and only refunds for payment methods
+ * that require customer action will enter the requires_action state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Create a refund.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing refund.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified refund by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * This request only accepts metadata as an argument.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Reporting;
+
+/**
+ * Service factory class for API resources in the Reporting namespace.
+ *
+ * @property ReportRunService $reportRuns
+ * @property ReportTypeService $reportTypes
+ */
+class ReportingServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+class ReportRunService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Report Runs, with the most recent appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Reporting\ReportRun>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new object and begin running the report. (Certain report types require
+ * a live-mode API key.).
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Reporting\ReportRun
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing Report Run.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Reporting\ReportRun
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class ReportTypeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a full list of Report Types.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Reporting\ReportType>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of a Report Type. (Certain report types require a live-mode API key.).
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Reporting\ReportType
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class ReviewService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Review objects that have open set to
+ * true. The objects are sorted in descending order by creation date,
+ * with the most recently created object appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Review>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Approves a Review object, closing it and removing it from the list
+ * of reviews.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Review
+ */
+ public function approve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a Review object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Review
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class SetupAttemptService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of SetupAttempts associated with a provided SetupIntent.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SetupAttempt>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+}
+class SetupIntentService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of SetupIntents.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SetupIntent>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * A SetupIntent object can be canceled when it is in one of these statuses:
+ * requires_payment_method, requires_confirmation, or
+ * requires_action.
+ *
+ * Once canceled, setup is abandoned and any operations on the SetupIntent will
+ * fail with an error.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Confirm that your customer intends to set up the current or provided payment
+ * method. For example, you would confirm a SetupIntent when a customer hits the
+ * “Save” button on a payment method management page on your website.
+ *
+ * If the selected payment method does not require any additional steps from the
+ * customer, the SetupIntent will transition to the succeeded status.
+ *
+ * Otherwise, it will transition to the requires_action status and
+ * suggest additional actions via next_action. If setup fails, the
+ * SetupIntent will transition to the requires_payment_method status.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function confirm($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a SetupIntent object.
+ *
+ * After the SetupIntent is created, attach a payment method and confirm to collect any required
+ * permissions to charge the payment method later.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of a SetupIntent that has previously been created.
+ *
+ * Client-side retrieval using a publishable key is allowed when the
+ * client_secret is provided in the query string.
+ *
+ * When retrieved with a publishable key, only a subset of properties will be
+ * returned. Please refer to the SetupIntent
+ * object reference for more details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a SetupIntent object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Verifies microdeposits on a SetupIntent object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function verifyMicrodeposits($id, $params = null, $opts = null)
+ {
+ }
+}
+class ShippingRateService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your shipping rates.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ShippingRate>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new shipping rate object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns the shipping rate object with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates an existing shipping rate object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Sigma;
+
+class ScheduledQueryRunService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of scheduled query runs.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Sigma\ScheduledQueryRun>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an scheduled query run.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Sigma\ScheduledQueryRun
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the Sigma namespace.
+ *
+ * @property ScheduledQueryRunService $scheduledQueryRuns
+ */
+class SigmaServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class SourceService extends \Stripe\Service\AbstractService
+{
+ /**
+ * List source transactions for a given source.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SourceTransaction>
+ */
+ public function allSourceTransactions($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new source object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Delete a specified source for a given customer.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function detach($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves an existing source object. Supply the unique source ID from a source
+ * creation request and Stripe will return the corresponding up-to-date source
+ * object information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified source by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * This request accepts the metadata and owner as
+ * arguments. It is also possible to update type specific information for selected
+ * payment methods. Please refer to our payment method
+ * guides for more detail.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Verify a given source.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function verify($id, $params = null, $opts = null)
+ {
+ }
+}
+class SubscriptionItemService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your subscription items for a given subscription.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SubscriptionItem>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * For the specified subscription item, returns a list of summary objects. Each
+ * object in the list provides usage information that’s been summarized from
+ * multiple usage records and over a subscription billing period (e.g., 15 usage
+ * records in the month of September).
+ *
+ * The list is sorted in reverse-chronological order (newest first). The first list
+ * item represents the most current usage period that hasn’t ended yet. Since new
+ * usage records can still be added, the returned summary information for the
+ * subscription item’s ID should be seen as unstable until the subscription billing
+ * period ends.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\UsageRecordSummary>
+ */
+ public function allUsageRecordSummaries($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Adds a new item to an existing subscription. No existing items will be changed
+ * or replaced.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionItem
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a usage record for a specified subscription item and date, and fills it
+ * with a quantity.
+ *
+ * Usage records provide quantity information that Stripe uses to
+ * track how much a customer is using your service. With usage information and the
+ * pricing model set up by the metered
+ * billing plan, Stripe helps you send accurate invoices to your customers.
+ *
+ * The default calculation for usage is to add up all the quantity
+ * values of the usage records within a billing period. You can change this default
+ * behavior with the billing plan’s aggregate_usageparameter. When
+ * there is more than one usage record with the same timestamp, Stripe adds the
+ * quantity values together. In most cases, this is the desired
+ * resolution, however, you can change this behavior with the action
+ * parameter.
+ *
+ * The default pricing model for metered billing is per-unit pricing.
+ * For finer granularity, you can configure metered billing to have a tiered pricing
+ * model.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\UsageRecord
+ */
+ public function createUsageRecord($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes an item from the subscription. Removing a subscription item from a
+ * subscription will not cancel the subscription.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionItem
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the subscription item with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionItem
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the plan or quantity of an item on a current subscription.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionItem
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class SubscriptionScheduleService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Retrieves the list of your subscription schedules.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SubscriptionSchedule>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Cancels a subscription schedule and its associated subscription immediately (if
+ * the subscription schedule has an active subscription). A subscription schedule
+ * can only be canceled if its status is not_started or
+ * active.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new subscription schedule object. Each customer can have up to 500
+ * active or scheduled subscriptions.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Releases the subscription schedule immediately, which will stop scheduling of
+ * its phases, but leave any existing subscription in place. A schedule can only be
+ * released if its status is not_started or active. If
+ * the subscription schedule is currently associated with a subscription, releasing
+ * it will remove its subscription property and set the subscription’s
+ * ID to the released_subscription property.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function release($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing subscription schedule. You only need to
+ * supply the unique subscription schedule identifier that was returned upon
+ * subscription schedule creation.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates an existing subscription schedule.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class SubscriptionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * By default, returns a list of subscriptions that have not been canceled. In
+ * order to list canceled subscriptions, specify status=canceled.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Subscription>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Cancels a customer’s subscription immediately. The customer will not be charged
+ * again for the subscription.
+ *
+ * Note, however, that any pending invoice items that you’ve created will still be
+ * charged for at the end of the period, unless manually deleted. If you’ve set the subscription to cancel
+ * at the end of the period, any pending prorations will also be left in place and
+ * collected at the end of the period. But if the subscription is set to cancel
+ * immediately, pending prorations will be removed.
+ *
+ * By default, upon subscription cancellation, Stripe will stop automatic
+ * collection of all finalized invoices for the customer. This is intended to
+ * prevent unexpected payment attempts after the customer has canceled a
+ * subscription. However, you can resume automatic collection of the invoices
+ * manually after subscription cancellation to have us proceed. Or, you could check
+ * for unpaid invoices before allowing the customer to cancel the subscription at
+ * all.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new subscription on an existing customer. Each customer can have up to
+ * 500 active or scheduled subscriptions.
+ *
+ * When you create a subscription with
+ * collection_method=charge_automatically, the first invoice is
+ * finalized as part of the request. The payment_behavior parameter
+ * determines the exact behavior of the initial payment.
+ *
+ * To start subscriptions where the first invoice always begins in a
+ * draft status, use subscription
+ * schedules instead. Schedules provide the flexibility to model more complex
+ * billing configurations that change over time.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Removes the currently applied discount on a subscription.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function deleteDiscount($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Initiates resumption of a paused subscription, optionally resetting the billing
+ * cycle anchor and creating prorations. If a resumption invoice is generated, it
+ * must be paid or marked uncollectible before the subscription will be unpaused.
+ * If payment succeeds the subscription will become active, and if
+ * payment fails the subscription will be past_due. The resumption
+ * invoice will void automatically if not paid by the expiration date.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function resume($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the subscription with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Search for subscriptions you’ve previously created using Stripe’s Search Query Language. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Subscription>
+ */
+ public function search($params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates an existing subscription on a customer to match the specified
+ * parameters. When changing plans or quantities, we will optionally prorate the
+ * price we charge next month to make up for any price changes. To preview how the
+ * proration will be calculated, use the upcoming
+ * invoice endpoint.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class TaxCodeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * A list of all tax codes
+ * available to add to Products in order to allow specific tax calculations.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TaxCode>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing tax code. Supply the unique tax code ID and
+ * Stripe will return the corresponding tax code information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxCode
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class TaxRateService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your tax rates. Tax rates are returned sorted by creation
+ * date, with the most recently created tax rates appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TaxRate>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new tax rate.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxRate
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a tax rate with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxRate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates an existing tax rate.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxRate
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Terminal;
+
+class ConfigurationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Configuration objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Terminal\Configuration>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new Configuration object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Configuration
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes a Configuration object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Configuration
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a Configuration object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Configuration
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a new Configuration object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Configuration
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class ConnectionTokenService extends \Stripe\Service\AbstractService
+{
+ /**
+ * To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived
+ * connection token from Stripe, proxied through your server. On your backend, add
+ * an endpoint that creates and returns a connection token.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\ConnectionToken
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+}
+class LocationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Location objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Terminal\Location>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new Location object. For further details, including which
+ * address fields are required in each country, see the Manage locations guide.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Location
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes a Location object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Location
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a Location object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Location
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a Location object by setting the values of the parameters
+ * passed. Any parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Location
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class ReaderService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Reader objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Terminal\Reader>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Cancels the current reader action.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function cancelAction($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new Reader object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes a Reader object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Initiates a payment flow on a Reader.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function processPaymentIntent($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Initiates a setup intent flow on a Reader.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function processSetupIntent($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Initiates a refund on a Reader.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function refundPayment($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a Reader object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Sets reader display to show cart details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function setReaderDisplay($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates a Reader object by setting the values of the parameters
+ * passed. Any parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the Terminal namespace.
+ *
+ * @property ConfigurationService $configurations
+ * @property ConnectionTokenService $connectionTokens
+ * @property LocationService $locations
+ * @property ReaderService $readers
+ */
+class TerminalServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+namespace Stripe\Service\TestHelpers;
+
+class CustomerService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Create an incoming testmode bank transfer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function fundCashBalance($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\TestHelpers\Issuing;
+
+class CardService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Updates the shipping status of the specified Issuing Card object to
+ * delivered.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function deliverCard($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the shipping status of the specified Issuing Card object to
+ * failure.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function failCard($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the shipping status of the specified Issuing Card object to
+ * returned.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function returnCard($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the shipping status of the specified Issuing Card object to
+ * shipped.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function shipCard($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the Issuing namespace.
+ *
+ * @property CardService $cards
+ */
+class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+namespace Stripe\Service\TestHelpers;
+
+class RefundService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Expire a refund with a status of requires_action.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function expire($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\TestHelpers\Terminal;
+
+class ReaderService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Presents a payment method on a simulated reader. Can be used to simulate
+ * accepting a payment, saving a card or refunding a transaction.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function presentPaymentMethod($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the Terminal namespace.
+ *
+ * @property ReaderService $readers
+ */
+class TerminalServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+namespace Stripe\Service\TestHelpers;
+
+class TestClockService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Starts advancing a test clock to a specified time in the future. Advancement is
+ * done when status changes to Ready.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock
+ */
+ public function advance($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Returns a list of your test clocks.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TestHelpers\TestClock>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new test clock that can be attached to new customers and quotes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Deletes a test clock.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a test clock.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the TestHelpers namespace.
+ *
+ * @property CustomerService $customers
+ * @property Issuing\IssuingServiceFactory $issuing
+ * @property RefundService $refunds
+ * @property Terminal\TerminalServiceFactory $terminal
+ * @property TestClockService $testClocks
+ * @property Treasury\TreasuryServiceFactory $treasury
+ */
+class TestHelpersServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+namespace Stripe\Service\TestHelpers\Treasury;
+
+class InboundTransferService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Transitions a test mode created InboundTransfer to the failed
+ * status. The InboundTransfer must already be in the processing
+ * state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\InboundTransfer
+ */
+ public function fail($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Marks the test mode InboundTransfer object as returned and links the
+ * InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the
+ * succeeded state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\InboundTransfer
+ */
+ public function returnInboundTransfer($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Transitions a test mode created InboundTransfer to the succeeded
+ * status. The InboundTransfer must already be in the processing
+ * state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\InboundTransfer
+ */
+ public function succeed($id, $params = null, $opts = null)
+ {
+ }
+}
+class OutboundPaymentService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Transitions a test mode created OutboundPayment to the failed
+ * status. The OutboundPayment must already be in the processing
+ * state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundPayment
+ */
+ public function fail($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Transitions a test mode created OutboundPayment to the posted
+ * status. The OutboundPayment must already be in the processing
+ * state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundPayment
+ */
+ public function post($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Transitions a test mode created OutboundPayment to the returned
+ * status. The OutboundPayment must already be in the processing
+ * state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundPayment
+ */
+ public function returnOutboundPayment($id, $params = null, $opts = null)
+ {
+ }
+}
+class OutboundTransferService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Transitions a test mode created OutboundTransfer to the failed
+ * status. The OutboundTransfer must already be in the processing
+ * state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundTransfer
+ */
+ public function fail($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Transitions a test mode created OutboundTransfer to the posted
+ * status. The OutboundTransfer must already be in the processing
+ * state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundTransfer
+ */
+ public function post($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Transitions a test mode created OutboundTransfer to the returned
+ * status. The OutboundTransfer must already be in the processing
+ * state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundTransfer
+ */
+ public function returnOutboundTransfer($id, $params = null, $opts = null)
+ {
+ }
+}
+class ReceivedCreditService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Use this endpoint to simulate a test mode ReceivedCredit initiated by a third
+ * party. In live mode, you can’t directly create ReceivedCredits initiated by
+ * third parties.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\ReceivedCredit
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+}
+class ReceivedDebitService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Use this endpoint to simulate a test mode ReceivedDebit initiated by a third
+ * party. In live mode, you can’t directly create ReceivedDebits initiated by third
+ * parties.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\ReceivedDebit
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the Treasury namespace.
+ *
+ * @property InboundTransferService $inboundTransfers
+ * @property OutboundPaymentService $outboundPayments
+ * @property OutboundTransferService $outboundTransfers
+ * @property ReceivedCreditService $receivedCredits
+ * @property ReceivedDebitService $receivedDebits
+ */
+class TreasuryServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class TokenService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Creates a single-use token that represents a bank account’s details. This token
+ * can be used with any API method in place of a bank account dictionary. This
+ * token can be used only once, by attaching it to a Custom
+ * account.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Token
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the token with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Token
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class TopupService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of top-ups.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Topup>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Cancels a top-up. Only pending top-ups can be canceled.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Top up the balance of an account.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of a top-up that has previously been created. Supply the
+ * unique top-up ID that was returned from your previous request, and Stripe will
+ * return the corresponding top-up information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the metadata of a top-up. Other top-up details are not editable by
+ * design.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+class TransferService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of existing transfers sent to connected accounts. The transfers
+ * are returned in sorted order, with the most recently created transfers appearing
+ * first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Transfer>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * You can see a list of the reversals belonging to a specific transfer. Note that
+ * the 10 most recent reversals are always available by default on the transfer
+ * object. If you need more than those 10, you can use this API method and the
+ * limit and starting_after parameters to page through
+ * additional reversals.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TransferReversal>
+ */
+ public function allReversals($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * To send funds from your Stripe account to a connected account, you create a new
+ * transfer object. Your Stripe balance must be able to
+ * cover the transfer amount, or you’ll receive an “Insufficient Funds” error.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Transfer
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * When you create a new reversal, you must specify a transfer to create it on.
+ *
+ * When reversing transfers, you can optionally reverse part of the transfer. You
+ * can do so as many times as you wish until the entire transfer has been reversed.
+ *
+ * Once entirely reversed, a transfer can’t be reversed again. This method will
+ * return an error when called on an already-reversed transfer, or when trying to
+ * reverse more money than is left on a transfer.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public function createReversal($parentId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing transfer. Supply the unique transfer ID
+ * from either a transfer creation request or the transfer list, and Stripe will
+ * return the corresponding transfer information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Transfer
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * By default, you can see the 10 most recent reversals stored directly on the
+ * transfer object, but you can also retrieve details about a specific reversal
+ * stored on the transfer.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public function retrieveReversal($parentId, $id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified transfer by setting the values of the parameters passed.
+ * Any parameters not provided will be left unchanged.
+ *
+ * This request accepts only metadata as an argument.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Transfer
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the specified reversal by setting the values of the parameters passed.
+ * Any parameters not provided will be left unchanged.
+ *
+ * This request only accepts metadata and description as arguments.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public function updateReversal($parentId, $id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\Service\Treasury;
+
+class CreditReversalService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of CreditReversals.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\CreditReversal>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Reverses a ReceivedCredit and creates a CreditReversal object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\CreditReversal
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing CreditReversal by passing the unique
+ * CreditReversal ID from either the CreditReversal creation request or
+ * CreditReversal list.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\CreditReversal
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class DebitReversalService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of DebitReversals.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\DebitReversal>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Reverses a ReceivedDebit and creates a DebitReversal object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\DebitReversal
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a DebitReversal object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\DebitReversal
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class FinancialAccountService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of FinancialAccounts.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\FinancialAccount>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates a new FinancialAccount. For now, each connected account can only have
+ * one FinancialAccount.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of a FinancialAccount.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves Features information associated with the FinancialAccount.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount
+ */
+ public function retrieveFeatures($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the details of a FinancialAccount.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the Features associated with a FinancialAccount.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount
+ */
+ public function updateFeatures($id, $params = null, $opts = null)
+ {
+ }
+}
+class InboundTransferService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of InboundTransfers sent from the specified FinancialAccount.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\InboundTransfer>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Cancels an InboundTransfer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\InboundTransfer
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates an InboundTransfer.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\InboundTransfer
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing InboundTransfer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\InboundTransfer
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class OutboundPaymentService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of OutboundPayments sent from the specified FinancialAccount.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\OutboundPayment>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Cancel an OutboundPayment.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundPayment
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates an OutboundPayment.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundPayment
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing OutboundPayment by passing the unique
+ * OutboundPayment ID from either the OutboundPayment creation request or
+ * OutboundPayment list.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundPayment
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class OutboundTransferService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of OutboundTransfers sent from the specified FinancialAccount.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\OutboundTransfer>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * An OutboundTransfer can be canceled if the funds have not yet been paid out.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundTransfer
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Creates an OutboundTransfer.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundTransfer
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing OutboundTransfer by passing the unique
+ * OutboundTransfer ID from either the OutboundTransfer creation request or
+ * OutboundTransfer list.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundTransfer
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class ReceivedCreditService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of ReceivedCredits.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\ReceivedCredit>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing ReceivedCredit by passing the unique
+ * ReceivedCredit ID from the ReceivedCredit list.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\ReceivedCredit
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class ReceivedDebitService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of ReceivedDebits.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\ReceivedDebit>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing ReceivedDebit by passing the unique
+ * ReceivedDebit ID from the ReceivedDebit list.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\ReceivedDebit
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class TransactionEntryService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Retrieves a list of TransactionEntry objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\TransactionEntry>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves a TransactionEntry object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\TransactionEntry
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+class TransactionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Retrieves a list of Transaction objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Treasury\Transaction>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the details of an existing Transaction.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\Transaction
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Service factory class for API resources in the Treasury namespace.
+ *
+ * @property CreditReversalService $creditReversals
+ * @property DebitReversalService $debitReversals
+ * @property FinancialAccountService $financialAccounts
+ * @property InboundTransferService $inboundTransfers
+ * @property OutboundPaymentService $outboundPayments
+ * @property OutboundTransferService $outboundTransfers
+ * @property ReceivedCreditService $receivedCredits
+ * @property ReceivedDebitService $receivedDebits
+ * @property TransactionEntryService $transactionEntries
+ * @property TransactionService $transactions
+ */
+class TreasuryServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ protected function getServiceClass($name)
+ {
+ }
+}
+namespace Stripe\Service;
+
+class WebhookEndpointService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your webhook endpoints.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\WebhookEndpoint>
+ */
+ public function all($params = null, $opts = null)
+ {
+ }
+ /**
+ * A webhook endpoint must have a url and a list of
+ * enabled_events. You may optionally specify the Boolean
+ * connect parameter. If set to true, then a Connect webhook endpoint
+ * that notifies the specified url about events from all connected
+ * accounts is created; otherwise an account webhook endpoint that notifies the
+ * specified url only about events from your account is created. You
+ * can also create webhook endpoints in the webhooks settings
+ * section of the Dashboard.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\WebhookEndpoint
+ */
+ public function create($params = null, $opts = null)
+ {
+ }
+ /**
+ * You can also delete webhook endpoints via the webhook endpoint
+ * management page of the Stripe dashboard.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\WebhookEndpoint
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Retrieves the webhook endpoint with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\WebhookEndpoint
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * Updates the webhook endpoint. You may edit the url, the list of
+ * enabled_events, and the status of your endpoint.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\WebhookEndpoint
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * A SetupAttempt describes one attempted confirmation of a SetupIntent, whether
+ * that confirmation was successful or unsuccessful. You can use SetupAttempts to
+ * inspect details of a specific attempt at setting up a payment method using a
+ * SetupIntent.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string|\Stripe\StripeObject $application The value of application on the SetupIntent at the time of this confirmation.
+ * @property null|bool $attach_to_self
If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string|\Stripe\Customer $customer The value of customer on the SetupIntent at the time of this confirmation.
+ * @property null|string[] $flow_directions
Indicates the directions of money movement for which this payment method is intended to be used.
Include inbound if you intend to use the payment method as the origin to pull funds from. Include outbound if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string|\Stripe\Account $on_behalf_of The value of on_behalf_of on the SetupIntent at the time of this confirmation.
+ * @property string|\Stripe\PaymentMethod $payment_method ID of the payment method used with this SetupAttempt.
+ * @property \Stripe\StripeObject $payment_method_details
+ * @property null|\Stripe\StripeObject $setup_error The error encountered during this attempt to confirm the SetupIntent, if any.
+ * @property string|\Stripe\SetupIntent $setup_intent ID of the SetupIntent that this attempt belongs to.
+ * @property string $status Status of this SetupAttempt, one of requires_confirmation, requires_action, processing, succeeded, failed, or abandoned.
+ * @property string $usage The value of usage on the SetupIntent at the time of this confirmation, one of off_session or on_session.
+ */
+class SetupAttempt extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'setup_attempt';
+ use \Stripe\ApiOperations\All;
+}
+/**
+ * A SetupIntent guides you through the process of setting up and saving a
+ * customer's payment credentials for future payments. For example, you could use a
+ * SetupIntent to set up and save your customer's card without immediately
+ * collecting a payment. Later, you can use PaymentIntents to drive
+ * the payment flow.
+ *
+ * Create a SetupIntent as soon as you're ready to collect your customer's payment
+ * credentials. Do not maintain long-lived, unconfirmed SetupIntents as they may no
+ * longer be valid. The SetupIntent then transitions through multiple statuses as
+ * it guides you through the setup process.
+ *
+ * Successful SetupIntents result in payment credentials that are optimized for
+ * future payments. For example, cardholders in certain regions may need to be
+ * run through Strong Customer
+ * Authentication at the time of payment method collection in order to
+ * streamline later off-session payments.
+ * If the SetupIntent is used with a Customer,
+ * upon success, it will automatically attach the resulting payment method to that
+ * Customer. We recommend using SetupIntents or setup_future_usage
+ * on PaymentIntents to save payment methods in order to prevent saving invalid or
+ * unoptimized payment methods.
+ *
+ * By using SetupIntents, you ensure that your customers experience the minimum set
+ * of required friction, even as regulations change over time.
+ *
+ * Related guide: Setup
+ * Intents API.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect application that created the SetupIntent.
+ * @property null|bool $attach_to_self
If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
+ * @property null|string $cancellation_reason Reason for cancellation of this SetupIntent, one of abandoned, requested_by_customer, or duplicate.
+ * @property null|string $client_secret
The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.
The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string|\Stripe\Customer $customer
ID of the Customer this SetupIntent belongs to, if one exists.
If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string[] $flow_directions
Indicates the directions of money movement for which this payment method is intended to be used.
Include inbound if you intend to use the payment method as the origin to pull funds from. Include outbound if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
+ * @property null|\Stripe\StripeObject $last_setup_error The error encountered in the previous SetupIntent confirmation.
+ * @property null|string|\Stripe\SetupAttempt $latest_attempt The most recent SetupAttempt for this SetupIntent.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string|\Stripe\Mandate $mandate ID of the multi use Mandate generated by the SetupIntent.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\StripeObject $next_action If present, this property tells you what actions you need to take in order for your customer to continue payment setup.
+ * @property null|string|\Stripe\Account $on_behalf_of The account (if any) for which the setup is intended.
+ * @property null|string|\Stripe\PaymentMethod $payment_method ID of the payment method used with this SetupIntent.
+ * @property null|\Stripe\StripeObject $payment_method_options Payment-method-specific configuration for this SetupIntent.
+ * @property string[] $payment_method_types The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
+ * @property null|string|\Stripe\Mandate $single_use_mandate ID of the single_use Mandate generated by the SetupIntent.
+ * @property string $status Status of this SetupIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, canceled, or succeeded.
+ * @property string $usage
Indicates how the payment method is intended to be used in the future.
Use on_session if you intend to only reuse the payment method when the customer is in your checkout flow. Use off_session if your customer may or may not be in your checkout flow. If not provided, this value defaults to off_session.
+ */
+class SetupIntent extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'setup_intent';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_PROCESSING = 'processing';
+ const STATUS_REQUIRES_ACTION = 'requires_action';
+ const STATUS_REQUIRES_CONFIRMATION = 'requires_confirmation';
+ const STATUS_REQUIRES_PAYMENT_METHOD = 'requires_payment_method';
+ const STATUS_SUCCEEDED = 'succeeded';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent the canceled setup intent
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent the confirmed setup intent
+ */
+ public function confirm($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent the verified setup intent
+ */
+ public function verifyMicrodeposits($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Shipping rates describe the price of shipping presented to your customers and
+ * can be applied to Checkout Sessions
+ * and Orders to collect
+ * shipping costs.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $active Whether the shipping rate can be used for new purchases. Defaults to true.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|\Stripe\StripeObject $delivery_estimate The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ * @property null|string $display_name The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ * @property null|\Stripe\StripeObject $fixed_amount
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $tax_behavior Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified.
+ * @property null|string|\Stripe\TaxCode $tax_code A tax code ID. The Shipping tax code is txcd_92010001.
+ * @property string $type The type of calculation to use on the shipping rate. Can only be fixed_amount for now.
+ */
+class ShippingRate extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'shipping_rate';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const TAX_BEHAVIOR_EXCLUSIVE = 'exclusive';
+ const TAX_BEHAVIOR_INCLUSIVE = 'inclusive';
+ const TAX_BEHAVIOR_UNSPECIFIED = 'unspecified';
+ const TYPE_FIXED_AMOUNT = 'fixed_amount';
+}
+namespace Stripe\Sigma;
+
+/**
+ * If you have scheduled
+ * a Sigma query, you'll receive a
+ * sigma.scheduled_query_run.created webhook each time the query runs.
+ * The webhook contains a ScheduledQueryRun object, which you can use
+ * to retrieve the query results.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property int $data_load_time When the query was run, Sigma contained a snapshot of your Stripe data at this time.
+ * @property null|\Stripe\StripeObject $error
+ * @property null|\Stripe\File $file The file object representing the results of the query.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property int $result_available_until Time at which the result expires and is no longer available for download.
+ * @property string $sql SQL for the query.
+ * @property string $status The query's execution status, which will be completed for successful runs, and canceled, failed, or timed_out otherwise.
+ * @property string $title Title of the query.
+ */
+class ScheduledQueryRun extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'scheduled_query_run';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ public static function classUrl()
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * Source objects allow you to accept a variety of payment methods.
+ * They represent a customer's payment instrument, and can be used with the Stripe
+ * API just like a Card object: once chargeable, they can be charged,
+ * or can be attached to customers.
+ *
+ * Stripe doesn't recommend using the deprecated Sources API. We recommend that
+ * you adopt the PaymentMethods API. This
+ * newer API provides access to our latest features and payment method types.
+ *
+ * Related guides: Sources API and Sources & Customers.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $ach_credit_transfer
+ * @property null|\Stripe\StripeObject $ach_debit
+ * @property null|\Stripe\StripeObject $acss_debit
+ * @property null|\Stripe\StripeObject $alipay
+ * @property null|int $amount A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for single_use sources.
+ * @property null|\Stripe\StripeObject $au_becs_debit
+ * @property null|\Stripe\StripeObject $bancontact
+ * @property null|\Stripe\StripeObject $card
+ * @property null|\Stripe\StripeObject $card_present
+ * @property string $client_secret The client secret of the source. Used for client-side retrieval using a publishable key.
+ * @property null|\Stripe\StripeObject $code_verification
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $currency Three-letter ISO code for the currency associated with the source. This is the currency for which the source will be chargeable once ready. Required for single_use sources.
+ * @property null|string $customer The ID of the customer to which this source is attached. This will not be present when the source has not been attached to a customer.
+ * @property null|\Stripe\StripeObject $eps
+ * @property string $flow The authentication flow of the source. flow is one of redirect, receiver, code_verification, none.
+ * @property null|\Stripe\StripeObject $giropay
+ * @property null|\Stripe\StripeObject $ideal
+ * @property null|\Stripe\StripeObject $klarna
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\StripeObject $multibanco
+ * @property null|\Stripe\StripeObject $owner Information about the owner of the payment instrument that may be used or required by particular source types.
+ * @property null|\Stripe\StripeObject $p24
+ * @property null|\Stripe\StripeObject $receiver
+ * @property null|\Stripe\StripeObject $redirect
+ * @property null|\Stripe\StripeObject $sepa_credit_transfer
+ * @property null|\Stripe\StripeObject $sepa_debit
+ * @property null|\Stripe\StripeObject $sofort
+ * @property null|\Stripe\StripeObject $source_order
+ * @property null|string $statement_descriptor Extra information about a source. This will appear on your customer's statement every time you charge the source.
+ * @property string $status The status of the source, one of canceled, chargeable, consumed, failed, or pending. Only chargeable sources can be used to create a charge.
+ * @property null|\Stripe\StripeObject $three_d_secure
+ * @property string $type The type of the source. The type is a payment method, one of ach_credit_transfer, ach_debit, alipay, bancontact, card, card_present, eps, giropay, ideal, multibanco, klarna, p24, sepa_debit, sofort, three_d_secure, or wechat. An additional hash is included on the source with a name matching this value. It contains additional information specific to the payment method used.
+ * @property null|string $usage Either reusable or single_use. Whether this source should be reusable or not. Some source types may or may not be reusable by construction, while others may leave the option at creation. If an incompatible value is passed, an error will be returned.
+ * @property null|\Stripe\StripeObject $wechat
+ */
+class Source extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'source';
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const FLOW_CODE_VERIFICATION = 'code_verification';
+ const FLOW_NONE = 'none';
+ const FLOW_RECEIVER = 'receiver';
+ const FLOW_REDIRECT = 'redirect';
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_CHARGEABLE = 'chargeable';
+ const STATUS_CONSUMED = 'consumed';
+ const STATUS_FAILED = 'failed';
+ const STATUS_PENDING = 'pending';
+ const USAGE_REUSABLE = 'reusable';
+ const USAGE_SINGLE_USE = 'single_use';
+ use \Stripe\ApiOperations\NestedResource;
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\UnexpectedValueException if the source is not attached to a customer
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source the detached source
+ */
+ public function detach($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SourceTransaction> list of SourceTransactions
+ */
+ public static function allSourceTransactions($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source the verified source
+ */
+ public function verify($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Class SourceTransaction.
+ *
+ * @property string $id
+ * @property string $object
+ * @property \Stripe\StripeObject $ach_credit_transfer
+ * @property int $amount
+ * @property int $created
+ * @property string $customer_data
+ * @property string $currency
+ * @property string $type
+ */
+class SourceTransaction extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'source_transaction';
+}
+/**
+ * Class Stripe.
+ */
+class Stripe
+{
+ /** @var string The Stripe API key to be used for requests. */
+ public static $apiKey;
+ /** @var string The Stripe client_id to be used for Connect requests. */
+ public static $clientId;
+ /** @var string The base URL for the Stripe API. */
+ public static $apiBase = 'https://api.stripe.com';
+ /** @var string The base URL for the OAuth API. */
+ public static $connectBase = 'https://connect.stripe.com';
+ /** @var string The base URL for the Stripe API uploads endpoint. */
+ public static $apiUploadBase = 'https://files.stripe.com';
+ /** @var null|string The version of the Stripe API to use for requests. */
+ public static $apiVersion = null;
+ /** @var null|string The account ID for connected accounts requests. */
+ public static $accountId = null;
+ /** @var string Path to the CA bundle used to verify SSL certificates */
+ public static $caBundlePath = null;
+ /** @var bool Defaults to true. */
+ public static $verifySslCerts = true;
+ /** @var array The application's information (name, version, URL) */
+ public static $appInfo = null;
+ /**
+ * @var null|Util\LoggerInterface the logger to which the library will
+ * produce messages
+ */
+ public static $logger = null;
+ /** @var int Maximum number of request retries */
+ public static $maxNetworkRetries = 0;
+ /** @var bool Whether client telemetry is enabled. Defaults to true. */
+ public static $enableTelemetry = true;
+ const VERSION = '10.7.0';
+ /**
+ * @return string the API key used for requests
+ */
+ public static function getApiKey()
+ {
+ }
+ /**
+ * @return string the client_id used for Connect requests
+ */
+ public static function getClientId()
+ {
+ }
+ /**
+ * @return Util\LoggerInterface the logger to which the library will
+ * produce messages
+ */
+ public static function getLogger()
+ {
+ }
+ /**
+ * @param \Psr\Log\LoggerInterface|Util\LoggerInterface $logger the logger to which the library
+ * will produce messages
+ */
+ public static function setLogger($logger)
+ {
+ }
+ /**
+ * Sets the API key to be used for requests.
+ *
+ * @param string $apiKey
+ */
+ public static function setApiKey($apiKey)
+ {
+ }
+ /**
+ * Sets the client_id to be used for Connect requests.
+ *
+ * @param string $clientId
+ */
+ public static function setClientId($clientId)
+ {
+ }
+ /**
+ * @return string The API version used for requests. null if we're using the
+ * latest version.
+ */
+ public static function getApiVersion()
+ {
+ }
+ /**
+ * @param string $apiVersion the API version to use for requests
+ */
+ public static function setApiVersion($apiVersion)
+ {
+ }
+ /**
+ * @return string
+ */
+ public static function getCABundlePath()
+ {
+ }
+ /**
+ * @param string $caBundlePath
+ */
+ public static function setCABundlePath($caBundlePath)
+ {
+ }
+ /**
+ * @return bool
+ */
+ public static function getVerifySslCerts()
+ {
+ }
+ /**
+ * @param bool $verify
+ */
+ public static function setVerifySslCerts($verify)
+ {
+ }
+ /**
+ * @return null|string The Stripe account ID for connected account
+ * requests
+ */
+ public static function getAccountId()
+ {
+ }
+ /**
+ * @param null|string $accountId the Stripe account ID to set for connected
+ * account requests
+ */
+ public static function setAccountId($accountId)
+ {
+ }
+ /**
+ * @return null|array The application's information
+ */
+ public static function getAppInfo()
+ {
+ }
+ /**
+ * @param string $appName The application's name
+ * @param null|string $appVersion The application's version
+ * @param null|string $appUrl The application's URL
+ * @param null|string $appPartnerId The application's partner ID
+ */
+ public static function setAppInfo($appName, $appVersion = null, $appUrl = null, $appPartnerId = null)
+ {
+ }
+ /**
+ * @return int Maximum number of request retries
+ */
+ public static function getMaxNetworkRetries()
+ {
+ }
+ /**
+ * @param int $maxNetworkRetries Maximum number of request retries
+ */
+ public static function setMaxNetworkRetries($maxNetworkRetries)
+ {
+ }
+ /**
+ * @return float Maximum delay between retries, in seconds
+ */
+ public static function getMaxNetworkRetryDelay()
+ {
+ }
+ /**
+ * @return float Maximum delay between retries, in seconds, that will be respected from the Stripe API
+ */
+ public static function getMaxRetryAfter()
+ {
+ }
+ /**
+ * @return float Initial delay between retries, in seconds
+ */
+ public static function getInitialNetworkRetryDelay()
+ {
+ }
+ /**
+ * @return bool Whether client telemetry is enabled
+ */
+ public static function getEnableTelemetry()
+ {
+ }
+ /**
+ * @param bool $enableTelemetry Enables client telemetry.
+ *
+ * Client telemetry enables timing and request metrics to be sent back to Stripe as an HTTP Header
+ * with the current request. This enables Stripe to do latency and metrics analysis without adding extra
+ * overhead (such as extra network calls) on the client.
+ */
+ public static function setEnableTelemetry($enableTelemetry)
+ {
+ }
+}
+/**
+ * Client used to send requests to Stripe's API.
+ *
+ * @property \Stripe\Service\AccountLinkService $accountLinks
+ * @property \Stripe\Service\AccountService $accounts
+ * @property \Stripe\Service\ApplePayDomainService $applePayDomains
+ * @property \Stripe\Service\ApplicationFeeService $applicationFees
+ * @property \Stripe\Service\Apps\AppsServiceFactory $apps
+ * @property \Stripe\Service\BalanceService $balance
+ * @property \Stripe\Service\BalanceTransactionService $balanceTransactions
+ * @property \Stripe\Service\BillingPortal\BillingPortalServiceFactory $billingPortal
+ * @property \Stripe\Service\ChargeService $charges
+ * @property \Stripe\Service\Checkout\CheckoutServiceFactory $checkout
+ * @property \Stripe\Service\CountrySpecService $countrySpecs
+ * @property \Stripe\Service\CouponService $coupons
+ * @property \Stripe\Service\CreditNoteService $creditNotes
+ * @property \Stripe\Service\CustomerService $customers
+ * @property \Stripe\Service\DisputeService $disputes
+ * @property \Stripe\Service\EphemeralKeyService $ephemeralKeys
+ * @property \Stripe\Service\EventService $events
+ * @property \Stripe\Service\ExchangeRateService $exchangeRates
+ * @property \Stripe\Service\FileLinkService $fileLinks
+ * @property \Stripe\Service\FileService $files
+ * @property \Stripe\Service\FinancialConnections\FinancialConnectionsServiceFactory $financialConnections
+ * @property \Stripe\Service\Identity\IdentityServiceFactory $identity
+ * @property \Stripe\Service\InvoiceItemService $invoiceItems
+ * @property \Stripe\Service\InvoiceService $invoices
+ * @property \Stripe\Service\Issuing\IssuingServiceFactory $issuing
+ * @property \Stripe\Service\MandateService $mandates
+ * @property \Stripe\Service\OAuthService $oauth
+ * @property \Stripe\Service\PaymentIntentService $paymentIntents
+ * @property \Stripe\Service\PaymentLinkService $paymentLinks
+ * @property \Stripe\Service\PaymentMethodService $paymentMethods
+ * @property \Stripe\Service\PayoutService $payouts
+ * @property \Stripe\Service\PlanService $plans
+ * @property \Stripe\Service\PriceService $prices
+ * @property \Stripe\Service\ProductService $products
+ * @property \Stripe\Service\PromotionCodeService $promotionCodes
+ * @property \Stripe\Service\QuoteService $quotes
+ * @property \Stripe\Service\Radar\RadarServiceFactory $radar
+ * @property \Stripe\Service\RefundService $refunds
+ * @property \Stripe\Service\Reporting\ReportingServiceFactory $reporting
+ * @property \Stripe\Service\ReviewService $reviews
+ * @property \Stripe\Service\SetupAttemptService $setupAttempts
+ * @property \Stripe\Service\SetupIntentService $setupIntents
+ * @property \Stripe\Service\ShippingRateService $shippingRates
+ * @property \Stripe\Service\Sigma\SigmaServiceFactory $sigma
+ * @property \Stripe\Service\SourceService $sources
+ * @property \Stripe\Service\SubscriptionItemService $subscriptionItems
+ * @property \Stripe\Service\SubscriptionScheduleService $subscriptionSchedules
+ * @property \Stripe\Service\SubscriptionService $subscriptions
+ * @property \Stripe\Service\TaxCodeService $taxCodes
+ * @property \Stripe\Service\TaxRateService $taxRates
+ * @property \Stripe\Service\Terminal\TerminalServiceFactory $terminal
+ * @property \Stripe\Service\TestHelpers\TestHelpersServiceFactory $testHelpers
+ * @property \Stripe\Service\TokenService $tokens
+ * @property \Stripe\Service\TopupService $topups
+ * @property \Stripe\Service\TransferService $transfers
+ * @property \Stripe\Service\Treasury\TreasuryServiceFactory $treasury
+ * @property \Stripe\Service\WebhookEndpointService $webhookEndpoints
+ */
+class StripeClient extends \Stripe\BaseStripeClient
+{
+ public function __get($name)
+ {
+ }
+}
+/**
+ * Subscriptions allow you to charge a customer on a recurring basis.
+ *
+ * Related guide: Creating
+ * Subscriptions.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect Application that created the subscription.
+ * @property null|float $application_fee_percent A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account.
+ * @property \Stripe\StripeObject $automatic_tax
+ * @property int $billing_cycle_anchor Determines the date of the first full invoice, and, for plans with month or year intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.
+ * @property null|\Stripe\StripeObject $billing_thresholds Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
+ * @property null|int $cancel_at A date in the future at which the subscription will automatically get canceled
+ * @property bool $cancel_at_period_end If the subscription has been canceled with the at_period_end flag set to true, cancel_at_period_end on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period.
+ * @property null|int $canceled_at If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with cancel_at_period_end, canceled_at will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state.
+ * @property string $collection_method Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as active.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property int $current_period_end End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
+ * @property int $current_period_start Start of the current period that the subscription has been invoiced for.
+ * @property string|\Stripe\Customer $customer ID of the customer who owns the subscription.
+ * @property null|int $days_until_due Number of days a customer has to pay invoices generated by this subscription. This value will be null for subscriptions where collection_method=charge_automatically.
+ * @property null|string|\Stripe\PaymentMethod $default_payment_method ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over default_source. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.
+ * @property null|string|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $default_source ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If default_payment_method is also set, default_payment_method will take precedence. If neither are set, invoices will use the customer's invoice_settings.default_payment_method or default_source.
+ * @property null|\Stripe\TaxRate[] $default_tax_rates The tax rates that will apply to any subscription item that does not have tax_rates set. Invoices created will have their default_tax_rates populated from the subscription.
+ * @property null|string $description The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces.
+ * @property null|\Stripe\Discount $discount Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis.
+ * @property null|int $ended_at If the subscription has ended, the date the subscription ended.
+ * @property \Stripe\Collection<\Stripe\SubscriptionItem> $items List of subscription items, each with an attached price.
+ * @property null|string|\Stripe\Invoice $latest_invoice The most recent invoice this subscription has generated.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|int $next_pending_invoice_item_invoice Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at pending_invoice_item_interval.
+ * @property null|string|\Stripe\Account $on_behalf_of The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details.
+ * @property null|\Stripe\StripeObject $pause_collection If specified, payment collection for this subscription will be paused.
+ * @property null|\Stripe\StripeObject $payment_settings Payment settings passed on to invoices created by the subscription.
+ * @property null|\Stripe\StripeObject $pending_invoice_item_interval Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.
+ * @property null|string|\Stripe\SetupIntent $pending_setup_intent You can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the SCA Migration Guide.
+ * @property null|\Stripe\StripeObject $pending_update If specified, pending updates that will be applied to the subscription once the latest_invoice has been paid.
+ * @property null|string|\Stripe\SubscriptionSchedule $schedule The schedule attached to the subscription
+ * @property int $start_date Date when the subscription was first created. The date might differ from the created date due to backdating.
+ * @property string $status
Possible values are incomplete, incomplete_expired, trialing, active, past_due, canceled, or unpaid.
For collection_method=charge_automatically a subscription moves into incomplete if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active state. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired. This is a terminal state, the open invoice will be voided and no further invoices will be generated.
A subscription that is currently in a trial period is trialing and moves to active when the trial period is over.
If subscription collection_method=charge_automatically it becomes past_due when payment to renew it fails and canceled or unpaid (depending on your subscriptions settings) when Stripe has exhausted all payment retry attempts.
If subscription collection_method=send_invoice it becomes past_due when its invoice is not paid by the due date, and canceled or unpaid if it is still not paid by an additional deadline after that. Note that when a subscription has a status of unpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
+ * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this subscription belongs to.
+ * @property null|\Stripe\StripeObject $transfer_data The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
+ * @property null|int $trial_end If the subscription has a trial, the end of that trial.
+ * @property null|\Stripe\StripeObject $trial_settings Settings related to subscription trials.
+ * @property null|int $trial_start If the subscription has a trial, the beginning of that trial.
+ */
+class Subscription extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'subscription';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Search;
+ use \Stripe\ApiOperations\Update;
+ const PAYMENT_BEHAVIOR_ALLOW_INCOMPLETE = 'allow_incomplete';
+ const PAYMENT_BEHAVIOR_DEFAULT_INCOMPLETE = 'default_incomplete';
+ const PAYMENT_BEHAVIOR_ERROR_IF_INCOMPLETE = 'error_if_incomplete';
+ const PAYMENT_BEHAVIOR_PENDING_IF_INCOMPLETE = 'pending_if_incomplete';
+ const PRORATION_BEHAVIOR_ALWAYS_INVOICE = 'always_invoice';
+ const PRORATION_BEHAVIOR_CREATE_PRORATIONS = 'create_prorations';
+ const PRORATION_BEHAVIOR_NONE = 'none';
+ const STATUS_ACTIVE = 'active';
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_INCOMPLETE = 'incomplete';
+ const STATUS_INCOMPLETE_EXPIRED = 'incomplete_expired';
+ const STATUS_PAST_DUE = 'past_due';
+ const STATUS_PAUSED = 'paused';
+ const STATUS_TRIALING = 'trialing';
+ const STATUS_UNPAID = 'unpaid';
+ use \Stripe\ApiOperations\Delete {
+ delete as protected _delete;
+ }
+ public static function getSavedNestedResources()
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription the updated subscription
+ */
+ public function deleteDiscount($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription the canceled subscription
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription the resumed subscription
+ */
+ public function resume($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult the subscription search results
+ */
+ public static function search($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Subscription items allow you to create customer subscriptions with more than one
+ * plan, making it easy to represent complex billing relationships.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $billing_thresholds Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property \Stripe\Plan $plan
You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.
Plans define the base price, currency, and billing cycle for recurring purchases of products. Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. Products help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme.
For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once.
+ * @property null|int $quantity The quantity of the plan to which the customer should be subscribed.
+ * @property string $subscription The subscription this subscription_item belongs to.
+ * @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to this subscription_item. When set, the default_tax_rates on the subscription do not apply to this subscription_item.
+ */
+class SubscriptionItem extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'subscription_item';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\NestedResource;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const PATH_USAGE_RECORDS = '/usage_records';
+ /**
+ * @param null|string $id the ID of the subscription item on which to create the usage record
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\UsageRecord
+ */
+ public static function createUsageRecord($id, $params = null, $opts = null)
+ {
+ }
+ const PATH_USAGE_RECORD_SUMMARIES = '/usage_record_summaries';
+ /**
+ * @param string $id the ID of the subscription item on which to retrieve the usage record summaries
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\UsageRecordSummary> the list of usage record summaries
+ */
+ public static function allUsageRecordSummaries($id, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * A subscription schedule allows you to create and manage the lifecycle of a
+ * subscription by predefining expected changes.
+ *
+ * Related guide: Subscription
+ * Schedules.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string|\Stripe\StripeObject $application ID of the Connect Application that created the schedule.
+ * @property null|int $canceled_at Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
+ * @property null|int $completed_at Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|\Stripe\StripeObject $current_phase Object representing the start and end dates for the current phase of the subscription schedule, if it is active.
+ * @property string|\Stripe\Customer $customer ID of the customer who owns the subscription schedule.
+ * @property \Stripe\StripeObject $default_settings
+ * @property string $end_behavior Behavior of the subscription schedule and underlying subscription when it ends. Possible values are release or cancel with the default being release. release will end the subscription schedule and keep the underlying subscription running.cancel will end the subscription schedule and cancel the underlying subscription.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property \Stripe\StripeObject[] $phases Configuration for the subscription schedule's phases.
+ * @property null|int $released_at Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
+ * @property null|string $released_subscription ID of the subscription once managed by the subscription schedule (if it is released).
+ * @property string $status The present status of the subscription schedule. Possible values are not_started, active, completed, released, and canceled. You can read more about the different states in our behavior guide.
+ * @property null|string|\Stripe\Subscription $subscription ID of the subscription managed by the subscription schedule.
+ * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this subscription schedule belongs to.
+ */
+class SubscriptionSchedule extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'subscription_schedule';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule the canceled subscription schedule
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule the released subscription schedule
+ */
+ public function release($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Tax codes classify
+ * goods and services for tax purposes.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property string $description A detailed description of which types of products the tax code represents.
+ * @property string $name A short name for the tax code.
+ */
+class TaxCode extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'tax_code';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+}
+/**
+ * You can add one or multiple tax IDs to a customer. A customer's tax IDs
+ * are displayed on invoices and credit notes issued for the customer.
+ *
+ * Related guide: Customer
+ * Tax Identification Numbers.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $country Two-letter ISO code representing the country of the tax ID.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string|\Stripe\Customer $customer ID of the customer.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string $type Type of the tax ID, one of ae_trn, au_abn, au_arn, bg_uic, br_cnpj, br_cpf, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, ch_vat, cl_tin, eg_tin, es_cif, eu_oss_vat, eu_vat, gb_vat, ge_vat, hk_br, hu_tin, id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, jp_trn, ke_pin, kr_brn, li_uid, mx_rfc, my_frp, my_itn, my_sst, no_vat, nz_gst, ph_tin, ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, th_vat, tr_tin, tw_vat, ua_vat, us_ein, or za_vat. Note that some legacy tax IDs have type unknown
+ * @property string $value Value of the tax ID.
+ * @property null|\Stripe\StripeObject $verification Tax ID verification information.
+ */
+class TaxId extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'tax_id';
+ use \Stripe\ApiOperations\Delete;
+ const TYPE_AE_TRN = 'ae_trn';
+ const TYPE_AU_ABN = 'au_abn';
+ const TYPE_AU_ARN = 'au_arn';
+ const TYPE_BG_UIC = 'bg_uic';
+ const TYPE_BR_CNPJ = 'br_cnpj';
+ const TYPE_BR_CPF = 'br_cpf';
+ const TYPE_CA_BN = 'ca_bn';
+ const TYPE_CA_GST_HST = 'ca_gst_hst';
+ const TYPE_CA_PST_BC = 'ca_pst_bc';
+ const TYPE_CA_PST_MB = 'ca_pst_mb';
+ const TYPE_CA_PST_SK = 'ca_pst_sk';
+ const TYPE_CA_QST = 'ca_qst';
+ const TYPE_CH_VAT = 'ch_vat';
+ const TYPE_CL_TIN = 'cl_tin';
+ const TYPE_EG_TIN = 'eg_tin';
+ const TYPE_ES_CIF = 'es_cif';
+ const TYPE_EU_OSS_VAT = 'eu_oss_vat';
+ const TYPE_EU_VAT = 'eu_vat';
+ const TYPE_GB_VAT = 'gb_vat';
+ const TYPE_GE_VAT = 'ge_vat';
+ const TYPE_HK_BR = 'hk_br';
+ const TYPE_HU_TIN = 'hu_tin';
+ const TYPE_ID_NPWP = 'id_npwp';
+ const TYPE_IL_VAT = 'il_vat';
+ const TYPE_IN_GST = 'in_gst';
+ const TYPE_IS_VAT = 'is_vat';
+ const TYPE_JP_CN = 'jp_cn';
+ const TYPE_JP_RN = 'jp_rn';
+ const TYPE_JP_TRN = 'jp_trn';
+ const TYPE_KE_PIN = 'ke_pin';
+ const TYPE_KR_BRN = 'kr_brn';
+ const TYPE_LI_UID = 'li_uid';
+ const TYPE_MX_RFC = 'mx_rfc';
+ const TYPE_MY_FRP = 'my_frp';
+ const TYPE_MY_ITN = 'my_itn';
+ const TYPE_MY_SST = 'my_sst';
+ const TYPE_NO_VAT = 'no_vat';
+ const TYPE_NZ_GST = 'nz_gst';
+ const TYPE_PH_TIN = 'ph_tin';
+ const TYPE_RU_INN = 'ru_inn';
+ const TYPE_RU_KPP = 'ru_kpp';
+ const TYPE_SA_VAT = 'sa_vat';
+ const TYPE_SG_GST = 'sg_gst';
+ const TYPE_SG_UEN = 'sg_uen';
+ const TYPE_SI_TIN = 'si_tin';
+ const TYPE_TH_VAT = 'th_vat';
+ const TYPE_TR_TIN = 'tr_tin';
+ const TYPE_TW_VAT = 'tw_vat';
+ const TYPE_UA_VAT = 'ua_vat';
+ const TYPE_UNKNOWN = 'unknown';
+ const TYPE_US_EIN = 'us_ein';
+ const TYPE_ZA_VAT = 'za_vat';
+ const VERIFICATION_STATUS_PENDING = 'pending';
+ const VERIFICATION_STATUS_UNAVAILABLE = 'unavailable';
+ const VERIFICATION_STATUS_UNVERIFIED = 'unverified';
+ const VERIFICATION_STATUS_VERIFIED = 'verified';
+ /**
+ * @return string the API URL for this tax id
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param array|string $_id
+ * @param null|array|string $_opts
+ *
+ * @throws \Stripe\Exception\BadMethodCallException
+ */
+ public static function retrieve($_id, $_opts = null)
+ {
+ }
+}
+/**
+ * Tax rates can be applied to invoices, subscriptions and
+ * Checkout
+ * Sessions to collect tax.
+ *
+ * Related guide: Tax
+ * Rates.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $active Defaults to true. When set to false, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
+ * @property null|string $country Two-letter country code (ISO 3166-1 alpha-2).
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $description An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
+ * @property string $display_name The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
+ * @property bool $inclusive This specifies if the tax rate is inclusive or exclusive.
+ * @property null|string $jurisdiction The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property float $percentage This represents the tax rate percent out of 100.
+ * @property null|string $state ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States.
+ * @property null|string $tax_type The high-level tax type, such as vat or sales_tax.
+ */
+class TaxRate extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'tax_rate';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const TAX_TYPE_GST = 'gst';
+ const TAX_TYPE_HST = 'hst';
+ const TAX_TYPE_IGST = 'igst';
+ const TAX_TYPE_JCT = 'jct';
+ const TAX_TYPE_PST = 'pst';
+ const TAX_TYPE_QST = 'qst';
+ const TAX_TYPE_RST = 'rst';
+ const TAX_TYPE_SALES_TAX = 'sales_tax';
+ const TAX_TYPE_VAT = 'vat';
+}
+namespace Stripe\Terminal;
+
+/**
+ * A Configurations object represents how features should be configured for
+ * terminal readers.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $bbpos_wisepos_e
+ * @property null|bool $is_account_default Whether this Configuration is the default for your account
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $tipping
+ * @property null|\Stripe\StripeObject $verifone_p400
+ */
+class Configuration extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'terminal.configuration';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
+ *
+ * Related guide: Fleet
+ * Management.
+ *
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $location The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see the docs on scoping connection tokens.
+ * @property string $secret Your application should pass this token to the Stripe Terminal SDK.
+ */
+class ConnectionToken extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'terminal.connection_token';
+ use \Stripe\ApiOperations\Create;
+}
+/**
+ * A Location represents a grouping of readers.
+ *
+ * Related guide: Fleet
+ * Management.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property \Stripe\StripeObject $address
+ * @property null|string $configuration_overrides The ID of a configuration that will be used to customize all readers in this location.
+ * @property string $display_name The display name of the location.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ */
+class Location extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'terminal.location';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+/**
+ * A Reader represents a physical device for accepting payment details.
+ *
+ * Related guide: Connecting to a
+ * Reader.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $action The most recent action performed by the reader.
+ * @property null|string $device_sw_version The current software version of the reader.
+ * @property string $device_type Type of reader, one of bbpos_wisepad3, stripe_m2, bbpos_chipper2x, bbpos_wisepos_e, verifone_P400, or simulated_wisepos_e.
+ * @property null|string $ip_address The local IP address of the reader.
+ * @property string $label Custom label given to the reader for easier identification.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string|\Stripe\Terminal\Location $location The location identifier of the reader.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $serial_number Serial number of the reader.
+ * @property null|string $status The networking status of the reader.
+ */
+class Reader extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'terminal.reader';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader the canceled reader
+ */
+ public function cancelAction($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader the processed reader
+ */
+ public function processPaymentIntent($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader the processed reader
+ */
+ public function processSetupIntent($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader the refunded reader
+ */
+ public function refundPayment($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader the seted reader
+ */
+ public function setReaderDisplay($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe\TestHelpers;
+
+/**
+ * A test clock enables deterministic control over objects in testmode. With a test
+ * clock, you can create objects at a frozen time in the past or future, and
+ * advance to a specific future time to observe webhooks and state changes. After
+ * the clock advances, you can either validate the current state of your scenario
+ * (and test your assumptions), change the current state of your scenario (and test
+ * more complex scenarios), or keep advancing forward in time.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property int $deletes_after Time at which this clock is scheduled to auto delete.
+ * @property int $frozen_time Time at which all objects belonging to this clock are frozen.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|string $name The custom name supplied at creation.
+ * @property string $status The status of the Test Clock.
+ */
+class TestClock extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'test_helpers.test_clock';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ const STATUS_ADVANCING = 'advancing';
+ const STATUS_INTERNAL_FAILURE = 'internal_failure';
+ const STATUS_READY = 'ready';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock the advanced test clock
+ */
+ public function advance($params = null, $opts = null)
+ {
+ }
+}
+namespace Stripe;
+
+/**
+ * Tokenization is the process Stripe uses to collect sensitive card or bank
+ * account details, or personally identifiable information (PII), directly from
+ * your customers in a secure manner. A token representing this information is
+ * returned to your server to use. You should use our recommended payments integrations to
+ * perform this process client-side. This ensures that no sensitive card data
+ * touches your server, and allows your integration to operate in a PCI-compliant
+ * way.
+ *
+ * If you cannot use client-side tokenization, you can also create tokens using the
+ * API with either your publishable or secret API key. Keep in mind that if your
+ * integration uses this method, you are responsible for any PCI compliance that
+ * may be required, and you must keep your secret API key safe. Unlike with
+ * client-side tokenization, your customer's information is not sent directly to
+ * Stripe, so we cannot determine how it is handled or stored.
+ *
+ * Tokens cannot be stored or used more than once. To store card or bank account
+ * information for later use, you can create Customer objects or Custom accounts. Note
+ * that Radar, our integrated solution
+ * for automatic fraud protection, performs best with integrations that use
+ * client-side tokenization.
+ *
+ * Related guide: Accept
+ * a payment
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\BankAccount $bank_account
These bank accounts are payment methods on Customer objects.
On the other hand External Accounts are transfer destinations on Account objects for Custom accounts. They can be bank accounts or debit cards as well, and are documented in the links above.
You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later.
+ * @property null|string $client_ip IP address of the client that generated the token.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string $type Type of the token: account, bank_account, card, or pii.
+ * @property bool $used Whether this token has already been used (tokens can be used only once).
+ */
+class Token extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'token';
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ const TYPE_ACCOUNT = 'account';
+ const TYPE_BANK_ACCOUNT = 'bank_account';
+ const TYPE_CARD = 'card';
+ const TYPE_PII = 'pii';
+}
+/**
+ * To top up your Stripe balance, you create a top-up object. You can retrieve
+ * individual top-ups, as well as list all top-ups. Top-ups are identified by a
+ * unique, random ID.
+ *
+ * Related guide: Topping Up your
+ * Platform Account.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount transferred.
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the balance transaction that describes the impact of this top-up on your account balance. May not be specified depending on status of top-up.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|int $expected_availability_date Date the funds are expected to arrive in your Stripe account for payouts. This factors in delays like weekends or bank holidays. May not be specified depending on status of top-up.
+ * @property null|string $failure_code Error code explaining reason for top-up failure if available (see the errors section for a list of codes).
+ * @property null|string $failure_message Message to user further explaining reason for top-up failure if available.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\Source $source For most Stripe users, the source of every top-up is a bank account. This hash is then the source object describing that bank account.
+ * @property null|string $statement_descriptor Extra information about a top-up. This will appear on your source's bank statement. It must contain at least one letter.
+ * @property string $status The status of the top-up is either canceled, failed, pending, reversed, or succeeded.
+ * @property null|string $transfer_group A string that identifies this top-up as part of a group.
+ */
+class Topup extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'topup';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_FAILED = 'failed';
+ const STATUS_PENDING = 'pending';
+ const STATUS_REVERSED = 'reversed';
+ const STATUS_SUCCEEDED = 'succeeded';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup the canceled topup
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * A Transfer object is created when you move funds between Stripe
+ * accounts as part of Connect.
+ *
+ * Before April 6, 2017, transfers also represented movement of funds from a Stripe
+ * account to a card or bank account. This behavior has since been split out into a
+ * Payout object, with
+ * corresponding payout endpoints. For more information, read about the transfer/payout split.
+ *
+ * Related guide: Creating Separate
+ * Charges and Transfers.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount in %s to be transferred.
+ * @property int $amount_reversed Amount in %s reversed (can be less than the amount attribute on the transfer if a partial reversal was issued).
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact of this transfer on your account balance.
+ * @property int $created Time that this record of the transfer was first created.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string|\Stripe\Account $destination ID of the Stripe account the transfer was sent to.
+ * @property null|string|\Stripe\Charge $destination_payment If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property \Stripe\Collection<\Stripe\TransferReversal> $reversals A list of reversals that have been applied to the transfer.
+ * @property bool $reversed Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false.
+ * @property null|string|\Stripe\Charge $source_transaction ID of the charge or payment that was used to fund the transfer. If null, the transfer was funded from the available balance.
+ * @property null|string $source_type The source balance this transfer came from. One of card, fpx, or bank_account.
+ * @property null|string $transfer_group A string that identifies this transaction as part of a group. See the Connect documentation for details.
+ */
+class Transfer extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'transfer';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\NestedResource;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const SOURCE_TYPE_BANK_ACCOUNT = 'bank_account';
+ const SOURCE_TYPE_CARD = 'card';
+ const SOURCE_TYPE_FPX = 'fpx';
+ const PATH_REVERSALS = '/reversals';
+ /**
+ * @param string $id the ID of the transfer on which to retrieve the transfer reversals
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TransferReversal> the list of transfer reversals
+ */
+ public static function allReversals($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the transfer on which to create the transfer reversal
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public static function createReversal($id, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the transfer to which the transfer reversal belongs
+ * @param string $reversalId the ID of the transfer reversal to retrieve
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public static function retrieveReversal($id, $reversalId, $params = null, $opts = null)
+ {
+ }
+ /**
+ * @param string $id the ID of the transfer to which the transfer reversal belongs
+ * @param string $reversalId the ID of the transfer reversal to update
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public static function updateReversal($id, $reversalId, $params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Stripe Connect platforms can
+ * reverse transfers made to a connected account, either entirely or partially, and
+ * can also specify whether to refund any related application fees. Transfer
+ * reversals add to the platform's balance and subtract from the destination
+ * account's balance.
+ *
+ * Reversing a transfer that was made for a destination charge is allowed only
+ * up to the amount of the charge. It is possible to reverse a transfer_group
+ * transfer only if the destination account has enough balance to cover the
+ * reversal.
+ *
+ * Related guide: Reversing
+ * Transfers.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount, in %s.
+ * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact on your account balance.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string|\Stripe\Refund $destination_payment_refund Linked payment refund for the transfer reversal.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string|\Stripe\Refund $source_refund ID of the refund responsible for the transfer reversal.
+ * @property string|\Stripe\Transfer $transfer ID of the transfer that was reversed.
+ */
+class TransferReversal extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'transfer_reversal';
+ use \Stripe\ApiOperations\Update {
+ save as protected _save;
+ }
+ /**
+ * @return string the API URL for this Stripe transfer reversal
+ */
+ public function instanceUrl()
+ {
+ }
+ /**
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return TransferReversal the saved reversal
+ */
+ public function save($opts = null)
+ {
+ }
+}
+namespace Stripe\Treasury;
+
+/**
+ * You can reverse some ReceivedCredits
+ * depending on their network and source flow. Reversing a ReceivedCredit leads to
+ * the creation of a new object known as a CreditReversal.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in cents) transferred.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string $financial_account The FinancialAccount to reverse funds from.
+ * @property null|string $hosted_regulatory_receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $network The rails used to reverse the funds.
+ * @property string $received_credit The ReceivedCredit being reversed.
+ * @property string $status Status of the CreditReversal
+ * @property \Stripe\StripeObject $status_transitions
+ * @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
+ */
+class CreditReversal extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.credit_reversal';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ const NETWORK_ACH = 'ach';
+ const NETWORK_STRIPE = 'stripe';
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_POSTED = 'posted';
+ const STATUS_PROCESSING = 'processing';
+}
+/**
+ * You can reverse some ReceivedDebits depending
+ * on their network and source flow. Reversing a ReceivedDebit leads to the
+ * creation of a new object known as a DebitReversal.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in cents) transferred.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $financial_account The FinancialAccount to reverse funds from.
+ * @property null|string $hosted_regulatory_receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ * @property null|\Stripe\StripeObject $linked_flows Other flows linked to a DebitReversal.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $network The rails used to reverse the funds.
+ * @property string $received_debit The ReceivedDebit being reversed.
+ * @property string $status Status of the DebitReversal
+ * @property \Stripe\StripeObject $status_transitions
+ * @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
+ */
+class DebitReversal extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.debit_reversal';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ const NETWORK_ACH = 'ach';
+ const NETWORK_CARD = 'card';
+ const STATUS_FAILED = 'failed';
+ const STATUS_PROCESSING = 'processing';
+ const STATUS_SUCCEEDED = 'succeeded';
+}
+/**
+ * Stripe Treasury provides users with a container for money called a
+ * FinancialAccount that is separate from their Payments balance. FinancialAccounts
+ * serve as the source and destination of Treasury’s money movement APIs.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string[] $active_features The array of paths to active Features in the Features hash.
+ * @property \Stripe\StripeObject $balance Balance information for the FinancialAccount
+ * @property string $country Two-letter country code (ISO 3166-1 alpha-2).
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|\Stripe\Treasury\FinancialAccountFeatures $features Encodes whether a FinancialAccount has access to a particular Feature, with a status enum and associated status_details. Stripe or the platform can control Features via the requested field.
+ * @property \Stripe\StripeObject[] $financial_addresses The set of credentials that resolve to a FinancialAccount.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string[] $pending_features The array of paths to pending Features in the Features hash.
+ * @property null|\Stripe\StripeObject $platform_restrictions The set of functionalities that the platform can restrict on the FinancialAccount.
+ * @property null|string[] $restricted_features The array of paths to restricted Features in the Features hash.
+ * @property string $status The enum specifying what state the account is in.
+ * @property \Stripe\StripeObject $status_details
+ * @property string[] $supported_currencies The currencies the FinancialAccount can hold a balance in. Three-letter ISO currency code, in lowercase.
+ */
+class FinancialAccount extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.financial_account';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+ const STATUS_CLOSED = 'closed';
+ const STATUS_OPEN = 'open';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount the retrieved financial account
+ */
+ public function retrieveFeatures($params = null, $opts = null)
+ {
+ }
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\FinancialAccount the updated financial account
+ */
+ public function updateFeatures($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Encodes whether a FinancialAccount has access to a particular Feature, with a
+ * status enum and associated status_details. Stripe or
+ * the platform can control Features via the requested field.
+ *
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|\Stripe\StripeObject $card_issuing Toggle settings for enabling/disabling a feature
+ * @property null|\Stripe\StripeObject $deposit_insurance Toggle settings for enabling/disabling a feature
+ * @property null|\Stripe\StripeObject $financial_addresses Settings related to Financial Addresses features on a Financial Account
+ * @property null|\Stripe\StripeObject $inbound_transfers InboundTransfers contains inbound transfers features for a FinancialAccount.
+ * @property null|\Stripe\StripeObject $intra_stripe_flows Toggle settings for enabling/disabling a feature
+ * @property null|\Stripe\StripeObject $outbound_payments Settings related to Outbound Payments features on a Financial Account
+ * @property null|\Stripe\StripeObject $outbound_transfers OutboundTransfers contains outbound transfers features for a FinancialAccount.
+ */
+class FinancialAccountFeatures extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.financial_account_features';
+}
+/**
+ * Use InboundTransfers
+ * to add funds to your FinancialAccount via a
+ * PaymentMethod that is owned by you. The funds will be transferred via an ACH
+ * debit.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in cents) transferred.
+ * @property bool $cancelable Returns true if the InboundTransfer is able to be canceled.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|\Stripe\StripeObject $failure_details Details about this InboundTransfer's failure. Only set when status is failed.
+ * @property string $financial_account The FinancialAccount that received the funds.
+ * @property null|string $hosted_regulatory_receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ * @property \Stripe\StripeObject $linked_flows
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property string $origin_payment_method The origin payment method to be debited for an InboundTransfer.
+ * @property null|\Stripe\StripeObject $origin_payment_method_details Details about the PaymentMethod for an InboundTransfer.
+ * @property null|bool $returned Returns true if the funds for an InboundTransfer were returned after the InboundTransfer went to the succeeded state.
+ * @property string $statement_descriptor Statement descriptor shown when funds are debited from the source. Not all payment networks support statement_descriptor.
+ * @property string $status Status of the InboundTransfer: processing, succeeded, failed, and canceled. An InboundTransfer is processing if it is created and pending. The status changes to succeeded once the funds have been "confirmed" and a transaction is created and posted. The status changes to failed if the transfer fails.
+ * @property \Stripe\StripeObject $status_transitions
+ * @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
+ */
+class InboundTransfer extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.inbound_transfer';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_FAILED = 'failed';
+ const STATUS_PROCESSING = 'processing';
+ const STATUS_SUCCEEDED = 'succeeded';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\InboundTransfer the canceled inbound transfer
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Use OutboundPayments to send funds to another party's external bank account or
+ * FinancialAccount.
+ * To send money to an account belonging to the same user, use an OutboundTransfer.
+ *
+ * Simulate OutboundPayment state changes with the
+ * /v1/test_helpers/treasury/outbound_payments endpoints. These
+ * methods can only be called on test mode objects.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in cents) transferred.
+ * @property bool $cancelable Returns true if the object can be canceled, and false otherwise.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $customer ID of the customer to whom an OutboundPayment is sent.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string $destination_payment_method The PaymentMethod via which an OutboundPayment is sent. This field can be empty if the OutboundPayment was created using destination_payment_method_data.
+ * @property null|\Stripe\StripeObject $destination_payment_method_details Details about the PaymentMethod for an OutboundPayment.
+ * @property null|\Stripe\StripeObject $end_user_details Details about the end user.
+ * @property int $expected_arrival_date The date when funds are expected to arrive in the destination account.
+ * @property string $financial_account The FinancialAccount that funds were pulled from.
+ * @property null|string $hosted_regulatory_receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\StripeObject $returned_details Details about a returned OutboundPayment. Only set when the status is returned.
+ * @property string $statement_descriptor The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).
+ * @property string $status Current status of the OutboundPayment: processing, failed, posted, returned, canceled. An OutboundPayment is processing if it has been created and is pending. The status changes to posted once the OutboundPayment has been "confirmed" and funds have left the account, or to failed or canceled. If an OutboundPayment fails to arrive at its destination, its status will change to returned.
+ * @property \Stripe\StripeObject $status_transitions
+ * @property string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
+ */
+class OutboundPayment extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.outbound_payment';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_FAILED = 'failed';
+ const STATUS_POSTED = 'posted';
+ const STATUS_PROCESSING = 'processing';
+ const STATUS_RETURNED = 'returned';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundPayment the canceled outbound payment
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * Use OutboundTransfers to transfer funds from a FinancialAccount to a
+ * PaymentMethod belonging to the same entity. To send funds to a different party,
+ * use OutboundPayments
+ * instead. You can send funds over ACH rails or through a domestic wire transfer
+ * to a user's own external bank account.
+ *
+ * Simulate OutboundTransfer state changes with the
+ * /v1/test_helpers/treasury/outbound_transfers endpoints. These
+ * methods can only be called on test mode objects.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in cents) transferred.
+ * @property bool $cancelable Returns true if the object can be canceled, and false otherwise.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string $destination_payment_method The PaymentMethod used as the payment instrument for an OutboundTransfer.
+ * @property \Stripe\StripeObject $destination_payment_method_details
+ * @property int $expected_arrival_date The date when funds are expected to arrive in the destination account.
+ * @property string $financial_account The FinancialAccount that funds were pulled from.
+ * @property null|string $hosted_regulatory_receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|\Stripe\StripeObject $returned_details Details about a returned OutboundTransfer. Only set when the status is returned.
+ * @property string $statement_descriptor Information about the OutboundTransfer to be sent to the recipient account.
+ * @property string $status Current status of the OutboundTransfer: processing, failed, canceled, posted, returned. An OutboundTransfer is processing if it has been created and is pending. The status changes to posted once the OutboundTransfer has been "confirmed" and funds have left the account, or to failed or canceled. If an OutboundTransfer fails to arrive at its destination, its status will change to returned.
+ * @property \Stripe\StripeObject $status_transitions
+ * @property string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
+ */
+class OutboundTransfer extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.outbound_transfer';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Retrieve;
+ const STATUS_CANCELED = 'canceled';
+ const STATUS_FAILED = 'failed';
+ const STATUS_POSTED = 'posted';
+ const STATUS_PROCESSING = 'processing';
+ const STATUS_RETURNED = 'returned';
+ /**
+ * @param null|array $params
+ * @param null|array|string $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Treasury\OutboundTransfer the canceled outbound transfer
+ */
+ public function cancel($params = null, $opts = null)
+ {
+ }
+}
+/**
+ * ReceivedCredits represent funds sent to a FinancialAccount (for
+ * example, via ACH or wire). These money movements are not initiated from the
+ * FinancialAccount.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in cents) transferred.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string $failure_code Reason for the failure. A ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen.
+ * @property null|string $financial_account The FinancialAccount that received the funds.
+ * @property null|string $hosted_regulatory_receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ * @property \Stripe\StripeObject $initiating_payment_method_details
+ * @property \Stripe\StripeObject $linked_flows
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string $network The rails used to send the funds.
+ * @property null|\Stripe\StripeObject $reversal_details Details describing when a ReceivedCredit may be reversed.
+ * @property string $status Status of the ReceivedCredit. ReceivedCredits are created either succeeded (approved) or failed (declined). If a ReceivedCredit is declined, the failure reason can be found in the failure_code field.
+ * @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
+ */
+class ReceivedCredit extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.received_credit';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const FAILURE_CODE_ACCOUNT_CLOSED = 'account_closed';
+ const FAILURE_CODE_ACCOUNT_FROZEN = 'account_frozen';
+ const FAILURE_CODE_OTHER = 'other';
+ const NETWORK_ACH = 'ach';
+ const NETWORK_CARD = 'card';
+ const NETWORK_STRIPE = 'stripe';
+ const NETWORK_US_DOMESTIC_WIRE = 'us_domestic_wire';
+ const STATUS_FAILED = 'failed';
+ const STATUS_SUCCEEDED = 'succeeded';
+}
+/**
+ * ReceivedDebits represent funds pulled from a FinancialAccount.
+ * These are not initiated from the FinancialAccount.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in cents) transferred.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|string $failure_code Reason for the failure. A ReceivedDebit might fail because the FinancialAccount doesn't have sufficient funds, is closed, or is frozen.
+ * @property null|string $financial_account The FinancialAccount that funds were pulled from.
+ * @property null|string $hosted_regulatory_receipt_url A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ * @property null|\Stripe\StripeObject $initiating_payment_method_details
+ * @property \Stripe\StripeObject $linked_flows
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string $network The network used for the ReceivedDebit.
+ * @property null|\Stripe\StripeObject $reversal_details Details describing when a ReceivedDebit might be reversed.
+ * @property string $status Status of the ReceivedDebit. ReceivedDebits are created with a status of either succeeded (approved) or failed (declined). The failure reason can be found under the failure_code.
+ * @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
+ */
+class ReceivedDebit extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.received_debit';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const FAILURE_CODE_ACCOUNT_CLOSED = 'account_closed';
+ const FAILURE_CODE_ACCOUNT_FROZEN = 'account_frozen';
+ const FAILURE_CODE_INSUFFICIENT_FUNDS = 'insufficient_funds';
+ const FAILURE_CODE_OTHER = 'other';
+ const NETWORK_ACH = 'ach';
+ const NETWORK_CARD = 'card';
+ const NETWORK_STRIPE = 'stripe';
+ const STATUS_FAILED = 'failed';
+ const STATUS_SUCCEEDED = 'succeeded';
+}
+/**
+ * Transactions represent changes to a FinancialAccount's
+ * balance.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property int $amount Amount (in cents) transferred.
+ * @property \Stripe\StripeObject $balance_impact Change to a FinancialAccount's balance
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property string $description An arbitrary string attached to the object. Often useful for displaying to users.
+ * @property null|\Stripe\Collection<\Stripe\Treasury\TransactionEntry> $entries A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints.
+ * @property string $financial_account The FinancialAccount associated with this object.
+ * @property null|string $flow ID of the flow that created the Transaction.
+ * @property null|\Stripe\StripeObject $flow_details Details of the flow that created the Transaction.
+ * @property string $flow_type Type of the flow that created the Transaction.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string $status Status of the Transaction.
+ * @property \Stripe\StripeObject $status_transitions
+ */
+class Transaction extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.transaction';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const FLOW_TYPE_CREDIT_REVERSAL = 'credit_reversal';
+ const FLOW_TYPE_DEBIT_REVERSAL = 'debit_reversal';
+ const FLOW_TYPE_INBOUND_TRANSFER = 'inbound_transfer';
+ const FLOW_TYPE_ISSUING_AUTHORIZATION = 'issuing_authorization';
+ const FLOW_TYPE_OTHER = 'other';
+ const FLOW_TYPE_OUTBOUND_PAYMENT = 'outbound_payment';
+ const FLOW_TYPE_OUTBOUND_TRANSFER = 'outbound_transfer';
+ const FLOW_TYPE_RECEIVED_CREDIT = 'received_credit';
+ const FLOW_TYPE_RECEIVED_DEBIT = 'received_debit';
+ const STATUS_OPEN = 'open';
+ const STATUS_POSTED = 'posted';
+ const STATUS_VOID = 'void';
+}
+/**
+ * TransactionEntries represent individual units of money movements within a single
+ * Transaction.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property \Stripe\StripeObject $balance_impact Change to a FinancialAccount's balance
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ * @property int $effective_at When the TransactionEntry will impact the FinancialAccount's balance.
+ * @property string $financial_account The FinancialAccount associated with this object.
+ * @property null|string $flow Token of the flow associated with the TransactionEntry.
+ * @property null|\Stripe\StripeObject $flow_details Details of the flow associated with the TransactionEntry.
+ * @property string $flow_type Type of the flow associated with the TransactionEntry.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
+ * @property string $type The specific money movement that generated the TransactionEntry.
+ */
+class TransactionEntry extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'treasury.transaction_entry';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ const FLOW_TYPE_CREDIT_REVERSAL = 'credit_reversal';
+ const FLOW_TYPE_DEBIT_REVERSAL = 'debit_reversal';
+ const FLOW_TYPE_INBOUND_TRANSFER = 'inbound_transfer';
+ const FLOW_TYPE_ISSUING_AUTHORIZATION = 'issuing_authorization';
+ const FLOW_TYPE_OTHER = 'other';
+ const FLOW_TYPE_OUTBOUND_PAYMENT = 'outbound_payment';
+ const FLOW_TYPE_OUTBOUND_TRANSFER = 'outbound_transfer';
+ const FLOW_TYPE_RECEIVED_CREDIT = 'received_credit';
+ const FLOW_TYPE_RECEIVED_DEBIT = 'received_debit';
+ const TYPE_CREDIT_REVERSAL = 'credit_reversal';
+ const TYPE_CREDIT_REVERSAL_POSTING = 'credit_reversal_posting';
+ const TYPE_DEBIT_REVERSAL = 'debit_reversal';
+ const TYPE_INBOUND_TRANSFER = 'inbound_transfer';
+ const TYPE_INBOUND_TRANSFER_RETURN = 'inbound_transfer_return';
+ const TYPE_ISSUING_AUTHORIZATION_HOLD = 'issuing_authorization_hold';
+ const TYPE_ISSUING_AUTHORIZATION_RELEASE = 'issuing_authorization_release';
+ const TYPE_OTHER = 'other';
+ const TYPE_OUTBOUND_PAYMENT = 'outbound_payment';
+ const TYPE_OUTBOUND_PAYMENT_CANCELLATION = 'outbound_payment_cancellation';
+ const TYPE_OUTBOUND_PAYMENT_FAILURE = 'outbound_payment_failure';
+ const TYPE_OUTBOUND_PAYMENT_POSTING = 'outbound_payment_posting';
+ const TYPE_OUTBOUND_PAYMENT_RETURN = 'outbound_payment_return';
+ const TYPE_OUTBOUND_TRANSFER = 'outbound_transfer';
+ const TYPE_OUTBOUND_TRANSFER_CANCELLATION = 'outbound_transfer_cancellation';
+ const TYPE_OUTBOUND_TRANSFER_FAILURE = 'outbound_transfer_failure';
+ const TYPE_OUTBOUND_TRANSFER_POSTING = 'outbound_transfer_posting';
+ const TYPE_OUTBOUND_TRANSFER_RETURN = 'outbound_transfer_return';
+ const TYPE_RECEIVED_CREDIT = 'received_credit';
+ const TYPE_RECEIVED_DEBIT = 'received_debit';
+}
+namespace Stripe;
+
+/**
+ * Usage records allow you to report customer usage and metrics to Stripe for
+ * metered billing of subscription prices.
+ *
+ * Related guide: Metered
+ * Billing.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property int $quantity The usage quantity for the specified date.
+ * @property string $subscription_item The ID of the subscription item this usage record contains data for.
+ * @property int $timestamp The timestamp when this usage occurred.
+ */
+class UsageRecord extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'usage_record';
+}
+/**
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $invoice The invoice in which this usage period has been billed for.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $period
+ * @property string $subscription_item The ID of the subscription item this summary is describing.
+ * @property int $total_usage The total usage within this usage period.
+ */
+class UsageRecordSummary extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'usage_record_summary';
+}
+namespace Stripe\Util;
+
+class ApiVersion
+{
+ const CURRENT = '2022-11-15';
+}
+/**
+ * CaseInsensitiveArray is an array-like class that ignores case for keys.
+ *
+ * It is used to store HTTP headers. Per RFC 2616, section 4.2:
+ * Each header field consists of a name followed by a colon (":") and the field value. Field names
+ * are case-insensitive.
+ *
+ * In the context of stripe-php, this is useful because the API will return headers with different
+ * case depending on whether HTTP/2 is used or not (with HTTP/2, headers are always in lowercase).
+ */
+class CaseInsensitiveArray implements \ArrayAccess, \Countable, \IteratorAggregate
+{
+ public function __construct($initial_array = [])
+ {
+ }
+ /**
+ * @return int
+ */
+ #[\ReturnTypeWillChange]
+ public function count()
+ {
+ }
+ /**
+ * @return \ArrayIterator
+ */
+ #[\ReturnTypeWillChange]
+ public function getIterator()
+ {
+ }
+ /**
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetSet($offset, $value)
+ {
+ }
+ /**
+ * @return bool
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetExists($offset)
+ {
+ }
+ /**
+ * @return void
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetUnset($offset)
+ {
+ }
+ /**
+ * @return mixed
+ */
+ #[\ReturnTypeWillChange]
+ public function offsetGet($offset)
+ {
+ }
+}
+/**
+ * Describes a logger instance.
+ *
+ * This is a subset of the interface of the same name in the PSR-3 logger
+ * interface. We guarantee to keep it compatible, but we'd redefined it here so
+ * that we don't have to pull in the extra dependencies for users who don't want
+ * it.
+ *
+ * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
+ * for the full interface specification.
+ *
+ * The message MUST be a string or object implementing __toString().
+ *
+ * The message MAY contain placeholders in the form: {foo} where foo
+ * will be replaced by the context data in key "foo".
+ *
+ * The context array can contain arbitrary data, the only assumption that
+ * can be made by implementors is that if an Exception instance is given
+ * to produce a stack trace, it MUST be in a key named "exception".
+ */
+interface LoggerInterface
+{
+ /**
+ * Runtime errors that do not require immediate action but should typically
+ * be logged and monitored.
+ *
+ * @param string $message
+ */
+ public function error($message, array $context = []);
+}
+/**
+ * A very basic implementation of LoggerInterface that has just enough
+ * functionality that it can be the default for this library.
+ */
+class DefaultLogger implements \Stripe\Util\LoggerInterface
+{
+ /** @var int */
+ public $messageType = 0;
+ /** @var null|string */
+ public $destination;
+ public function error($message, array $context = [])
+ {
+ }
+}
+class ObjectTypes
+{
+ /**
+ * @var array Mapping from object types to resource classes
+ */
+ const mapping = [\Stripe\Account::OBJECT_NAME => \Stripe\Account::class, \Stripe\AccountLink::OBJECT_NAME => \Stripe\AccountLink::class, \Stripe\ApplePayDomain::OBJECT_NAME => \Stripe\ApplePayDomain::class, \Stripe\ApplicationFee::OBJECT_NAME => \Stripe\ApplicationFee::class, \Stripe\ApplicationFeeRefund::OBJECT_NAME => \Stripe\ApplicationFeeRefund::class, \Stripe\Apps\Secret::OBJECT_NAME => \Stripe\Apps\Secret::class, \Stripe\Balance::OBJECT_NAME => \Stripe\Balance::class, \Stripe\BalanceTransaction::OBJECT_NAME => \Stripe\BalanceTransaction::class, \Stripe\BankAccount::OBJECT_NAME => \Stripe\BankAccount::class, \Stripe\BillingPortal\Configuration::OBJECT_NAME => \Stripe\BillingPortal\Configuration::class, \Stripe\BillingPortal\Session::OBJECT_NAME => \Stripe\BillingPortal\Session::class, \Stripe\Capability::OBJECT_NAME => \Stripe\Capability::class, \Stripe\Card::OBJECT_NAME => \Stripe\Card::class, \Stripe\CashBalance::OBJECT_NAME => \Stripe\CashBalance::class, \Stripe\Charge::OBJECT_NAME => \Stripe\Charge::class, \Stripe\Checkout\Session::OBJECT_NAME => \Stripe\Checkout\Session::class, \Stripe\Collection::OBJECT_NAME => \Stripe\Collection::class, \Stripe\CountrySpec::OBJECT_NAME => \Stripe\CountrySpec::class, \Stripe\Coupon::OBJECT_NAME => \Stripe\Coupon::class, \Stripe\CreditNote::OBJECT_NAME => \Stripe\CreditNote::class, \Stripe\CreditNoteLineItem::OBJECT_NAME => \Stripe\CreditNoteLineItem::class, \Stripe\Customer::OBJECT_NAME => \Stripe\Customer::class, \Stripe\CustomerBalanceTransaction::OBJECT_NAME => \Stripe\CustomerBalanceTransaction::class, \Stripe\CustomerCashBalanceTransaction::OBJECT_NAME => \Stripe\CustomerCashBalanceTransaction::class, \Stripe\Discount::OBJECT_NAME => \Stripe\Discount::class, \Stripe\Dispute::OBJECT_NAME => \Stripe\Dispute::class, \Stripe\EphemeralKey::OBJECT_NAME => \Stripe\EphemeralKey::class, \Stripe\Event::OBJECT_NAME => \Stripe\Event::class, \Stripe\ExchangeRate::OBJECT_NAME => \Stripe\ExchangeRate::class, \Stripe\File::OBJECT_NAME => \Stripe\File::class, \Stripe\File::OBJECT_NAME_ALT => \Stripe\File::class, \Stripe\FileLink::OBJECT_NAME => \Stripe\FileLink::class, \Stripe\FinancialConnections\Account::OBJECT_NAME => \Stripe\FinancialConnections\Account::class, \Stripe\FinancialConnections\AccountOwner::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwner::class, \Stripe\FinancialConnections\AccountOwnership::OBJECT_NAME => \Stripe\FinancialConnections\AccountOwnership::class, \Stripe\FinancialConnections\Session::OBJECT_NAME => \Stripe\FinancialConnections\Session::class, \Stripe\FundingInstructions::OBJECT_NAME => \Stripe\FundingInstructions::class, \Stripe\Identity\VerificationReport::OBJECT_NAME => \Stripe\Identity\VerificationReport::class, \Stripe\Identity\VerificationSession::OBJECT_NAME => \Stripe\Identity\VerificationSession::class, \Stripe\Invoice::OBJECT_NAME => \Stripe\Invoice::class, \Stripe\InvoiceItem::OBJECT_NAME => \Stripe\InvoiceItem::class, \Stripe\InvoiceLineItem::OBJECT_NAME => \Stripe\InvoiceLineItem::class, \Stripe\Issuing\Authorization::OBJECT_NAME => \Stripe\Issuing\Authorization::class, \Stripe\Issuing\Card::OBJECT_NAME => \Stripe\Issuing\Card::class, \Stripe\Issuing\CardDetails::OBJECT_NAME => \Stripe\Issuing\CardDetails::class, \Stripe\Issuing\Cardholder::OBJECT_NAME => \Stripe\Issuing\Cardholder::class, \Stripe\Issuing\Dispute::OBJECT_NAME => \Stripe\Issuing\Dispute::class, \Stripe\Issuing\Transaction::OBJECT_NAME => \Stripe\Issuing\Transaction::class, \Stripe\LineItem::OBJECT_NAME => \Stripe\LineItem::class, \Stripe\LoginLink::OBJECT_NAME => \Stripe\LoginLink::class, \Stripe\Mandate::OBJECT_NAME => \Stripe\Mandate::class, \Stripe\PaymentIntent::OBJECT_NAME => \Stripe\PaymentIntent::class, \Stripe\PaymentLink::OBJECT_NAME => \Stripe\PaymentLink::class, \Stripe\PaymentMethod::OBJECT_NAME => \Stripe\PaymentMethod::class, \Stripe\Payout::OBJECT_NAME => \Stripe\Payout::class, \Stripe\Person::OBJECT_NAME => \Stripe\Person::class, \Stripe\Plan::OBJECT_NAME => \Stripe\Plan::class, \Stripe\Price::OBJECT_NAME => \Stripe\Price::class, \Stripe\Product::OBJECT_NAME => \Stripe\Product::class, \Stripe\PromotionCode::OBJECT_NAME => \Stripe\PromotionCode::class, \Stripe\Quote::OBJECT_NAME => \Stripe\Quote::class, \Stripe\Radar\EarlyFraudWarning::OBJECT_NAME => \Stripe\Radar\EarlyFraudWarning::class, \Stripe\Radar\ValueList::OBJECT_NAME => \Stripe\Radar\ValueList::class, \Stripe\Radar\ValueListItem::OBJECT_NAME => \Stripe\Radar\ValueListItem::class, \Stripe\Refund::OBJECT_NAME => \Stripe\Refund::class, \Stripe\Reporting\ReportRun::OBJECT_NAME => \Stripe\Reporting\ReportRun::class, \Stripe\Reporting\ReportType::OBJECT_NAME => \Stripe\Reporting\ReportType::class, \Stripe\Review::OBJECT_NAME => \Stripe\Review::class, \Stripe\SearchResult::OBJECT_NAME => \Stripe\SearchResult::class, \Stripe\SetupAttempt::OBJECT_NAME => \Stripe\SetupAttempt::class, \Stripe\SetupIntent::OBJECT_NAME => \Stripe\SetupIntent::class, \Stripe\ShippingRate::OBJECT_NAME => \Stripe\ShippingRate::class, \Stripe\Sigma\ScheduledQueryRun::OBJECT_NAME => \Stripe\Sigma\ScheduledQueryRun::class, \Stripe\Source::OBJECT_NAME => \Stripe\Source::class, \Stripe\SourceTransaction::OBJECT_NAME => \Stripe\SourceTransaction::class, \Stripe\Subscription::OBJECT_NAME => \Stripe\Subscription::class, \Stripe\SubscriptionItem::OBJECT_NAME => \Stripe\SubscriptionItem::class, \Stripe\SubscriptionSchedule::OBJECT_NAME => \Stripe\SubscriptionSchedule::class, \Stripe\TaxCode::OBJECT_NAME => \Stripe\TaxCode::class, \Stripe\TaxId::OBJECT_NAME => \Stripe\TaxId::class, \Stripe\TaxRate::OBJECT_NAME => \Stripe\TaxRate::class, \Stripe\Terminal\Configuration::OBJECT_NAME => \Stripe\Terminal\Configuration::class, \Stripe\Terminal\ConnectionToken::OBJECT_NAME => \Stripe\Terminal\ConnectionToken::class, \Stripe\Terminal\Location::OBJECT_NAME => \Stripe\Terminal\Location::class, \Stripe\Terminal\Reader::OBJECT_NAME => \Stripe\Terminal\Reader::class, \Stripe\TestHelpers\TestClock::OBJECT_NAME => \Stripe\TestHelpers\TestClock::class, \Stripe\Token::OBJECT_NAME => \Stripe\Token::class, \Stripe\Topup::OBJECT_NAME => \Stripe\Topup::class, \Stripe\Transfer::OBJECT_NAME => \Stripe\Transfer::class, \Stripe\TransferReversal::OBJECT_NAME => \Stripe\TransferReversal::class, \Stripe\Treasury\CreditReversal::OBJECT_NAME => \Stripe\Treasury\CreditReversal::class, \Stripe\Treasury\DebitReversal::OBJECT_NAME => \Stripe\Treasury\DebitReversal::class, \Stripe\Treasury\FinancialAccount::OBJECT_NAME => \Stripe\Treasury\FinancialAccount::class, \Stripe\Treasury\FinancialAccountFeatures::OBJECT_NAME => \Stripe\Treasury\FinancialAccountFeatures::class, \Stripe\Treasury\InboundTransfer::OBJECT_NAME => \Stripe\Treasury\InboundTransfer::class, \Stripe\Treasury\OutboundPayment::OBJECT_NAME => \Stripe\Treasury\OutboundPayment::class, \Stripe\Treasury\OutboundTransfer::OBJECT_NAME => \Stripe\Treasury\OutboundTransfer::class, \Stripe\Treasury\ReceivedCredit::OBJECT_NAME => \Stripe\Treasury\ReceivedCredit::class, \Stripe\Treasury\ReceivedDebit::OBJECT_NAME => \Stripe\Treasury\ReceivedDebit::class, \Stripe\Treasury\Transaction::OBJECT_NAME => \Stripe\Treasury\Transaction::class, \Stripe\Treasury\TransactionEntry::OBJECT_NAME => \Stripe\Treasury\TransactionEntry::class, \Stripe\UsageRecord::OBJECT_NAME => \Stripe\UsageRecord::class, \Stripe\UsageRecordSummary::OBJECT_NAME => \Stripe\UsageRecordSummary::class, \Stripe\WebhookEndpoint::OBJECT_NAME => \Stripe\WebhookEndpoint::class];
+}
+/**
+ * A basic random generator. This is in a separate class so we the generator
+ * can be injected as a dependency and replaced with a mock in tests.
+ */
+class RandomGenerator
+{
+ /**
+ * Returns a random value between 0 and $max.
+ *
+ * @param float $max (optional)
+ *
+ * @return float
+ */
+ public function randFloat($max = 1.0)
+ {
+ }
+ /**
+ * Returns a v4 UUID.
+ *
+ * @return string
+ */
+ public function uuid()
+ {
+ }
+}
+class RequestOptions
+{
+ /**
+ * @var array a list of headers that should be persisted across requests
+ */
+ public static $HEADERS_TO_PERSIST = ['Stripe-Account', 'Stripe-Version'];
+ /** @var array */
+ public $headers;
+ /** @var null|string */
+ public $apiKey;
+ /** @var null|string */
+ public $apiBase;
+ /**
+ * @param null|string $key
+ * @param array $headers
+ * @param null|string $base
+ */
+ public function __construct($key = null, $headers = [], $base = null)
+ {
+ }
+ /**
+ * @return array
+ */
+ public function __debugInfo()
+ {
+ }
+ /**
+ * Unpacks an options array and merges it into the existing RequestOptions
+ * object.
+ *
+ * @param null|array|RequestOptions|string $options a key => value array
+ * @param bool $strict when true, forbid string form and arbitrary keys in array form
+ *
+ * @return RequestOptions
+ */
+ public function merge($options, $strict = false)
+ {
+ }
+ /**
+ * Discards all headers that we don't want to persist across requests.
+ */
+ public function discardNonPersistentHeaders()
+ {
+ }
+ /**
+ * Unpacks an options array into an RequestOptions object.
+ *
+ * @param null|array|RequestOptions|string $options a key => value array
+ * @param bool $strict when true, forbid string form and arbitrary keys in array form
+ *
+ * @throws \Stripe\Exception\InvalidArgumentException
+ *
+ * @return RequestOptions
+ */
+ public static function parse($options, $strict = false)
+ {
+ }
+}
+class Set implements \IteratorAggregate
+{
+ public function __construct($members = [])
+ {
+ }
+ public function includes($elt)
+ {
+ }
+ public function add($elt)
+ {
+ }
+ public function discard($elt)
+ {
+ }
+ public function toArray()
+ {
+ }
+ /**
+ * @return ArrayIterator
+ */
+ #[\ReturnTypeWillChange]
+ public function getIterator()
+ {
+ }
+}
+abstract class Util
+{
+ /**
+ * Whether the provided array (or other) is a list rather than a dictionary.
+ * A list is defined as an array for which all the keys are consecutive
+ * integers starting at 0. Empty arrays are considered to be lists.
+ *
+ * @param array|mixed $array
+ *
+ * @return bool true if the given object is a list
+ */
+ public static function isList($array)
+ {
+ }
+ /**
+ * Converts a response from the Stripe API to the corresponding PHP object.
+ *
+ * @param array $resp the response from the Stripe API
+ * @param array $opts
+ *
+ * @return array|StripeObject
+ */
+ public static function convertToStripeObject($resp, $opts)
+ {
+ }
+ /**
+ * @param mixed|string $value a string to UTF8-encode
+ *
+ * @return mixed|string the UTF8-encoded string, or the object passed in if
+ * it wasn't a string
+ */
+ public static function utf8($value)
+ {
+ }
+ /**
+ * Compares two strings for equality. The time taken is independent of the
+ * number of characters that match.
+ *
+ * @param string $a one of the strings to compare
+ * @param string $b the other string to compare
+ *
+ * @return bool true if the strings are equal, false otherwise
+ */
+ public static function secureCompare($a, $b)
+ {
+ }
+ /**
+ * Recursively goes through an array of parameters. If a parameter is an instance of
+ * ApiResource, then it is replaced by the resource's ID.
+ * Also clears out null values.
+ *
+ * @param mixed $h
+ *
+ * @return mixed
+ */
+ public static function objectsToIds($h)
+ {
+ }
+ /**
+ * @param array $params
+ *
+ * @return string
+ */
+ public static function encodeParameters($params)
+ {
+ }
+ /**
+ * @param array $params
+ * @param null|string $parentKey
+ *
+ * @return array
+ */
+ public static function flattenParams($params, $parentKey = null)
+ {
+ }
+ /**
+ * @param array $value
+ * @param string $calculatedKey
+ *
+ * @return array
+ */
+ public static function flattenParamsList($value, $calculatedKey)
+ {
+ }
+ /**
+ * @param string $key a string to URL-encode
+ *
+ * @return string the URL-encoded string
+ */
+ public static function urlEncode($key)
+ {
+ }
+ public static function normalizeId($id)
+ {
+ }
+ /**
+ * Returns UNIX timestamp in milliseconds.
+ *
+ * @return int current time in millis
+ */
+ public static function currentTimeMillis()
+ {
+ }
+}
+namespace Stripe;
+
+abstract class Webhook
+{
+ const DEFAULT_TOLERANCE = 300;
+ /**
+ * Returns an Event instance using the provided JSON payload. Throws an
+ * Exception\UnexpectedValueException if the payload is not valid JSON, and
+ * an Exception\SignatureVerificationException if the signature
+ * verification fails for any reason.
+ *
+ * @param string $payload the payload sent by Stripe
+ * @param string $sigHeader the contents of the signature header sent by
+ * Stripe
+ * @param string $secret secret used to generate the signature
+ * @param int $tolerance maximum difference allowed between the header's
+ * timestamp and the current time
+ *
+ * @throws Exception\UnexpectedValueException if the payload is not valid JSON,
+ * @throws Exception\SignatureVerificationException if the verification fails
+ *
+ * @return Event the Event instance
+ */
+ public static function constructEvent($payload, $sigHeader, $secret, $tolerance = self::DEFAULT_TOLERANCE)
+ {
+ }
+}
+/**
+ * You can configure webhook
+ * endpoints via the API to be notified about events that happen in your Stripe
+ * account or connected accounts.
+ *
+ * Most users configure webhooks from the dashboard, which provides a
+ * user interface for registering and testing your webhook endpoints.
+ *
+ * Related guide: Setting up
+ * Webhooks.
+ *
+ * @property string $id Unique identifier for the object.
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property null|string $api_version The API version events are rendered as for this webhook endpoint.
+ * @property null|string $application The ID of the associated Connect application.
+ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
+ * @property null|string $description An optional description of what the webhook is used for.
+ * @property string[] $enabled_events The list of events to enable for this endpoint. ['*'] indicates that all events are enabled, except those that require explicit selection.
+ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode.
+ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $secret The endpoint's secret, used to generate webhook signatures. Only returned at creation.
+ * @property string $status The status of the webhook. It can be enabled or disabled.
+ * @property string $url The URL of the webhook endpoint.
+ */
+class WebhookEndpoint extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'webhook_endpoint';
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
+ use \Stripe\ApiOperations\Delete;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+}
+abstract class WebhookSignature
+{
+ const EXPECTED_SCHEME = 'v1';
+ /**
+ * Verifies the signature header sent by Stripe. Throws an
+ * Exception\SignatureVerificationException exception if the verification fails for
+ * any reason.
+ *
+ * @param string $payload the payload sent by Stripe
+ * @param string $header the contents of the signature header sent by
+ * Stripe
+ * @param string $secret secret used to generate the signature
+ * @param int $tolerance maximum difference allowed between the header's
+ * timestamp and the current time
+ *
+ * @throws Exception\SignatureVerificationException if the verification fails
+ *
+ * @return bool
+ */
+ public static function verifyHeader($payload, $header, $secret, $tolerance = null)
+ {
+ }
+}
+// phpcs:enable
diff --git a/dev/tools/phan/stubs/swiss-qr-bill.php b/dev/tools/phan/stubs/swiss-qr-bill.php
new file mode 100644
index 0000000000000..6c12c53ff5aee
--- /dev/null
+++ b/dev/tools/phan/stubs/swiss-qr-bill.php
@@ -0,0 +1,1021 @@
+
+ */
+ public function getQrCodeData() : array;
+}
+
+namespace Sprain\SwissQrBill\Validator;
+
+/**
+ * @internal
+ */
+interface SelfValidatableInterface
+{
+ public function getViolations() : \Symfony\Component\Validator\ConstraintViolationListInterface;
+ public function isValid() : bool;
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void;
+}
+/**
+ * @internal
+ */
+trait SelfValidatableTrait
+{
+ private ?\Symfony\Component\Validator\Validator\ValidatorInterface $validator = null;
+ public function getViolations() : \Symfony\Component\Validator\ConstraintViolationListInterface
+ {
+ }
+ public function isValid() : bool
+ {
+ }
+}
+
+namespace Sprain\SwissQrBill\DataGroup\Element;
+
+final class AdditionalInformation implements \Sprain\SwissQrBill\DataGroup\QrCodeableInterface, \Sprain\SwissQrBill\Validator\SelfValidatableInterface
+{
+ use \Sprain\SwissQrBill\Validator\SelfValidatableTrait;
+ public const TRAILER_EPD = 'EPD';
+ public static function create(?string $message, ?string $billInformation = null) : self
+ {
+ }
+ public function getMessage() : ?string
+ {
+ }
+ public function getBillInformation() : ?string
+ {
+ }
+ public function getFormattedString() : ?string
+ {
+ }
+ public function getQrCodeData() : array
+ {
+ }
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void
+ {
+ }
+}
+/**
+ * For available alternative schemes see link.
+ * @link https://www.paymentstandards.ch/en/home/software-partner/alternative-schemes.html
+ */
+final class AlternativeScheme implements \Sprain\SwissQrBill\DataGroup\QrCodeableInterface, \Sprain\SwissQrBill\Validator\SelfValidatableInterface
+{
+ use \Sprain\SwissQrBill\Validator\SelfValidatableTrait;
+ public static function create(string $parameter) : self
+ {
+ }
+ public function getParameter() : string
+ {
+ }
+ public function getQrCodeData() : array
+ {
+ }
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void
+ {
+ }
+}
+class CombinedAddress extends \Sprain\SwissQrBill\DataGroup\Element\Abstracts\Address implements \Sprain\SwissQrBill\DataGroup\AddressInterface, \Sprain\SwissQrBill\Validator\SelfValidatableInterface, \Sprain\SwissQrBill\DataGroup\QrCodeableInterface
+{
+ use \Sprain\SwissQrBill\Validator\SelfValidatableTrait;
+ public const ADDRESS_TYPE = 'K';
+ public static function create(string $name, ?string $addressLine1, string $addressLine2, string $country) : self
+ {
+ }
+ public function getName() : string
+ {
+ }
+ public function getAddressLine1() : ?string
+ {
+ }
+ public function getAddressLine2() : string
+ {
+ }
+ public function getCountry() : string
+ {
+ }
+ public function getFullAddress(bool $forReceipt = false) : string
+ {
+ }
+ public function getQrCodeData() : array
+ {
+ }
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void
+ {
+ }
+}
+final class CreditorInformation implements \Sprain\SwissQrBill\DataGroup\QrCodeableInterface, \Sprain\SwissQrBill\Validator\SelfValidatableInterface
+{
+ use \Sprain\SwissQrBill\Validator\SelfValidatableTrait;
+ public static function create(string $iban) : self
+ {
+ }
+ public function getIban() : string
+ {
+ }
+ public function getFormattedIban() : string
+ {
+ }
+ public function containsQrIban() : bool
+ {
+ }
+ public function getQrCodeData() : array
+ {
+ }
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void
+ {
+ }
+}
+final class Header implements \Sprain\SwissQrBill\DataGroup\QrCodeableInterface, \Sprain\SwissQrBill\Validator\SelfValidatableInterface
+{
+ use \Sprain\SwissQrBill\Validator\SelfValidatableTrait;
+ public const QRTYPE_SPC = 'SPC';
+ public const VERSION_0200 = '0200';
+ public const CODING_LATIN = 1;
+ public static function create(string $qrType, string $version, int $coding) : self
+ {
+ }
+ public function getQrType() : string
+ {
+ }
+ public function getVersion() : string
+ {
+ }
+ public function getCoding() : int
+ {
+ }
+ public function getQrCodeData() : array
+ {
+ }
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void
+ {
+ }
+}
+final class PaymentAmountInformation implements \Sprain\SwissQrBill\DataGroup\QrCodeableInterface, \Sprain\SwissQrBill\Validator\SelfValidatableInterface
+{
+ use \Sprain\SwissQrBill\Validator\SelfValidatableTrait;
+ public const CURRENCY_CHF = 'CHF';
+ public const CURRENCY_EUR = 'EUR';
+ public static function create(string $currency, ?float $amount = null) : self
+ {
+ }
+ public function getAmount() : ?float
+ {
+ }
+ public function getFormattedAmount() : ?string
+ {
+ }
+ public function getCurrency() : string
+ {
+ }
+ public function getQrCodeData() : array
+ {
+ }
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void
+ {
+ }
+}
+final class PaymentReference implements \Symfony\Component\Validator\GroupSequenceProviderInterface, \Sprain\SwissQrBill\DataGroup\QrCodeableInterface, \Sprain\SwissQrBill\Validator\SelfValidatableInterface
+{
+ use \Sprain\SwissQrBill\Validator\SelfValidatableTrait;
+ public const TYPE_QR = 'QRR';
+ public const TYPE_SCOR = 'SCOR';
+ public const TYPE_NON = 'NON';
+ public static function create(string $type, ?string $reference = null) : self
+ {
+ }
+ public function getType() : string
+ {
+ }
+ public function getReference() : ?string
+ {
+ }
+ public function getFormattedReference() : ?string
+ {
+ }
+ public function getQrCodeData() : array
+ {
+ }
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void
+ {
+ }
+ public function getGroupSequence() : array|\Symfony\Component\Validator\Constraints\GroupSequence
+ {
+ }
+}
+final class StructuredAddress extends \Sprain\SwissQrBill\DataGroup\Element\Abstracts\Address implements \Sprain\SwissQrBill\DataGroup\AddressInterface, \Sprain\SwissQrBill\Validator\SelfValidatableInterface, \Sprain\SwissQrBill\DataGroup\QrCodeableInterface
+{
+ use \Sprain\SwissQrBill\Validator\SelfValidatableTrait;
+ public const ADDRESS_TYPE = 'S';
+ public static function createWithoutStreet(string $name, string $postalCode, string $city, string $country) : self
+ {
+ }
+ public static function createWithStreet(string $name, string $street, ?string $buildingNumber, string $postalCode, string $city, string $country) : self
+ {
+ }
+ public function getName() : string
+ {
+ }
+ public function getStreet() : ?string
+ {
+ }
+ public function getBuildingNumber() : ?string
+ {
+ }
+ public function getPostalCode() : string
+ {
+ }
+ public function getCity() : string
+ {
+ }
+ public function getCountry() : string
+ {
+ }
+ public function getFullAddress(bool $forReceipt = false) : string
+ {
+ }
+ public function getQrCodeData() : array
+ {
+ }
+ public static function loadValidatorMetadata(\Symfony\Component\Validator\Mapping\ClassMetadata $metadata) : void
+ {
+ }
+}
+
+namespace Sprain\SwissQrBill\DataGroup\EmptyElement;
+
+/**
+ * @internal
+ */
+final class EmptyAdditionalInformation implements \Sprain\SwissQrBill\DataGroup\QrCodeableInterface
+{
+ public const TRAILER_EPD = 'EPD';
+ public function getQrCodeData() : array
+ {
+ }
+}
+/**
+ * @internal
+ */
+final class EmptyAddress implements \Sprain\SwissQrBill\DataGroup\QrCodeableInterface
+{
+ public const ADDRESS_TYPE = '';
+ public function getQrCodeData() : array
+ {
+ }
+}
+/**
+ * @internal
+ */
+final class EmptyLine implements \Sprain\SwissQrBill\DataGroup\QrCodeableInterface
+{
+ public function getQrCodeData() : array
+ {
+ }
+}
+
+namespace Sprain\SwissQrBill\Exception;
+
+final class InvalidFpdfImageFormat extends \Exception
+{
+}
+final class InvalidQrBillDataException extends \Exception
+{
+}
+
+namespace Sprain\SwissQrBill\PaymentPart\Output;
+
+interface OutputInterface
+{
+ public function getQrBill() : ?\Sprain\SwissQrBill\QrBill;
+ public function getLanguage() : ?string;
+ public function getPaymentPart() : ?string;
+ public function setPrintable(bool $printable) : static;
+ public function isPrintable() : bool;
+ public function setQrCodeImageFormat(string $imageFormat) : static;
+ public function getQrCodeImageFormat() : string;
+}
+abstract class AbstractOutput implements \Sprain\SwissQrBill\PaymentPart\Output\OutputInterface
+{
+ protected \Sprain\SwissQrBill\QrBill $qrBill;
+ protected string $language;
+ protected bool $printable;
+ protected string $qrCodeImageFormat;
+ public function __construct(\Sprain\SwissQrBill\QrBill $qrBill, string $language)
+ {
+ }
+ public function getQrBill() : ?\Sprain\SwissQrBill\QrBill
+ {
+ }
+ public function getLanguage() : ?string
+ {
+ }
+ public function setPrintable(bool $printable) : static
+ {
+ }
+ public function isPrintable() : bool
+ {
+ }
+ public function setQrCodeImageFormat(string $fileExtension) : static
+ {
+ }
+ public function getQrCodeImageFormat() : string
+ {
+ }
+ /**
+ * @return list
+ */
+ protected function getInformationElements() : array
+ {
+ }
+ /**
+ * @return list
+ */
+ protected function getInformationElementsOfReceipt() : array
+ {
+ }
+ /**
+ * @return list
+ */
+ protected function getCurrencyElements() : array
+ {
+ }
+ /**
+ * @return list
+ */
+ protected function getAmountElements() : array
+ {
+ }
+ /**
+ * @return list
+ */
+ protected function getAmountElementsReceipt() : array
+ {
+ }
+ /**
+ * @return list
+ */
+ protected function getFurtherInformationElements() : array
+ {
+ }
+ protected function getQrCode() : \Sprain\SwissQrBill\QrCode\QrCode
+ {
+ }
+}
+
+namespace Sprain\SwissQrBill\PaymentPart\Output\Element;
+
+interface OutputElementInterface
+{
+}
+/**
+ * @internal
+ */
+final class FurtherInformation implements \Sprain\SwissQrBill\PaymentPart\Output\Element\OutputElementInterface
+{
+ public static function create(string $furtherInformation) : self
+ {
+ }
+ public function getText() : string
+ {
+ }
+}
+/**
+ * @internal
+ */
+final class Placeholder implements \Sprain\SwissQrBill\PaymentPart\Output\Element\OutputElementInterface
+{
+ public const FILE_TYPE_SVG = 'svg';
+ public const FILE_TYPE_PNG = 'png';
+ public const PLACEHOLDER_TYPE_PAYABLE_BY = ['type' => 'placeholder_payable_by', 'fileSvg' => __DIR__ . '/../../../../assets/marks_65x25mm.svg', 'filePng' => __DIR__ . '/../../../../assets/marks_65x25mm.png', 'width' => 65, 'height' => 25];
+ public const PLACEHOLDER_TYPE_PAYABLE_BY_RECEIPT = ['type' => 'placeholder_payable_by_receipt', 'fileSvg' => __DIR__ . '/../../../../assets/marks_52x20mm.svg', 'filePng' => __DIR__ . '/../../../../assets/marks_52x20mm.png', 'width' => 52, 'height' => 20];
+ public const PLACEHOLDER_TYPE_AMOUNT = ['type' => 'placeholder_amount', 'fileSvg' => __DIR__ . '/../../../../assets/marks_40x15mm.svg', 'filePng' => __DIR__ . '/../../../../assets/marks_40x15mm.png', 'width' => 40, 'height' => 15];
+ public const PLACEHOLDER_TYPE_AMOUNT_RECEIPT = ['type' => 'placeholder_amount_receipt', 'fileSvg' => __DIR__ . '/../../../../assets/marks_30x10mm.svg', 'filePng' => __DIR__ . '/../../../../assets/marks_30x10mm.png', 'width' => 30, 'height' => 10];
+ /**
+ * @param array{type: string, fileSvg: string, filePng: string, width: int, height: int} $type
+ */
+ public static function create(array $type) : self
+ {
+ }
+ public function getType() : ?string
+ {
+ }
+ public function getFile(string $type = self::FILE_TYPE_SVG) : string
+ {
+ }
+ public function getWidth() : ?int
+ {
+ }
+ public function getHeight() : ?int
+ {
+ }
+}
+/**
+ * @internal
+ */
+final class Text implements \Sprain\SwissQrBill\PaymentPart\Output\Element\OutputElementInterface
+{
+ public static function create(string $text) : self
+ {
+ }
+ public function getText() : string
+ {
+ }
+}
+/**
+ * @internal
+ */
+final class Title implements \Sprain\SwissQrBill\PaymentPart\Output\Element\OutputElementInterface
+{
+ public static function create(string $title) : self
+ {
+ }
+ public function getTitle() : string
+ {
+ }
+}
+
+namespace Sprain\SwissQrBill\PaymentPart\Output\FpdfOutput;
+
+final class FpdfOutput extends \Sprain\SwissQrBill\PaymentPart\Output\AbstractOutput
+{
+ public function __construct(\Sprain\SwissQrBill\QrBill $qrBill, string $language, \Fpdf\Fpdf|\setasign\Fpdi\Fpdi $fpdf, float $offsetX = 0, float $offsetY = 0)
+ {
+ }
+ public function getPaymentPart() : ?string
+ {
+ }
+ public function setQrCodeImageFormat(string $fileExtension) : static
+ {
+ }
+}
+class UnsupportedEnvironmentException extends \RuntimeException
+{
+}
+
+namespace Sprain\SwissQrBill\PaymentPart\Output\HtmlOutput;
+
+final class HtmlOutput extends \Sprain\SwissQrBill\PaymentPart\Output\AbstractOutput
+{
+ public function getPaymentPart() : ?string
+ {
+ }
+}
+
+namespace Sprain\SwissQrBill\PaymentPart\Output\HtmlOutput\Template;
+
+class FurtherInformationElementTemplate
+{
+ public const TEMPLATE = <<{{ text }}
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
@@ -404,9 +416,16 @@
$childs = array();
$childs[] = array_combine($keys, $values);
$curent = !empty($conf->global->{$thisTypeConfName}) ? $conf->global->{$thisTypeConfName}:$conf->global->FACTURE_ADDON_PDF;
+ $date = $obj->periode;
+ $date_com = dol_mktime(GETPOSTINT('rehour'), GETPOSTINT('remin'), GETPOSTINT('resec'), GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear'));
+ $date_next_execution = (GETPOST('remonth') ? dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear')) : -1);
+ $date_next_execution = dol_mktime($rehour, $remin, 0, $remonth, $reday, $reyear);
+ $datesubscription = dol_mktime(12, 0, 0, GETPOST("remonth", 'int'), GETPOST("reday", "int"), GETPOST("reyear", "int"));
+ $datesubscription = dol_mktime(12, 0, 0, GETPOSTINT("remonth"), GETPOSTINT("reday"), GETPOSTINT("reyear"));
$ensemblereponses = $obj->reponses;
$event->datep = dol_mktime(0, 0, 0, $datearray['mon'], $datearray['mday'], $year, true); // For full day events, date are also GMT but they wont but converted during output
$ext = 'version='.GETPOST('version', 'int'); // usefull to force no cache on css/js
+ $field = preg_replace('/(:[!<>=\s]+:|:in:|:notin:|:like:|:notlike:).*$/', '', $tmpcrit); // the name of the field
$filles = array();
$filterabsolutediscount = "fk_facture_source IS NULL"; // If we want deposit to be substracted to payments only and not to total of final invoice
$filterabsolutediscount = "fk_invoice_supplier_source IS NULL"; // If we want deposit to be substracted to payments only and not to total of final invoice
@@ -417,20 +436,22 @@
$level = 0; // if $level = -1, we dont' use sublevel recursion, we show all lines
$line->pa_ht = $line->pa_ht; // we choosed to have buy/cost price always positive, so no revert of sign here
$msgishtml = -1; // Unknow = autodetect by default
- $msgishtml = -1; // Unknow by default
+ $newcrit = preg_replace('/(:[!<>=\s]+:|:in:|:notin:|:like:|:notlike:)/', '', $tmpcrit);
+ $object->periode = $dateperiod;
$paht_ret = $paht;
$paramfortooltipimg = ($extracss ? ' class="' . $extracss . '"' : '') . ($extrastyle ? ' style="' . $extrastyle . '"' : ''); // Attribut to put on td text tag
- $paramfortooltipimg = ($extracss ? ' class="'.$extracss.'"' : '').($extrastyle ? ' style="'.$extrastyle.'"' : ''); // Attribut to put on td text tag
$paramfortooltiptd = ($extracss ? ' class="' . $extracss . '"' : '') . ($extrastyle ? ' style="' . $extrastyle . '"' : ''); // Attribut to put on td text tag
- $paramfortooltiptd = ($extracss ? ' class="'.$extracss.'"' : '').($extrastyle ? ' style="'.$extrastyle.'"' : ''); // Attribut to put on td text tag
$pdf->MultiCell($this->posxdiscount - $this->posxunit, 2, $outputlangs->transnoentities("Label Mouvement"), '', 'C');
$pdf->SetXY($this->getColumnContentXStart($colKey), $curY); // Set curent position
$result -= $amountToBreakdown; // And canceled substraction has been replaced by breakdown
$result = $ldap->add($dn, $info, $user); // Wil fail if already exists
$result = $line->insert(0, 1); // When creating credit note with same lines than source, we must ignore error if discount alreayd linked
+ $return .= ' '.$langs->trans("Payement").' : '.$this->type_payment.'';
+ $scrit = explode(' ', $filterkey);
$serie[$i] = "";
$serie[$i] = "var d" . $i . " = [];\n";
$showfield = 1; // By defaut
+ $sql .= " '".$db->escape($conf->currency)."' as currency, 0 as fk_soc, t.date_ech as date, t.periode as date_due, 'SocialContributions' as item, '' as thirdparty_name, '' as thirdparty_code, '' as country_code, '' as vatnum, ".PAY_DEBIT." as sens";
$sql .= " AND f.fk_statut = 2"; // payed Not that some corrupted data may contains f.fk_statut = 1 AND f.paye = 1 (it means payed too but should not happend. If yes, reopen and reclassify billed)
$sql .= " AND f.fk_statut = 3"; // abandonned
$sql .= " WHERE c.entity IN (".getEntity('commande').")"; // Dont't use entity if you use rowid
@@ -452,6 +473,7 @@
$this->tpl['yn_assujtva'] = $form->selectyesno('assujtva_value', $this->tpl['tva_assuj'], 1); // Assujeti par defaut en creation
$title = preg_replace("/([[:alnum:]])\?([[:alnum:]])/", "\\1'\\2", $title); // Gere probleme des apostrophes mal codee/decodee par utf8
$title = preg_replace("/^\s+/", "", $title); // Supprime espaces de debut
+ $tmpcrit = preg_replace('/^.*(:[!<>=\s]+:|:in:|:notin:|:like:|:notlike:)/', '\1', $tmpcrit); // the condition after the name of the field
$trans_colour = imagecolorallocate($imgTarget, 255, 255, 255); // On procede autrement pour le format GIF
$trans_colour = imagecolorallocate($imgThumb, 255, 255, 255); // On procede autrement pour le format GIF
$txtforsticker = "%PHOTO%"; // Photo will be barcode image, %BARCODE% posible when using TCPDF generator
@@ -543,20 +565,19 @@
// TODO A virer quand sera gere par l'appelant
// TODO Add a link "Show more..." for all ohter informations.
// TODO Use a cahe on user
- // TODO We can't, we dont' have full path of file, only last_main_doc and ->element, so we must first rebuild full path $destfull
// TODO We show localtax from $object, but this properties may not be correct. Only value $object->default_vat_code is guaranted.
// TODO mettre dans une classe propre au pays
// Tableau des parametres complementaires du post
// The entity on the table usergroup_user should be useless and should never be used because it is alreay into gr and r.
// This is when PHP session is ran outside a web server, like from Linux command line (Not always defined, but usefull if OS defined it).
// This need a lot of time, that's why enabling alternative dir like "custom" dir is not recommanded
+ // Thoose lines are for substitution
// Update hourly rate of this time spent entry, but only if it was not set initialy
// We choosed to have line->pa_ht always positive in database, so we guess the correct sign
// We dont have printers so return blank array
// We keep it with value ForceBuyingPriceIfNull = 2 for retroactive effect but results are unpredicable.
// We must filter on assignement table
// We need to keep the 10 lastest number of invoice doc_ref not the beginning part that is the unusefull almost same part
- // We use invoice date $data->doc_date not $date_ecriture which is the transfert date
// We use invoice date $line->doc_date not $date_ecriture which is the transfert date
// add substition variable for ticket
// add variables subtitutions ticket
@@ -580,7 +601,6 @@
//Chek special NIF
//Origin project strat date
//Stock mouvement
- //We use invoice date $data->doc_date not $date_ecriture which is the transfert date
//We use invoice date $line->doc_date not $date_ecriture which is the transfert date
//XXX: Should be done just befor commit no ?
//but the note is saved, so just add a notification will be enought
@@ -591,12 +611,13 @@
console.log("Load desciption into text area : "+description);
continue; // We discard parametes starting with ?
dol_print_error('', get_class($this)."::load_previous_next_ref was called on objet with property table_element not defined");
+ dol_syslog("--- Access to ".(empty($_SERVER["REQUEST_METHOD"]) ? '' : $_SERVER["REQUEST_METHOD"].' ').$_SERVER["PHP_SELF"]." refused by CSRF protection (invalid token), so we disable POST and some GET parameters - referer=".(empty($_SERVER['HTTP_REFERER'])?'':$_SERVER['HTTP_REFERER']).", action=".GETPOST('action', 'aZ09').", _GET|POST['token']=".GETPOST('token', 'alpha'), LOG_WARNING);
+ dol_syslog("--- Access to ".(empty($_SERVER["REQUEST_METHOD"])?'':$_SERVER["REQUEST_METHOD"].' ').$_SERVER["PHP_SELF"]." refused by CSRF protection (Bad referer).", LOG_WARNING);
dol_syslog("Can't remove thirdparty with id ".$id.". There is ".$objectisused." childs", LOG_WARNING);
dol_syslog("Failed to read image using Imagick (Try to install package 'apt-get install php-imagick ghostscript' and check there is no policy to disable ".$ext." convertion in /etc/ImageMagick*/policy.xml): ".$e->getMessage(), LOG_WARNING);
dol_syslog("Fichier invalide",LOG_WARNING);
dol_syslog("RejetPrelevement::_send_email Userid invalide");
dol_syslog('User not found or not valid, connexion refused');
- dol_syslog('User not found, connexion refused');
dol_syslog(get_class($this) . "::validate action abandonned: already validated", LOG_WARNING);
dol_syslog(get_class($this). '::setFrequencyAndUnit was called on objet with params frequency defined but unit not defined', LOG_ERR);
dol_syslog(get_class($this). '::setFrequencyAndUnit was called on objet with property table_element not defined', LOG_ERR);
@@ -635,23 +656,37 @@
for ($i = 0; $i < $nbseries; $i++) { // Loop on each serie
foreach ($criterias as $criteriafamilykey => $criteriafamilyval) {
foreach ($legends as $val) { // Loop on each serie
+ foreach ($scrit as $crit) {
header("Location: ".$_SERVER["PHP_SELF"].'?id='.$id.($backtopage ? '&backtopage='.urlencode($backtopage) : '')); // To avoid pb whith back
idata++; //Next data everytime
if (!empty($_facrec->frequency)) { // Invoice are created on same thirdparty than template when there is a recurrence, but not necessarly when there is no recurrence.
+ if (!empty($user->rights->stock->mouvement->lire)) {
if ($attachs && strpos($action, 'SENTBYMAIL')) {
if ($user->hasRight('stock', 'mouvement', 'lire')) {
if ($value) { // If we have -1 here, pb is into insert, not into ouptut (fix insert instead of changing code here to compensate)
+ if (count($scrit) > 1) $sql .= "(";
+ if (count($scrit) > 1) $sql .= ")";
+ if (count($scrit) > 1) {
if (empty($objimport->array_import_convertvalue[0][$tmpcode])) { // If source file does not need convertion
+ if (empty($reyear) || empty($remonth) || empty($reday)) {
jQuery("#mouvement").change(function() {
+ preg_match('/:([!<>=\s]+|in|notin|like|notlike):/', $tmpcrit, $reg);
preg_match('/\((.+)\)/i', $objp->label, $reg); // Si texte entoure de parenthese on tente recherche de traduction
print " - Error cant find payment mode for ".$condpayment."\n";
+ print "Access refused by CSRF protection in main.inc.php. Referer of form (".htmlentities($_SERVER['HTTP_REFERER'], ENT_COMPAT, 'UTF-8').") is outside the server that serve this page (with method = ".htmlentities($_SERVER['REQUEST_METHOD'], ENT_COMPAT, 'UTF-8').").\n";
print "Expedition inexistante ou acces refuse";
print "\n\n";
+ print $form->selectDate($object->periode, 'period', 0, 0, 0, 'charge', 1);
print ''."\n";
print ''.$langs->trans("TransferStock").'';
+ print ''.$langs->trans("TransferStock").'';
print ''; // Explicit link, usefull for nojs interfaces
print '