diff --git a/app/code/Magento/GraphQl/Model/Query/ContextInterface.php b/app/code/Magento/GraphQl/Model/Query/ContextInterface.php index 84b36064e2824..ba532c7191dfe 100644 --- a/app/code/Magento/GraphQl/Model/Query/ContextInterface.php +++ b/app/code/Magento/GraphQl/Model/Query/ContextInterface.php @@ -16,6 +16,8 @@ * * GraphQL will pass the same instance of this interface to each field resolver, so these resolvers could have * shared access to the same data for ease of implementation purposes. + * + * @api */ interface ContextInterface extends BaseContextInterface, ExtensibleDataInterface { diff --git a/app/code/Magento/Msrp/Pricing/MsrpPriceCalculatorInterface.php b/app/code/Magento/Msrp/Pricing/MsrpPriceCalculatorInterface.php index c50a381a2efa4..d7a31a9dc3e1b 100644 --- a/app/code/Magento/Msrp/Pricing/MsrpPriceCalculatorInterface.php +++ b/app/code/Magento/Msrp/Pricing/MsrpPriceCalculatorInterface.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Msrp\Pricing; @@ -10,6 +11,8 @@ /** * Provide information about MSRP price of a product. + * + * @api */ interface MsrpPriceCalculatorInterface { diff --git a/app/code/Magento/Newsletter/Model/SubscriptionManagerInterface.php b/app/code/Magento/Newsletter/Model/SubscriptionManagerInterface.php index 8b92d825bdbcd..3131fbf60a934 100644 --- a/app/code/Magento/Newsletter/Model/SubscriptionManagerInterface.php +++ b/app/code/Magento/Newsletter/Model/SubscriptionManagerInterface.php @@ -9,6 +9,8 @@ /** * Interface to update newsletter subscription status + * + * @api */ interface SubscriptionManagerInterface { diff --git a/app/code/Magento/PageCache/Model/Spi/PageCacheTagsPreprocessorInterface.php b/app/code/Magento/PageCache/Model/Spi/PageCacheTagsPreprocessorInterface.php index 19f9eedf7546d..188c6cafbf98f 100644 --- a/app/code/Magento/PageCache/Model/Spi/PageCacheTagsPreprocessorInterface.php +++ b/app/code/Magento/PageCache/Model/Spi/PageCacheTagsPreprocessorInterface.php @@ -9,6 +9,8 @@ /** * Interface for page tags preprocessors + * + * @api */ interface PageCacheTagsPreprocessorInterface { diff --git a/app/code/Magento/Payment/Api/Data/PaymentAdditionalInfoInterface.php b/app/code/Magento/Payment/Api/Data/PaymentAdditionalInfoInterface.php index 8afa064efd3ea..7748484d87189 100644 --- a/app/code/Magento/Payment/Api/Data/PaymentAdditionalInfoInterface.php +++ b/app/code/Magento/Payment/Api/Data/PaymentAdditionalInfoInterface.php @@ -11,6 +11,8 @@ /** * Payment additional info interface. + * + * @api */ interface PaymentAdditionalInfoInterface extends KeyValueObjectInterface { diff --git a/app/code/Magento/Payment/Model/Method/TransparentInterface.php b/app/code/Magento/Payment/Model/Method/TransparentInterface.php index 1c85f646f50ef..e274e1d9e05b5 100644 --- a/app/code/Magento/Payment/Model/Method/TransparentInterface.php +++ b/app/code/Magento/Payment/Model/Method/TransparentInterface.php @@ -10,7 +10,9 @@ /** * Interface TransparentInterface need to be implemented by Payment Method service * which supports transparent redirect feature + * * @package Magento\Payment\Model\Method + * @api */ interface TransparentInterface extends MethodInterface { diff --git a/app/code/Magento/Paypal/Helper/Shortcut/ValidatorInterface.php b/app/code/Magento/Paypal/Helper/Shortcut/ValidatorInterface.php index af5039fbc7059..fe33c2bf1c3e0 100644 --- a/app/code/Magento/Paypal/Helper/Shortcut/ValidatorInterface.php +++ b/app/code/Magento/Paypal/Helper/Shortcut/ValidatorInterface.php @@ -3,12 +3,12 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - namespace Magento\Paypal\Helper\Shortcut; /** * Interface \Magento\Paypal\Helper\Shortcut\ValidatorInterface * + * @api */ interface ValidatorInterface { diff --git a/app/code/Magento/Paypal/Model/Billing/AbstractAgreement.php b/app/code/Magento/Paypal/Model/Billing/AbstractAgreement.php index 8965684d1085f..58c55ee38f2ab 100644 --- a/app/code/Magento/Paypal/Model/Billing/AbstractAgreement.php +++ b/app/code/Magento/Paypal/Model/Billing/AbstractAgreement.php @@ -7,6 +7,8 @@ /** * Billing Agreement abstract class + * + * @api */ abstract class AbstractAgreement extends \Magento\Framework\Model\AbstractModel { diff --git a/app/code/Magento/Paypal/Model/Billing/Agreement/MethodInterface.php b/app/code/Magento/Paypal/Model/Billing/Agreement/MethodInterface.php index ea4efe52dfec7..d0dd6efd2bd26 100644 --- a/app/code/Magento/Paypal/Model/Billing/Agreement/MethodInterface.php +++ b/app/code/Magento/Paypal/Model/Billing/Agreement/MethodInterface.php @@ -7,6 +7,8 @@ /** * Interface for payment methods that support billing agreements management + * + * @api */ interface MethodInterface { diff --git a/app/code/Magento/Paypal/Model/IpnInterface.php b/app/code/Magento/Paypal/Model/IpnInterface.php index 5b67668e95c99..f6b304c3fd842 100644 --- a/app/code/Magento/Paypal/Model/IpnInterface.php +++ b/app/code/Magento/Paypal/Model/IpnInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Paypal\Model\IpnInterface * + * @api */ interface IpnInterface { diff --git a/app/code/Magento/Paypal/Model/Payflow/Service/Response/Handler/HandlerInterface.php b/app/code/Magento/Paypal/Model/Payflow/Service/Response/Handler/HandlerInterface.php index 83787d8a9c296..fb719ab3e52d2 100644 --- a/app/code/Magento/Paypal/Model/Payflow/Service/Response/Handler/HandlerInterface.php +++ b/app/code/Magento/Paypal/Model/Payflow/Service/Response/Handler/HandlerInterface.php @@ -10,7 +10,9 @@ /** * Interface HandlerInterface used for error handling of gateway response + * * @package Magento\Paypal\Model\Payflow\Service\Response\Handler + * @api */ interface HandlerInterface { diff --git a/app/code/Magento/Quote/Api/ChangeQuoteControlInterface.php b/app/code/Magento/Quote/Api/ChangeQuoteControlInterface.php index 4212b289c4bcf..b30fd989accea 100644 --- a/app/code/Magento/Quote/Api/ChangeQuoteControlInterface.php +++ b/app/code/Magento/Quote/Api/ChangeQuoteControlInterface.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Quote\Api; @@ -12,6 +11,8 @@ /** * Service checks if the user has ability to change the quote. + * + * @api */ interface ChangeQuoteControlInterface { diff --git a/app/code/Magento/Quote/Model/Cart/BuyRequest/BuyRequestDataProviderInterface.php b/app/code/Magento/Quote/Model/Cart/BuyRequest/BuyRequestDataProviderInterface.php index b9c41b18ee163..62df6039a9e20 100644 --- a/app/code/Magento/Quote/Model/Cart/BuyRequest/BuyRequestDataProviderInterface.php +++ b/app/code/Magento/Quote/Model/Cart/BuyRequest/BuyRequestDataProviderInterface.php @@ -11,6 +11,8 @@ /** * Provides data for buy request for different types of products + * + * @api */ interface BuyRequestDataProviderInterface { diff --git a/app/code/Magento/Quote/Model/Cart/Data/CartItem.php b/app/code/Magento/Quote/Model/Cart/Data/CartItem.php index 9836247c56694..dc3ec8e12e763 100644 --- a/app/code/Magento/Quote/Model/Cart/Data/CartItem.php +++ b/app/code/Magento/Quote/Model/Cart/Data/CartItem.php @@ -9,6 +9,8 @@ /** * DTO represents Cart Item data + * + * @api */ class CartItem { diff --git a/app/code/Magento/Quote/Model/Product/QuoteItemsCleanerInterface.php b/app/code/Magento/Quote/Model/Product/QuoteItemsCleanerInterface.php index 0b605b97e2049..f47934f1f76bb 100644 --- a/app/code/Magento/Quote/Model/Product/QuoteItemsCleanerInterface.php +++ b/app/code/Magento/Quote/Model/Product/QuoteItemsCleanerInterface.php @@ -10,6 +10,7 @@ /** * Interface \Magento\Quote\Model\Product\QuoteItemsCleanerInterface * + * @api */ interface QuoteItemsCleanerInterface { diff --git a/app/code/Magento/Quote/Model/Quote/Address/CustomAttributeListInterface.php b/app/code/Magento/Quote/Model/Quote/Address/CustomAttributeListInterface.php index 313ad23f2215b..f60282f9d2cff 100644 --- a/app/code/Magento/Quote/Model/Quote/Address/CustomAttributeListInterface.php +++ b/app/code/Magento/Quote/Model/Quote/Address/CustomAttributeListInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Quote\Model\Quote\Address\CustomAttributeListInterface * + * @api */ interface CustomAttributeListInterface { diff --git a/app/code/Magento/Quote/Model/Quote/Address/Total/CollectorInterface.php b/app/code/Magento/Quote/Model/Quote/Address/Total/CollectorInterface.php index 152baa143e792..c89d6acfcac21 100644 --- a/app/code/Magento/Quote/Model/Quote/Address/Total/CollectorInterface.php +++ b/app/code/Magento/Quote/Model/Quote/Address/Total/CollectorInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Quote\Model\Quote\Address\Total\CollectorInterface * + * @api */ interface CollectorInterface { diff --git a/app/code/Magento/Quote/Model/Quote/Address/Total/ReaderInterface.php b/app/code/Magento/Quote/Model/Quote/Address/Total/ReaderInterface.php index 0bb04a929898c..ac949fa1168db 100644 --- a/app/code/Magento/Quote/Model/Quote/Address/Total/ReaderInterface.php +++ b/app/code/Magento/Quote/Model/Quote/Address/Total/ReaderInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Quote\Model\Quote\Address\Total\ReaderInterface * + * @api */ interface ReaderInterface { diff --git a/app/code/Magento/Quote/Model/Quote/Item/CartItemProcessorInterface.php b/app/code/Magento/Quote/Model/Quote/Item/CartItemProcessorInterface.php index 36865609a6f59..60ba4c8ebbca2 100644 --- a/app/code/Magento/Quote/Model/Quote/Item/CartItemProcessorInterface.php +++ b/app/code/Magento/Quote/Model/Quote/Item/CartItemProcessorInterface.php @@ -9,6 +9,8 @@ /** * Interface CartItemProcessorInterface + * + * @api */ interface CartItemProcessorInterface { diff --git a/app/code/Magento/Quote/Model/Quote/Item/Option.php b/app/code/Magento/Quote/Model/Quote/Item/Option.php index b29d4549780a1..5f21ba16b03dc 100644 --- a/app/code/Magento/Quote/Model/Quote/Item/Option.php +++ b/app/code/Magento/Quote/Model/Quote/Item/Option.php @@ -15,6 +15,8 @@ * @method string getCode() * @method \Magento\Quote\Model\Quote\Item\Option setCode(string $value) * @method \Magento\Quote\Model\Quote\Item\Option setValue(string $value) + * + * @api */ class Option extends \Magento\Framework\Model\AbstractModel implements \Magento\Catalog\Model\Product\Configuration\Item\Option\OptionInterface diff --git a/app/code/Magento/Quote/Model/ValidationRules/QuoteValidationRuleInterface.php b/app/code/Magento/Quote/Model/ValidationRules/QuoteValidationRuleInterface.php index 1a777e3f1a5fe..91cb364201b79 100644 --- a/app/code/Magento/Quote/Model/ValidationRules/QuoteValidationRuleInterface.php +++ b/app/code/Magento/Quote/Model/ValidationRules/QuoteValidationRuleInterface.php @@ -12,6 +12,8 @@ /** * Provides validation of Quote model. + * + * @api */ interface QuoteValidationRuleInterface { diff --git a/app/code/Magento/QuoteGraphQl/Model/Cart/BuyRequest/BuyRequestDataProviderInterface.php b/app/code/Magento/QuoteGraphQl/Model/Cart/BuyRequest/BuyRequestDataProviderInterface.php index 77925d0940cf4..0dfe1acdd8f0a 100644 --- a/app/code/Magento/QuoteGraphQl/Model/Cart/BuyRequest/BuyRequestDataProviderInterface.php +++ b/app/code/Magento/QuoteGraphQl/Model/Cart/BuyRequest/BuyRequestDataProviderInterface.php @@ -9,6 +9,8 @@ /** * Build buy request for adding products to cart + * + * @api */ interface BuyRequestDataProviderInterface { diff --git a/app/code/Magento/QuoteGraphQl/Model/Cart/Payment/AdditionalDataProviderInterface.php b/app/code/Magento/QuoteGraphQl/Model/Cart/Payment/AdditionalDataProviderInterface.php index f17898b2b2568..587ce37d0780f 100644 --- a/app/code/Magento/QuoteGraphQl/Model/Cart/Payment/AdditionalDataProviderInterface.php +++ b/app/code/Magento/QuoteGraphQl/Model/Cart/Payment/AdditionalDataProviderInterface.php @@ -9,6 +9,8 @@ /** * Interface for payment method additional data provider + * + * @api */ interface AdditionalDataProviderInterface { diff --git a/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingAddressesOnCartInterface.php b/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingAddressesOnCartInterface.php index 1244023b89302..cd08342f588fc 100644 --- a/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingAddressesOnCartInterface.php +++ b/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingAddressesOnCartInterface.php @@ -15,9 +15,10 @@ /** * Extension point for setting shipping addresses for a specified shopping cart - * * All objects that are responsible for setting shipping addresses on a cart via GraphQl * should implement this interface. + * + * @api */ interface SetShippingAddressesOnCartInterface { diff --git a/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingMethodsOnCartInterface.php b/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingMethodsOnCartInterface.php index fa6c6cf0923e4..4005b6daae1db 100644 --- a/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingMethodsOnCartInterface.php +++ b/app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingMethodsOnCartInterface.php @@ -16,9 +16,10 @@ /** * Extension point for setting shipping methods for a specified shopping cart - * * All objects that are responsible for setting shipping methods on a cart via GraphQl * should implement this interface. + * + * @api */ interface SetShippingMethodsOnCartInterface { diff --git a/app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/CustomizableOptionValueInterface.php b/app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/CustomizableOptionValueInterface.php index fce8b80f6d476..cb930ba3d06cf 100644 --- a/app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/CustomizableOptionValueInterface.php +++ b/app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/CustomizableOptionValueInterface.php @@ -13,6 +13,8 @@ /** * Customizable Option Value Data provider + * + * @api */ interface CustomizableOptionValueInterface { diff --git a/app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/Processor/ItemDataProcessorInterface.php b/app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/Processor/ItemDataProcessorInterface.php index 33f40bd28c1d3..e3478ba437212 100644 --- a/app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/Processor/ItemDataProcessorInterface.php +++ b/app/code/Magento/QuoteGraphQl/Model/CartItem/DataProvider/Processor/ItemDataProcessorInterface.php @@ -11,6 +11,8 @@ /** * Process Cart Item Data + * + * @api */ interface ItemDataProcessorInterface { diff --git a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlAuthenticationException.php b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlAuthenticationException.php index 44c3d07bd186f..198e4ebc0aaae 100644 --- a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlAuthenticationException.php +++ b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlAuthenticationException.php @@ -13,6 +13,8 @@ /** * Exception for GraphQL to be thrown when authentication fails + * + * @api */ class GraphQlAuthenticationException extends AuthenticationException implements ClientAware { diff --git a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlAuthorizationException.php b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlAuthorizationException.php index f1232ebd4d14b..6f4ee736ebc47 100644 --- a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlAuthorizationException.php +++ b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlAuthorizationException.php @@ -12,6 +12,8 @@ /** * Exception for GraphQL to be thrown when authorization fails + * + * @api */ class GraphQlAuthorizationException extends AuthorizationException implements \GraphQL\Error\ClientAware { diff --git a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php index 28b91c753c7e7..2c3f66f9e9765 100644 --- a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php +++ b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlInputException.php @@ -14,6 +14,8 @@ /** * Exception for GraphQL to be thrown when user supplies invalid input + * + * @api */ class GraphQlInputException extends LocalizedException implements AggregateExceptionInterface, ClientAware { diff --git a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlNoSuchEntityException.php b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlNoSuchEntityException.php index 2a0b9d3bc2eaa..ac2ac07f17728 100644 --- a/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlNoSuchEntityException.php +++ b/lib/internal/Magento/Framework/GraphQl/Exception/GraphQlNoSuchEntityException.php @@ -12,6 +12,8 @@ /** * Exception for GraphQL to be thrown when entity does not exists + * + * @api */ class GraphQlNoSuchEntityException extends NoSuchEntityException implements \GraphQL\Error\ClientAware { @@ -39,7 +41,7 @@ public function __construct(Phrase $phrase, \Exception $cause = null, $code = 0, /** * @inheritdoc */ - public function isClientSafe() : bool + public function isClientSafe(): bool { return $this->isSafe; } @@ -47,7 +49,7 @@ public function isClientSafe() : bool /** * @inheritdoc */ - public function getCategory() : string + public function getCategory(): string { return self::EXCEPTION_CATEGORY; } diff --git a/lib/internal/Magento/Framework/GraphQl/Query/Resolver/ContextInterface.php b/lib/internal/Magento/Framework/GraphQl/Query/Resolver/ContextInterface.php index 7cece8dd7e39b..b18ae5d97087f 100644 --- a/lib/internal/Magento/Framework/GraphQl/Query/Resolver/ContextInterface.php +++ b/lib/internal/Magento/Framework/GraphQl/Query/Resolver/ContextInterface.php @@ -14,6 +14,8 @@ * * GraphQL will pass the same instance of this interface to each field resolver, so these resolvers could have * shared access to the same data for ease of implementation purposes. + * + * @api */ interface ContextInterface {