Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpstan fixes (php doc blocks) #643

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MangoPay/ApiCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function Update($card)
* Gets a Card's PreAuthorizations
* @param int $cardId ID of the Card for which to retrieve PreAuthorizations
* @param \MangoPay\Pagination $pagination Pagination object
* @param \MangoPay\FilterPreAuthorizations filter Filtering object
* @param \MangoPay\FilterPreAuthorizations $filter Filtering object
* @param \MangoPay\Sorting $sorting Sorting object
* @return \MangoPay\CardPreAuthorization[] List of the Card's PreAuthorizations
*/
Expand Down
3 changes: 2 additions & 1 deletion MangoPay/ApiClients.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function Update($client)
* Upload a logo for client.
* Only GIF, PNG, JPG, JPEG, BMP, PDF and DOC formats are accepted,
* and file must be less than about 7MB
* @param \MangoPay\ClientLogoUpload $logo ClientLogoUpload object
* @param \MangoPay\ClientLogoUpload $logoUpload ClientLogoUpload object
* @param string|null $idempotencyKey
*/
public function UploadLogo($logoUpload, $idempotencyKey = null)
{
Expand Down
2 changes: 1 addition & 1 deletion MangoPay/ApiDisputes.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function GetPendingSettlements(& $pagination = null, $sorting = null)

/**
* Updates dispute's tag
* @param \MangoPay\Dispute Dispute object to update
* @param \MangoPay\Dispute $dispute Dispute object to update
* @return \MangoPay\Dispute Transfer instance returned from API
*/
public function Update($dispute)
Expand Down
2 changes: 1 addition & 1 deletion MangoPay/ApiPayOuts.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function GetBankwire($payOutId)
* Returns a list of Refunds pertaining to a certain PayOut.
* @param string $payOutId ID of the PayOut for which to retrieve Refunds
* @param \MangoPay\Pagination $pagination Pagination object
* @param \MangoPay\FilterRefunds filter Filtering object
* @param \MangoPay\FilterRefunds $filter Filtering object
* @param \MangoPay\Sorting $sorting Sorting object
* @return \MangoPay\Refund[] List of Refunds for the PayOut
*/
Expand Down
6 changes: 5 additions & 1 deletion MangoPay/BankingAliasOTHER.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,26 @@
class BankingAliasOTHER extends BankingAlias
{
/**
* @var Type
* Type
* @var string
*/
public $Type;

/**
* Account Number
* @var string
*/
public $AccountNumber;

/**
* BIC
* @var string
*/
public $BIC;

/**
* Country
* @var string
*/
public $Country;
}
4 changes: 2 additions & 2 deletions MangoPay/Libraries/ApiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ protected function getLogger()

/**
* Constructor
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuthToken and Configuration instance
* Root/parent instance that holds the OAuthToken and Configuration instance
* @param \MangoPay\MangoPayApi $root
*/
public function __construct($root)
{
Expand Down Expand Up @@ -303,7 +304,6 @@ protected function CreateObject($methodKey, $entity, $responseClassName = null,
* Get entity object from API
* @param string $methodKey Key with request data
* @param object $responseClassName Name of entity class from response
* @param array $params path variable in urls
* @return object Response data
* @throws Exception
*/
Expand Down
1 change: 1 addition & 0 deletions MangoPay/Libraries/ApiOAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function CreateToken()
$rest->AddRequestHttpHeader('x-tenant-id: uk');
}
$response = $rest->Request($urlMethod, $requestType, $requestData);
/** @var \MangoPay\Libraries\OAuthToken $token */
williamdes marked this conversation as resolved.
Show resolved Hide resolved
williamdes marked this conversation as resolved.
Show resolved Hide resolved
$token = $this->CastResponseToEntity($response, '\MangoPay\Libraries\OAuthToken');
$token->autentication_key = $authHlp->GetAutenticationKey();

Expand Down
3 changes: 2 additions & 1 deletion MangoPay/Libraries/AuthenticationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class AuthenticationHelper

/**
* Constructor
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuth token and Configuration instance
* Root/parent instance that holds the OAuthToken and Configuration instance
* @param \MangoPay\MangoPayApi $root
*/
public function __construct($root)
{
Expand Down
3 changes: 2 additions & 1 deletion MangoPay/Libraries/UrlTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class UrlTool

/**
* Constructor
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuthToken and Configuration instance
* Root/parent instance that holds the OAuthToken and Configuration instance
* @param \MangoPay\MangoPayApi $root
*/
public function __construct($root)
{
Expand Down
2 changes: 2 additions & 0 deletions MangoPay/PayInExecutionDetailsDirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@ public function GetSubObjects()
$subObjects = parent::GetSubObjects();
$subObjects['Billing'] = '\MangoPay\Billing';
$subObjects['SecurityInfo'] = '\MangoPay\SecurityInfo';

return $subObjects;
}
}
2 changes: 1 addition & 1 deletion MangoPay/PayInPaymentDetailsPayconiq.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PayInPaymentDetailsPayconiq extends Libraries\Dto implements PayInPaymentD
{
/**
* The country of your user (should be BE, NL or LU)
* @var $Country
* @var string
*/
public $Country;

Expand Down
Loading