From 117fe4d17acd1669f788a82190c33d8dfda10fd6 Mon Sep 17 00:00:00 2001 From: Medvediev Date: Wed, 10 Feb 2021 15:37:59 +0200 Subject: [PATCH 01/20] Mark Catalog interfaces as API --- app/code/Magento/Catalog/Block/Product/AwareInterface.php | 2 ++ .../Magento/Catalog/Block/Product/ReviewRendererInterface.php | 1 + .../Product/Initialization/Helper/HandlerInterface.php | 1 + .../Magento/Catalog/Controller/Product/View/ViewInterface.php | 2 ++ .../Magento/Catalog/Model/Attribute/LockValidatorInterface.php | 1 + .../Model/Config/Source/ProductPriceOptionsInterface.php | 2 ++ .../Entity/Product/Attribute/Group/AttributeMapperInterface.php | 1 + .../Catalog/Model/Indexer/Product/Flat/TableDataInterface.php | 2 ++ .../Magento/Catalog/Model/Layer/CollectionFilterInterface.php | 1 + .../Catalog/Model/Layer/FilterableAttributeListInterface.php | 1 + .../Catalog/Model/Layer/ItemCollectionProviderInterface.php | 1 + app/code/Magento/Catalog/Model/Layer/StateKeyInterface.php | 1 + .../Catalog/Model/Product/Condition/ConditionInterface.php | 1 + .../Model/Product/Configuration/Item/Option/OptionInterface.php | 1 + .../Magento/Catalog/Model/Product/Media/ConfigInterface.php | 1 + .../Model/Product/Pricing/Renderer/SalableResolverInterface.php | 2 ++ .../Catalog/Model/ProductLink/CollectionProviderInterface.php | 1 + .../Catalog/Model/ProductLink/Converter/ConverterInterface.php | 1 + .../Catalog/Model/ProductLink/Data/ListCriteriaInterface.php | 2 ++ .../Catalog/Model/ProductLink/Data/ListResultInterface.php | 2 ++ .../Magento/Catalog/Model/ProductLink/MapProviderInterface.php | 2 ++ .../Magento/Catalog/Model/ProductOptions/ConfigInterface.php | 1 + .../Product/Indexer/Price/PriceModifierInterface.php | 2 ++ .../Product/LinkedProductSelectBuilderInterface.php | 2 ++ .../Magento/Catalog/Pricing/Price/ConfiguredPriceInterface.php | 2 ++ .../Catalog/Pricing/Price/MinimalPriceCalculatorInterface.php | 2 ++ .../Magento/Catalog/Pricing/Price/SpecialPriceInterface.php | 2 ++ .../Form/Modifier/Eav/WysiwygConfigDataProcessorInterface.php | 2 ++ 28 files changed, 42 insertions(+) diff --git a/app/code/Magento/Catalog/Block/Product/AwareInterface.php b/app/code/Magento/Catalog/Block/Product/AwareInterface.php index cd1475d029cc6..37c9111c709e7 100644 --- a/app/code/Magento/Catalog/Block/Product/AwareInterface.php +++ b/app/code/Magento/Catalog/Block/Product/AwareInterface.php @@ -7,6 +7,8 @@ /** * Class Product Aware interface + * + * @api */ interface AwareInterface { diff --git a/app/code/Magento/Catalog/Block/Product/ReviewRendererInterface.php b/app/code/Magento/Catalog/Block/Product/ReviewRendererInterface.php index 6fc118d97cb32..64c061abb66a3 100644 --- a/app/code/Magento/Catalog/Block/Product/ReviewRendererInterface.php +++ b/app/code/Magento/Catalog/Block/Product/ReviewRendererInterface.php @@ -9,6 +9,7 @@ /** * Interface \Magento\Catalog\Block\Product\ReviewRendererInterface * + * @api */ interface ReviewRendererInterface { diff --git a/app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper/HandlerInterface.php b/app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper/HandlerInterface.php index 002f2a3886ae9..0e68670a71174 100644 --- a/app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper/HandlerInterface.php +++ b/app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper/HandlerInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\HandlerInterface * + * @api */ interface HandlerInterface { diff --git a/app/code/Magento/Catalog/Controller/Product/View/ViewInterface.php b/app/code/Magento/Catalog/Controller/Product/View/ViewInterface.php index 8741eb41053da..e19a6eae31746 100644 --- a/app/code/Magento/Catalog/Controller/Product/View/ViewInterface.php +++ b/app/code/Magento/Catalog/Controller/Product/View/ViewInterface.php @@ -6,6 +6,8 @@ /** * Marker interface for controllers on product view page + * + * @api */ namespace Magento\Catalog\Controller\Product\View; diff --git a/app/code/Magento/Catalog/Model/Attribute/LockValidatorInterface.php b/app/code/Magento/Catalog/Model/Attribute/LockValidatorInterface.php index bb63281bd4895..eea06a50bf503 100644 --- a/app/code/Magento/Catalog/Model/Attribute/LockValidatorInterface.php +++ b/app/code/Magento/Catalog/Model/Attribute/LockValidatorInterface.php @@ -10,6 +10,7 @@ /** * Interface \Magento\Catalog\Model\Attribute\LockValidatorInterface * + * @api */ interface LockValidatorInterface { diff --git a/app/code/Magento/Catalog/Model/Config/Source/ProductPriceOptionsInterface.php b/app/code/Magento/Catalog/Model/Config/Source/ProductPriceOptionsInterface.php index 1d31b8e1f7cee..39e9a1c1205c5 100644 --- a/app/code/Magento/Catalog/Model/Config/Source/ProductPriceOptionsInterface.php +++ b/app/code/Magento/Catalog/Model/Config/Source/ProductPriceOptionsInterface.php @@ -9,6 +9,8 @@ /** * Interface ProductPriceOptionsInterface + * + * @api */ interface ProductPriceOptionsInterface extends OptionSourceInterface { diff --git a/app/code/Magento/Catalog/Model/Entity/Product/Attribute/Group/AttributeMapperInterface.php b/app/code/Magento/Catalog/Model/Entity/Product/Attribute/Group/AttributeMapperInterface.php index 35af7c4b4a4b8..b5bbe8c6d9e89 100644 --- a/app/code/Magento/Catalog/Model/Entity/Product/Attribute/Group/AttributeMapperInterface.php +++ b/app/code/Magento/Catalog/Model/Entity/Product/Attribute/Group/AttributeMapperInterface.php @@ -12,6 +12,7 @@ /** * Interface \Magento\Catalog\Model\Entity\Product\Attribute\Group\AttributeMapperInterface * + * @api */ interface AttributeMapperInterface { diff --git a/app/code/Magento/Catalog/Model/Indexer/Product/Flat/TableDataInterface.php b/app/code/Magento/Catalog/Model/Indexer/Product/Flat/TableDataInterface.php index 59ba258dc129a..455d6f09a43b8 100644 --- a/app/code/Magento/Catalog/Model/Indexer/Product/Flat/TableDataInterface.php +++ b/app/code/Magento/Catalog/Model/Indexer/Product/Flat/TableDataInterface.php @@ -7,6 +7,8 @@ /** * Interface TableDataInterface + * + * @api */ interface TableDataInterface { diff --git a/app/code/Magento/Catalog/Model/Layer/CollectionFilterInterface.php b/app/code/Magento/Catalog/Model/Layer/CollectionFilterInterface.php index 0727a6d4d3c7b..5ceb7f9972dec 100644 --- a/app/code/Magento/Catalog/Model/Layer/CollectionFilterInterface.php +++ b/app/code/Magento/Catalog/Model/Layer/CollectionFilterInterface.php @@ -9,6 +9,7 @@ /** * Interface \Magento\Catalog\Model\Layer\CollectionFilterInterface * + * @api */ interface CollectionFilterInterface { diff --git a/app/code/Magento/Catalog/Model/Layer/FilterableAttributeListInterface.php b/app/code/Magento/Catalog/Model/Layer/FilterableAttributeListInterface.php index 547e57a909b57..12bc11646b2cb 100644 --- a/app/code/Magento/Catalog/Model/Layer/FilterableAttributeListInterface.php +++ b/app/code/Magento/Catalog/Model/Layer/FilterableAttributeListInterface.php @@ -9,6 +9,7 @@ /** * Interface \Magento\Catalog\Model\Layer\FilterableAttributeListInterface * + * @api */ interface FilterableAttributeListInterface { diff --git a/app/code/Magento/Catalog/Model/Layer/ItemCollectionProviderInterface.php b/app/code/Magento/Catalog/Model/Layer/ItemCollectionProviderInterface.php index 68f21c88a2d03..f9c8f00705614 100644 --- a/app/code/Magento/Catalog/Model/Layer/ItemCollectionProviderInterface.php +++ b/app/code/Magento/Catalog/Model/Layer/ItemCollectionProviderInterface.php @@ -10,6 +10,7 @@ /** * Interface \Magento\Catalog\Model\Layer\ItemCollectionProviderInterface * + * @api */ interface ItemCollectionProviderInterface { diff --git a/app/code/Magento/Catalog/Model/Layer/StateKeyInterface.php b/app/code/Magento/Catalog/Model/Layer/StateKeyInterface.php index 4d43f836af4ce..c751df7494ed0 100644 --- a/app/code/Magento/Catalog/Model/Layer/StateKeyInterface.php +++ b/app/code/Magento/Catalog/Model/Layer/StateKeyInterface.php @@ -9,6 +9,7 @@ /** * Interface \Magento\Catalog\Model\Layer\StateKeyInterface * + * @api */ interface StateKeyInterface { diff --git a/app/code/Magento/Catalog/Model/Product/Condition/ConditionInterface.php b/app/code/Magento/Catalog/Model/Product/Condition/ConditionInterface.php index f1be3a1d4d599..0bb6f7568fa28 100644 --- a/app/code/Magento/Catalog/Model/Product/Condition/ConditionInterface.php +++ b/app/code/Magento/Catalog/Model/Product/Condition/ConditionInterface.php @@ -12,6 +12,7 @@ /** * Interface \Magento\Catalog\Model\Product\Condition\ConditionInterface * + * @api */ interface ConditionInterface { diff --git a/app/code/Magento/Catalog/Model/Product/Configuration/Item/Option/OptionInterface.php b/app/code/Magento/Catalog/Model/Product/Configuration/Item/Option/OptionInterface.php index 7baa2e0493207..e765464ea6d3a 100644 --- a/app/code/Magento/Catalog/Model/Product/Configuration/Item/Option/OptionInterface.php +++ b/app/code/Magento/Catalog/Model/Product/Configuration/Item/Option/OptionInterface.php @@ -7,6 +7,7 @@ /** * Interface of product configurational item option * + * @api * @author Magento Core Team */ namespace Magento\Catalog\Model\Product\Configuration\Item\Option; diff --git a/app/code/Magento/Catalog/Model/Product/Media/ConfigInterface.php b/app/code/Magento/Catalog/Model/Product/Media/ConfigInterface.php index b609debf3ee10..2392fb24a407f 100644 --- a/app/code/Magento/Catalog/Model/Product/Media/ConfigInterface.php +++ b/app/code/Magento/Catalog/Model/Product/Media/ConfigInterface.php @@ -12,6 +12,7 @@ /** * Interface \Magento\Catalog\Model\Product\Media\ConfigInterface * + * @api */ interface ConfigInterface { diff --git a/app/code/Magento/Catalog/Model/Product/Pricing/Renderer/SalableResolverInterface.php b/app/code/Magento/Catalog/Model/Product/Pricing/Renderer/SalableResolverInterface.php index 4d17f55114c6a..178ebb3dd6333 100644 --- a/app/code/Magento/Catalog/Model/Product/Pricing/Renderer/SalableResolverInterface.php +++ b/app/code/Magento/Catalog/Model/Product/Pricing/Renderer/SalableResolverInterface.php @@ -8,6 +8,8 @@ /** * Interface resolver checks whether product available for sale + * + * @api */ interface SalableResolverInterface { diff --git a/app/code/Magento/Catalog/Model/ProductLink/CollectionProviderInterface.php b/app/code/Magento/Catalog/Model/ProductLink/CollectionProviderInterface.php index 2311ea5e1c506..93f91a70a169b 100644 --- a/app/code/Magento/Catalog/Model/ProductLink/CollectionProviderInterface.php +++ b/app/code/Magento/Catalog/Model/ProductLink/CollectionProviderInterface.php @@ -9,6 +9,7 @@ /** * Interface \Magento\Catalog\Model\ProductLink\CollectionProviderInterface * + * @api */ interface CollectionProviderInterface { diff --git a/app/code/Magento/Catalog/Model/ProductLink/Converter/ConverterInterface.php b/app/code/Magento/Catalog/Model/ProductLink/Converter/ConverterInterface.php index 70e41ce03fb99..74e17152ec256 100644 --- a/app/code/Magento/Catalog/Model/ProductLink/Converter/ConverterInterface.php +++ b/app/code/Magento/Catalog/Model/ProductLink/Converter/ConverterInterface.php @@ -9,6 +9,7 @@ /** * Interface \Magento\Catalog\Model\ProductLink\Converter\ConverterInterface * + * @api */ interface ConverterInterface { diff --git a/app/code/Magento/Catalog/Model/ProductLink/Data/ListCriteriaInterface.php b/app/code/Magento/Catalog/Model/ProductLink/Data/ListCriteriaInterface.php index 0291be5b9e783..9a174e32d475c 100644 --- a/app/code/Magento/Catalog/Model/ProductLink/Data/ListCriteriaInterface.php +++ b/app/code/Magento/Catalog/Model/ProductLink/Data/ListCriteriaInterface.php @@ -9,6 +9,8 @@ /** * Criteria for finding lists. + * + * @api */ interface ListCriteriaInterface { diff --git a/app/code/Magento/Catalog/Model/ProductLink/Data/ListResultInterface.php b/app/code/Magento/Catalog/Model/ProductLink/Data/ListResultInterface.php index f5c0454e7a542..984056dfdadc7 100644 --- a/app/code/Magento/Catalog/Model/ProductLink/Data/ListResultInterface.php +++ b/app/code/Magento/Catalog/Model/ProductLink/Data/ListResultInterface.php @@ -11,6 +11,8 @@ /** * Result of finding a list of links. + * + * @api */ interface ListResultInterface { diff --git a/app/code/Magento/Catalog/Model/ProductLink/MapProviderInterface.php b/app/code/Magento/Catalog/Model/ProductLink/MapProviderInterface.php index 31951ab10f5b4..571bcd71faa36 100644 --- a/app/code/Magento/Catalog/Model/ProductLink/MapProviderInterface.php +++ b/app/code/Magento/Catalog/Model/ProductLink/MapProviderInterface.php @@ -12,6 +12,8 @@ /** * Provide link data for products. + * + * @api */ interface MapProviderInterface { diff --git a/app/code/Magento/Catalog/Model/ProductOptions/ConfigInterface.php b/app/code/Magento/Catalog/Model/ProductOptions/ConfigInterface.php index b41429736591e..c38fce00524b1 100644 --- a/app/code/Magento/Catalog/Model/ProductOptions/ConfigInterface.php +++ b/app/code/Magento/Catalog/Model/ProductOptions/ConfigInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Catalog\Model\ProductOptions\ConfigInterface * + * @api */ interface ConfigInterface { diff --git a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/PriceModifierInterface.php b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/PriceModifierInterface.php index 6ecb6aba89933..5086ce563f151 100644 --- a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/PriceModifierInterface.php +++ b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/PriceModifierInterface.php @@ -9,6 +9,8 @@ /** * Interface for modifying price data in price index table. + * + * @api */ interface PriceModifierInterface { diff --git a/app/code/Magento/Catalog/Model/ResourceModel/Product/LinkedProductSelectBuilderInterface.php b/app/code/Magento/Catalog/Model/ResourceModel/Product/LinkedProductSelectBuilderInterface.php index 3411c124bf5ce..55066d4c0014d 100644 --- a/app/code/Magento/Catalog/Model/ResourceModel/Product/LinkedProductSelectBuilderInterface.php +++ b/app/code/Magento/Catalog/Model/ResourceModel/Product/LinkedProductSelectBuilderInterface.php @@ -7,6 +7,8 @@ /** * Provide Select object for retrieve product id with minimal price + * + * @api */ interface LinkedProductSelectBuilderInterface { diff --git a/app/code/Magento/Catalog/Pricing/Price/ConfiguredPriceInterface.php b/app/code/Magento/Catalog/Pricing/Price/ConfiguredPriceInterface.php index e41df30ea1dec..7bd5398b9bda7 100644 --- a/app/code/Magento/Catalog/Pricing/Price/ConfiguredPriceInterface.php +++ b/app/code/Magento/Catalog/Pricing/Price/ConfiguredPriceInterface.php @@ -10,6 +10,8 @@ /** * Configured price interface. + * + * @api */ interface ConfiguredPriceInterface { diff --git a/app/code/Magento/Catalog/Pricing/Price/MinimalPriceCalculatorInterface.php b/app/code/Magento/Catalog/Pricing/Price/MinimalPriceCalculatorInterface.php index 6c493947919da..acc76523d7603 100644 --- a/app/code/Magento/Catalog/Pricing/Price/MinimalPriceCalculatorInterface.php +++ b/app/code/Magento/Catalog/Pricing/Price/MinimalPriceCalculatorInterface.php @@ -11,6 +11,8 @@ /** * Interface define methods which control display of "As low as" price + * + * @api */ interface MinimalPriceCalculatorInterface { diff --git a/app/code/Magento/Catalog/Pricing/Price/SpecialPriceInterface.php b/app/code/Magento/Catalog/Pricing/Price/SpecialPriceInterface.php index f7a8fa0c9d77c..b9cb223bef0d7 100644 --- a/app/code/Magento/Catalog/Pricing/Price/SpecialPriceInterface.php +++ b/app/code/Magento/Catalog/Pricing/Price/SpecialPriceInterface.php @@ -8,6 +8,8 @@ /** * Special price interface + * + * @api */ interface SpecialPriceInterface { diff --git a/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav/WysiwygConfigDataProcessorInterface.php b/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav/WysiwygConfigDataProcessorInterface.php index 64faef7ba2761..66f5b586ca56b 100644 --- a/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav/WysiwygConfigDataProcessorInterface.php +++ b/app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav/WysiwygConfigDataProcessorInterface.php @@ -10,6 +10,8 @@ /** * Interface WysiwygConfigDataProcessorInterface + * + * @api */ interface WysiwygConfigDataProcessorInterface { From bdff3f8fbf09ef508297594b5efcdd461211254d Mon Sep 17 00:00:00 2001 From: Medvediev Date: Wed, 24 Feb 2021 12:03:35 +0200 Subject: [PATCH 02/20] Fixed static tests. Mark Catalog/Model/ResourceModel/Product/Indexer/Price/IndexTableStructure.php as API --- .../ResourceModel/Product/Indexer/Price/IndexTableStructure.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/IndexTableStructure.php b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/IndexTableStructure.php index fb3eef2bf38eb..7bd935ab7d3bc 100644 --- a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/IndexTableStructure.php +++ b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/IndexTableStructure.php @@ -9,6 +9,8 @@ /** * Wrapper for structure of price index table. + * + * @api */ class IndexTableStructure { From ce71c85931a0865d8992f62107f7faef8303216a Mon Sep 17 00:00:00 2001 From: Medvediev Date: Wed, 10 Feb 2021 11:28:42 +0200 Subject: [PATCH 03/20] Mark UrlRewriteGraphQl, User, Vault, Webapi, Widget and Wishlist interfaces as API --- .../Model/Resolver/UrlRewrite/CustomUrlLocatorInterface.php | 2 ++ .../Magento/User/Model/Spi/NotificationExceptionInterface.php | 2 ++ app/code/Magento/User/Model/Spi/NotificatorInterface.php | 2 ++ app/code/Magento/Vault/Block/Customer/IconInterface.php | 2 ++ .../Webapi/Controller/Rest/RequestProcessorInterface.php | 2 ++ app/code/Magento/Widget/Block/BlockInterface.php | 1 + app/code/Magento/Wishlist/Controller/IndexInterface.php | 1 + .../Magento/Wishlist/Controller/WishlistProviderInterface.php | 1 + .../Magento/Wishlist/Model/AuthenticationStateInterface.php | 1 + .../ResourceModel/Item/Product/CollectionBuilderInterface.php | 2 ++ .../Wishlist/BuyRequest/BuyRequestDataProviderInterface.php | 2 ++ 11 files changed, 18 insertions(+) diff --git a/app/code/Magento/UrlRewriteGraphQl/Model/Resolver/UrlRewrite/CustomUrlLocatorInterface.php b/app/code/Magento/UrlRewriteGraphQl/Model/Resolver/UrlRewrite/CustomUrlLocatorInterface.php index df0c0ee96c16c..0a6c02e561670 100644 --- a/app/code/Magento/UrlRewriteGraphQl/Model/Resolver/UrlRewrite/CustomUrlLocatorInterface.php +++ b/app/code/Magento/UrlRewriteGraphQl/Model/Resolver/UrlRewrite/CustomUrlLocatorInterface.php @@ -11,6 +11,8 @@ * Interface for resolution of custom URLs. * * It can be used, for example, to resolve '\' URL path to a 'Home' page. + * + * @api */ interface CustomUrlLocatorInterface { diff --git a/app/code/Magento/User/Model/Spi/NotificationExceptionInterface.php b/app/code/Magento/User/Model/Spi/NotificationExceptionInterface.php index 47af7cbe6dd50..722a9585952c5 100644 --- a/app/code/Magento/User/Model/Spi/NotificationExceptionInterface.php +++ b/app/code/Magento/User/Model/Spi/NotificationExceptionInterface.php @@ -10,6 +10,8 @@ /** * When a notification cannot be sent. + * + * @api */ interface NotificationExceptionInterface extends \Throwable { diff --git a/app/code/Magento/User/Model/Spi/NotificatorInterface.php b/app/code/Magento/User/Model/Spi/NotificatorInterface.php index f5e8ee68e7eed..1277a4ca7084c 100644 --- a/app/code/Magento/User/Model/Spi/NotificatorInterface.php +++ b/app/code/Magento/User/Model/Spi/NotificatorInterface.php @@ -12,6 +12,8 @@ /** * Use to send out notifications about user related events. + * + * @api */ interface NotificatorInterface { diff --git a/app/code/Magento/Vault/Block/Customer/IconInterface.php b/app/code/Magento/Vault/Block/Customer/IconInterface.php index d4bcb4e55f71c..7625995a36601 100644 --- a/app/code/Magento/Vault/Block/Customer/IconInterface.php +++ b/app/code/Magento/Vault/Block/Customer/IconInterface.php @@ -7,6 +7,8 @@ /** * Interface IconInterface + * + * @api */ interface IconInterface { diff --git a/app/code/Magento/Webapi/Controller/Rest/RequestProcessorInterface.php b/app/code/Magento/Webapi/Controller/Rest/RequestProcessorInterface.php index f4340c18e2134..5e021ecdc02dd 100644 --- a/app/code/Magento/Webapi/Controller/Rest/RequestProcessorInterface.php +++ b/app/code/Magento/Webapi/Controller/Rest/RequestProcessorInterface.php @@ -9,6 +9,8 @@ /** * Request processor interface + * + * @api */ interface RequestProcessorInterface { diff --git a/app/code/Magento/Widget/Block/BlockInterface.php b/app/code/Magento/Widget/Block/BlockInterface.php index 4f795d949b8cd..eff9a0b26b528 100644 --- a/app/code/Magento/Widget/Block/BlockInterface.php +++ b/app/code/Magento/Widget/Block/BlockInterface.php @@ -14,6 +14,7 @@ /** * Interface \Magento\Widget\Block\BlockInterface * + * @api */ interface BlockInterface { diff --git a/app/code/Magento/Wishlist/Controller/IndexInterface.php b/app/code/Magento/Wishlist/Controller/IndexInterface.php index 8954996ab1173..1e2bcb66a7830 100644 --- a/app/code/Magento/Wishlist/Controller/IndexInterface.php +++ b/app/code/Magento/Wishlist/Controller/IndexInterface.php @@ -11,6 +11,7 @@ /** * Interface \Magento\Wishlist\Controller\IndexInterface * + * @api */ interface IndexInterface extends \Magento\Framework\App\ActionInterface, ViewInterface { diff --git a/app/code/Magento/Wishlist/Controller/WishlistProviderInterface.php b/app/code/Magento/Wishlist/Controller/WishlistProviderInterface.php index 0b74c0a01a36d..08f16471a117b 100644 --- a/app/code/Magento/Wishlist/Controller/WishlistProviderInterface.php +++ b/app/code/Magento/Wishlist/Controller/WishlistProviderInterface.php @@ -9,6 +9,7 @@ /** * Interface \Magento\Wishlist\Controller\WishlistProviderInterface * + * @api */ interface WishlistProviderInterface { diff --git a/app/code/Magento/Wishlist/Model/AuthenticationStateInterface.php b/app/code/Magento/Wishlist/Model/AuthenticationStateInterface.php index 2c93097d1c3e1..5c7e9c808ff0f 100644 --- a/app/code/Magento/Wishlist/Model/AuthenticationStateInterface.php +++ b/app/code/Magento/Wishlist/Model/AuthenticationStateInterface.php @@ -9,6 +9,7 @@ /** * Interface \Magento\Wishlist\Model\AuthenticationStateInterface * + * @api */ interface AuthenticationStateInterface { diff --git a/app/code/Magento/Wishlist/Model/ResourceModel/Item/Product/CollectionBuilderInterface.php b/app/code/Magento/Wishlist/Model/ResourceModel/Item/Product/CollectionBuilderInterface.php index 1984d92e08a60..570afaeb6a002 100644 --- a/app/code/Magento/Wishlist/Model/ResourceModel/Item/Product/CollectionBuilderInterface.php +++ b/app/code/Magento/Wishlist/Model/ResourceModel/Item/Product/CollectionBuilderInterface.php @@ -12,6 +12,8 @@ /** * Wishlist items products collection builder + * + * @api */ interface CollectionBuilderInterface { diff --git a/app/code/Magento/Wishlist/Model/Wishlist/BuyRequest/BuyRequestDataProviderInterface.php b/app/code/Magento/Wishlist/Model/Wishlist/BuyRequest/BuyRequestDataProviderInterface.php index fac45d7f86c7c..63c2afc19dd3d 100644 --- a/app/code/Magento/Wishlist/Model/Wishlist/BuyRequest/BuyRequestDataProviderInterface.php +++ b/app/code/Magento/Wishlist/Model/Wishlist/BuyRequest/BuyRequestDataProviderInterface.php @@ -11,6 +11,8 @@ /** * Build buy request for adding products to wishlist + * + * @api */ interface BuyRequestDataProviderInterface { From dad0fc3cfd6e6ceda38ccf733303ec3780ca0bf7 Mon Sep 17 00:00:00 2001 From: "taras.gamanov" Date: Wed, 24 Feb 2021 11:52:05 +0200 Subject: [PATCH 04/20] Static test has been fixed --- .../Magento/Wishlist/Model/Wishlist/Data/WishlistItem.php | 2 ++ lib/internal/Magento/Framework/Webapi/Rest/Request.php | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/app/code/Magento/Wishlist/Model/Wishlist/Data/WishlistItem.php b/app/code/Magento/Wishlist/Model/Wishlist/Data/WishlistItem.php index 236b7f1eee72d..d5c974c733225 100644 --- a/app/code/Magento/Wishlist/Model/Wishlist/Data/WishlistItem.php +++ b/app/code/Magento/Wishlist/Model/Wishlist/Data/WishlistItem.php @@ -9,6 +9,8 @@ /** * DTO represents Wishlist Item data + * + * @api */ class WishlistItem { diff --git a/lib/internal/Magento/Framework/Webapi/Rest/Request.php b/lib/internal/Magento/Framework/Webapi/Rest/Request.php index 78ed1b663c7ff..ed3a6ea28c67c 100644 --- a/lib/internal/Magento/Framework/Webapi/Rest/Request.php +++ b/lib/internal/Magento/Framework/Webapi/Rest/Request.php @@ -11,6 +11,13 @@ use Magento\Framework\Api\SimpleDataObjectConverter; use Magento\Framework\Phrase; +/** + * Class Request + * + * @api + * + * @package Magento\Framework\Webapi\Rest + */ class Request extends \Magento\Framework\Webapi\Request { /**#@+ From 1e8836ac041855bafdfe5a24f62cd7f16446efe2 Mon Sep 17 00:00:00 2001 From: "taras.gamanov" Date: Thu, 25 Feb 2021 09:57:46 +0200 Subject: [PATCH 05/20] refactoring --- lib/internal/Magento/Framework/Webapi/Rest/Request.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/internal/Magento/Framework/Webapi/Rest/Request.php b/lib/internal/Magento/Framework/Webapi/Rest/Request.php index ed3a6ea28c67c..9b2313b593eea 100644 --- a/lib/internal/Magento/Framework/Webapi/Rest/Request.php +++ b/lib/internal/Magento/Framework/Webapi/Rest/Request.php @@ -15,8 +15,6 @@ * Class Request * * @api - * - * @package Magento\Framework\Webapi\Rest */ class Request extends \Magento\Framework\Webapi\Request { From 5d994f6ebe4f5d72013dae7e288e655608d56548 Mon Sep 17 00:00:00 2001 From: Medvediev Date: Wed, 10 Feb 2021 12:51:05 +0200 Subject: [PATCH 06/20] Marked Factory classes as API --- app/code/Magento/Catalog/Block/Product/ImageFactory.php | 2 ++ .../Magento/Catalog/Model/Product/Type/Price/Factory.php | 6 ++++-- .../Config/Block/System/Config/Form/Field/Factory.php | 1 + .../Config/Block/System/Config/Form/Fieldset/Factory.php | 1 + app/code/Magento/Customer/Model/Metadata/FormFactory.php | 7 +++++-- app/code/Magento/ImportExport/Model/Export/Factory.php | 6 ++++-- .../Model/Quote/Address/RateCollectorInterfaceFactory.php | 2 ++ .../Magento/Quote/Model/Quote/Address/TotalFactory.php | 2 ++ app/code/Magento/Sales/Model/Order/CreditmemoFactory.php | 1 + .../Sales/Model/ResourceModel/Order/Collection/Factory.php | 3 +++ app/code/Magento/Ui/Component/Form/Fieldset/Factory.php | 2 ++ lib/internal/Magento/Framework/Acl/AclResourceFactory.php | 7 +++++-- lib/internal/Magento/Framework/AclFactory.php | 7 +++++-- lib/internal/Magento/Framework/Amqp/ConfigFactory.php | 2 ++ .../Api/ExtensionAttribute/JoinDataInterfaceFactory.php | 2 ++ .../Magento/Framework/Api/Search/DocumentFactory.php | 3 +++ .../Magento/Framework/Api/Search/SearchCriteriaFactory.php | 3 +++ lib/internal/Magento/Framework/App/Config/ValueFactory.php | 2 ++ .../Magento/Framework/Config/Data/ConfigDataFactory.php | 2 ++ lib/internal/Magento/Framework/Config/ViewFactory.php | 3 +++ .../Magento/Framework/Controller/Result/JsonFactory.php | 2 ++ .../Magento/Framework/DB/Adapter/Pdo/MysqlFactory.php | 2 ++ lib/internal/Magento/Framework/DB/Ddl/TriggerFactory.php | 3 +++ lib/internal/Magento/Framework/Data/FormFactory.php | 2 ++ lib/internal/Magento/Framework/Data/Tree/NodeFactory.php | 2 ++ lib/internal/Magento/Framework/Data/TreeFactory.php | 2 ++ lib/internal/Magento/Framework/DataObject/Factory.php | 3 +++ lib/internal/Magento/Framework/Event/ObserverFactory.php | 7 +++++-- lib/internal/Magento/Framework/EventFactory.php | 3 +++ lib/internal/Magento/Framework/File/UploaderFactory.php | 3 +++ .../Magento/Framework/Filesystem/Directory/ReadFactory.php | 2 ++ .../Magento/Framework/Mail/TransportInterfaceFactory.php | 2 ++ .../Magento/Framework/Message/CollectionFactory.php | 2 ++ .../Magento/Framework/Module/Setup/MigrationFactory.php | 2 ++ .../Setup/Declaration/Schema/Diff/DiffFactory.php | 1 + lib/internal/Magento/Framework/ValidatorFactory.php | 2 ++ .../Framework/View/Asset/File/FallbackContextFactory.php | 2 ++ lib/internal/Magento/Framework/View/Asset/FileFactory.php | 2 ++ .../Framework/View/Layout/Generator/ContextFactory.php | 3 +++ .../Framework/View/Layout/Reader/ContextFactory.php | 3 +++ lib/internal/Magento/Framework/View/Page/ConfigFactory.php | 2 ++ 41 files changed, 104 insertions(+), 12 deletions(-) diff --git a/app/code/Magento/Catalog/Block/Product/ImageFactory.php b/app/code/Magento/Catalog/Block/Product/ImageFactory.php index d43a77695e363..61133cb054d66 100644 --- a/app/code/Magento/Catalog/Block/Product/ImageFactory.php +++ b/app/code/Magento/Catalog/Block/Product/ImageFactory.php @@ -18,6 +18,8 @@ /** * Create imageBlock from product and view.xml + * + * @api */ class ImageFactory { diff --git a/app/code/Magento/Catalog/Model/Product/Type/Price/Factory.php b/app/code/Magento/Catalog/Model/Product/Type/Price/Factory.php index 2d30190e12f3b..298177be81c92 100644 --- a/app/code/Magento/Catalog/Model/Product/Type/Price/Factory.php +++ b/app/code/Magento/Catalog/Model/Product/Type/Price/Factory.php @@ -4,11 +4,13 @@ * See COPYING.txt for license details. */ +namespace Magento\Catalog\Model\Product\Type\Price; + /** * Product type price factory + * + * @api */ -namespace Magento\Catalog\Model\Product\Type\Price; - class Factory { /** diff --git a/app/code/Magento/Config/Block/System/Config/Form/Field/Factory.php b/app/code/Magento/Config/Block/System/Config/Form/Field/Factory.php index ea9816a68cc6e..7b737b73479d5 100644 --- a/app/code/Magento/Config/Block/System/Config/Form/Field/Factory.php +++ b/app/code/Magento/Config/Block/System/Config/Form/Field/Factory.php @@ -9,6 +9,7 @@ /** * Magento\Config\Block\System\Config\Form\Field Class Factory * + * @api * @codeCoverageIgnore */ class Factory diff --git a/app/code/Magento/Config/Block/System/Config/Form/Fieldset/Factory.php b/app/code/Magento/Config/Block/System/Config/Form/Fieldset/Factory.php index 51884cc0b73dd..81e22f33cfcd6 100644 --- a/app/code/Magento/Config/Block/System/Config/Form/Fieldset/Factory.php +++ b/app/code/Magento/Config/Block/System/Config/Form/Fieldset/Factory.php @@ -9,6 +9,7 @@ /** * Magento\Config\Block\System\Config\Form\Fieldset Class Factory * + * @api * @codeCoverageIgnore */ class Factory diff --git a/app/code/Magento/Customer/Model/Metadata/FormFactory.php b/app/code/Magento/Customer/Model/Metadata/FormFactory.php index 1385171149374..f1ed20fb85200 100644 --- a/app/code/Magento/Customer/Model/Metadata/FormFactory.php +++ b/app/code/Magento/Customer/Model/Metadata/FormFactory.php @@ -1,12 +1,15 @@ Date: Wed, 24 Feb 2021 13:47:05 +0200 Subject: [PATCH 07/20] Fixed Satic test. Mark lib/internal/Magento/Framework/Api/ExtensionAttribute/JoinData.php as API --- .../Magento/Framework/Api/ExtensionAttribute/JoinData.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/internal/Magento/Framework/Api/ExtensionAttribute/JoinData.php b/lib/internal/Magento/Framework/Api/ExtensionAttribute/JoinData.php index 10619ffa90d35..de11a440a2ddb 100644 --- a/lib/internal/Magento/Framework/Api/ExtensionAttribute/JoinData.php +++ b/lib/internal/Magento/Framework/Api/ExtensionAttribute/JoinData.php @@ -9,6 +9,7 @@ /** * Data holder for extension attribute joins. * + * @api * @codeCoverageIgnore */ class JoinData implements JoinDataInterface From 559575e6fac0402b1a9f44b43be07efb4e24a279 Mon Sep 17 00:00:00 2001 From: Medvediev Date: Wed, 24 Feb 2021 15:45:32 +0200 Subject: [PATCH 08/20] Fixed static tests. Marked as API lib/internal/Magento/Framework/DB/LoggerInterface.php --- lib/internal/Magento/Framework/DB/LoggerInterface.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/internal/Magento/Framework/DB/LoggerInterface.php b/lib/internal/Magento/Framework/DB/LoggerInterface.php index f072254c0f76e..44ded3b4f543f 100644 --- a/lib/internal/Magento/Framework/DB/LoggerInterface.php +++ b/lib/internal/Magento/Framework/DB/LoggerInterface.php @@ -7,6 +7,8 @@ /** * DB logger interface + * + * @api */ interface LoggerInterface { From 81ec7c910e09db046d03ee48c3b162eb36f2f56f Mon Sep 17 00:00:00 2001 From: tuna Date: Tue, 23 Feb 2021 15:26:02 +0700 Subject: [PATCH 09/20] Mark Framework interfaces as API part 9 update update up --- .../Framework/View/File/FileList/CollateInterface.php | 3 +++ .../View/Helper/SecureHtmlRender/EventHandlerData.php | 3 ++- .../Helper/SecureHtmlRender/SecurityProcessorInterface.php | 3 ++- .../Framework/View/Helper/SecureHtmlRender/TagData.php | 3 ++- .../Framework/View/Layout/Argument/UpdaterInterface.php | 4 ++++ .../View/Layout/Condition/VisibilityConditionInterface.php | 6 +++++- .../Magento/Framework/View/Layout/GeneratorInterface.php | 3 +++ .../Framework/View/Layout/LayoutCacheKeyInterface.php | 4 ++++ .../Magento/Framework/View/Layout/ProcessorInterface.php | 4 ++++ .../Magento/Framework/View/Layout/ReaderInterface.php | 3 +++ .../View/Model/PageLayout/Config/BuilderInterface.php | 6 +++++- .../Framework/View/Page/Config/RendererInterface.php | 4 ++-- lib/internal/Magento/Framework/View/PageLayout/Config.php | 3 +++ .../TemplateEngine/Xhtml/Compiler/AttributeInterface.php | 4 ++++ .../View/TemplateEngine/Xhtml/Compiler/CdataInterface.php | 4 ++++ .../TemplateEngine/Xhtml/Compiler/CommentInterface.php | 4 ++++ .../Xhtml/Compiler/Directive/DirectiveInterface.php | 4 ++++ .../Xhtml/Compiler/Element/ElementInterface.php | 4 ++++ .../View/TemplateEngine/Xhtml/Compiler/TextInterface.php | 4 ++++ .../View/TemplateEngine/Xhtml/ResultInterface.php | 4 ++++ .../Magento/Framework/View/TemplateEngineInterface.php | 6 +++++- .../View/Xsd/Media/TypeDataExtractorInterface.php | 4 ++++ .../Webapi/CustomAttribute/PreprocessorInterface.php | 4 ++++ .../Webapi/CustomAttribute/ServiceTypeListInterface.php | 6 ++++++ .../Webapi/Rest/Request/DeserializerInterface.php | 7 ++++--- 25 files changed, 93 insertions(+), 11 deletions(-) diff --git a/lib/internal/Magento/Framework/View/File/FileList/CollateInterface.php b/lib/internal/Magento/Framework/View/File/FileList/CollateInterface.php index 63724d797e317..ce34bd1270539 100644 --- a/lib/internal/Magento/Framework/View/File/FileList/CollateInterface.php +++ b/lib/internal/Magento/Framework/View/File/FileList/CollateInterface.php @@ -3,11 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\View\File\FileList; /** * View file list collate interface + * + * @api */ interface CollateInterface { diff --git a/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/EventHandlerData.php b/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/EventHandlerData.php index 9d7afc5211cd2..648ece840cd3a 100644 --- a/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/EventHandlerData.php +++ b/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/EventHandlerData.php @@ -3,13 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\View\Helper\SecureHtmlRender; /** * JS event handler data. + * + * @api */ class EventHandlerData { diff --git a/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/SecurityProcessorInterface.php b/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/SecurityProcessorInterface.php index c02394a17e1aa..4a3baf9d70dee 100644 --- a/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/SecurityProcessorInterface.php +++ b/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/SecurityProcessorInterface.php @@ -3,13 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\View\Helper\SecureHtmlRender; /** * Perform security related modifications or logic for HTML being rendered. + * + * @api */ interface SecurityProcessorInterface { diff --git a/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/TagData.php b/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/TagData.php index c856dae75d023..a460e76104bf9 100644 --- a/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/TagData.php +++ b/lib/internal/Magento/Framework/View/Helper/SecureHtmlRender/TagData.php @@ -3,13 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\View\Helper\SecureHtmlRender; /** * Tag data to render. + * + * @api */ class TagData { diff --git a/lib/internal/Magento/Framework/View/Layout/Argument/UpdaterInterface.php b/lib/internal/Magento/Framework/View/Layout/Argument/UpdaterInterface.php index 93c6d83dd69ba..e1de9d4cf55b8 100644 --- a/lib/internal/Magento/Framework/View/Layout/Argument/UpdaterInterface.php +++ b/lib/internal/Magento/Framework/View/Layout/Argument/UpdaterInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Layout\Argument; /** * Interface of value modification with no value loss + * + * @api */ interface UpdaterInterface { diff --git a/lib/internal/Magento/Framework/View/Layout/Condition/VisibilityConditionInterface.php b/lib/internal/Magento/Framework/View/Layout/Condition/VisibilityConditionInterface.php index b91e1ffee04a4..d5f4f82247044 100644 --- a/lib/internal/Magento/Framework/View/Layout/Condition/VisibilityConditionInterface.php +++ b/lib/internal/Magento/Framework/View/Layout/Condition/VisibilityConditionInterface.php @@ -3,10 +3,12 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Layout\Condition; /** - * Class VisibilityConditionInterface + * Interface VisibilityConditionInterface * * Introduces family of visibility conditions for layout elements. * By using this interface a developer can specify dynamic rule for ui component visibility. @@ -23,6 +25,8 @@ * * * "visibilityCondition" just another optional child element of ui component declaration + * + * @api */ interface VisibilityConditionInterface { diff --git a/lib/internal/Magento/Framework/View/Layout/GeneratorInterface.php b/lib/internal/Magento/Framework/View/Layout/GeneratorInterface.php index 134660dc34568..b17808fc27ae4 100644 --- a/lib/internal/Magento/Framework/View/Layout/GeneratorInterface.php +++ b/lib/internal/Magento/Framework/View/Layout/GeneratorInterface.php @@ -3,11 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Layout; /** * Interface \Magento\Framework\View\Layout\GeneratorInterface * + * @api */ interface GeneratorInterface { diff --git a/lib/internal/Magento/Framework/View/Layout/LayoutCacheKeyInterface.php b/lib/internal/Magento/Framework/View/Layout/LayoutCacheKeyInterface.php index 1d4bb8aebe882..1ff8a3d354519 100644 --- a/lib/internal/Magento/Framework/View/Layout/LayoutCacheKeyInterface.php +++ b/lib/internal/Magento/Framework/View/Layout/LayoutCacheKeyInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Layout; /** * Interface LayoutCacheKeyInterface + * + * @api */ interface LayoutCacheKeyInterface { diff --git a/lib/internal/Magento/Framework/View/Layout/ProcessorInterface.php b/lib/internal/Magento/Framework/View/Layout/ProcessorInterface.php index eacbc46a971de..a80f03c7c2eac 100644 --- a/lib/internal/Magento/Framework/View/Layout/ProcessorInterface.php +++ b/lib/internal/Magento/Framework/View/Layout/ProcessorInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Layout; /** * Interface ProcessorInterface + * + * @api */ interface ProcessorInterface { diff --git a/lib/internal/Magento/Framework/View/Layout/ReaderInterface.php b/lib/internal/Magento/Framework/View/Layout/ReaderInterface.php index 1c3dada6f16d2..d298c3aff9568 100644 --- a/lib/internal/Magento/Framework/View/Layout/ReaderInterface.php +++ b/lib/internal/Magento/Framework/View/Layout/ReaderInterface.php @@ -3,11 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Layout; /** * Interface \Magento\Framework\View\Layout\ReaderInterface * + * @api */ interface ReaderInterface { diff --git a/lib/internal/Magento/Framework/View/Model/PageLayout/Config/BuilderInterface.php b/lib/internal/Magento/Framework/View/Model/PageLayout/Config/BuilderInterface.php index 0f110246db093..5a7c4739f39de 100644 --- a/lib/internal/Magento/Framework/View/Model/PageLayout/Config/BuilderInterface.php +++ b/lib/internal/Magento/Framework/View/Model/PageLayout/Config/BuilderInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Model\PageLayout\Config; /** - * Interface BuilderInterface + * Interface Page Layout Config Builder + * + * @api */ interface BuilderInterface { diff --git a/lib/internal/Magento/Framework/View/Page/Config/RendererInterface.php b/lib/internal/Magento/Framework/View/Page/Config/RendererInterface.php index e49c8f141ec24..f343cc48f3755 100644 --- a/lib/internal/Magento/Framework/View/Page/Config/RendererInterface.php +++ b/lib/internal/Magento/Framework/View/Page/Config/RendererInterface.php @@ -3,13 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\View\Page\Config; /** * Interface RendererInterface * - * @package Magento\Framework\View\Page\Config + * @api */ interface RendererInterface { @@ -17,7 +18,6 @@ interface RendererInterface * Render Element Attributes * * @param string $elementType - * * @return string */ public function renderElementAttributes($elementType); diff --git a/lib/internal/Magento/Framework/View/PageLayout/Config.php b/lib/internal/Magento/Framework/View/PageLayout/Config.php index ba00e6beeda8e..8743209a10087 100644 --- a/lib/internal/Magento/Framework/View/PageLayout/Config.php +++ b/lib/internal/Magento/Framework/View/PageLayout/Config.php @@ -3,11 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\View\PageLayout; /** * Page layouts configuration + * + * @api */ class Config extends \Magento\Framework\Config\AbstractXml { diff --git a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/AttributeInterface.php b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/AttributeInterface.php index c682fff45246d..9db9414d3cc55 100644 --- a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/AttributeInterface.php +++ b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/AttributeInterface.php @@ -3,12 +3,16 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\TemplateEngine\Xhtml\Compiler; use Magento\Framework\DataObject; /** * Interface AttributeInterface + * + * @api */ interface AttributeInterface { diff --git a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/CdataInterface.php b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/CdataInterface.php index 303a67c80b94d..46db057a8814c 100644 --- a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/CdataInterface.php +++ b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/CdataInterface.php @@ -3,12 +3,16 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\TemplateEngine\Xhtml\Compiler; use Magento\Framework\DataObject; /** * Interface CdataInterface + * + * @api */ interface CdataInterface { diff --git a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/CommentInterface.php b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/CommentInterface.php index 4b54d74d1e3e0..442cfd634e5ba 100644 --- a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/CommentInterface.php +++ b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/CommentInterface.php @@ -3,12 +3,16 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\TemplateEngine\Xhtml\Compiler; use Magento\Framework\DataObject; /** * Interface CommentInterface + * + * @api */ interface CommentInterface { diff --git a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/Directive/DirectiveInterface.php b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/Directive/DirectiveInterface.php index dce2d3dfb4348..c4c1cbe10fec3 100644 --- a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/Directive/DirectiveInterface.php +++ b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/Directive/DirectiveInterface.php @@ -3,12 +3,16 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\TemplateEngine\Xhtml\Compiler\Directive; use Magento\Framework\DataObject; /** * Interface DirectiveInterface + * + * @api */ interface DirectiveInterface { diff --git a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/Element/ElementInterface.php b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/Element/ElementInterface.php index 994b8848af416..68147617aefd1 100644 --- a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/Element/ElementInterface.php +++ b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/Element/ElementInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\TemplateEngine\Xhtml\Compiler\Element; use Magento\Framework\DataObject; @@ -10,6 +12,8 @@ /** * Interface ElementInterface + * + * @api */ interface ElementInterface { diff --git a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/TextInterface.php b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/TextInterface.php index 4295b10e6b87b..994b30e64f982 100644 --- a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/TextInterface.php +++ b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/Compiler/TextInterface.php @@ -3,12 +3,16 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\TemplateEngine\Xhtml\Compiler; use Magento\Framework\DataObject; /** * Interface TextInterface + * + * @api */ interface TextInterface { diff --git a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/ResultInterface.php b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/ResultInterface.php index e7583cac16ffe..78cd7cba7e92a 100644 --- a/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/ResultInterface.php +++ b/lib/internal/Magento/Framework/View/TemplateEngine/Xhtml/ResultInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\TemplateEngine\Xhtml; /** * Interface ResultInterface + * + * @api */ interface ResultInterface { diff --git a/lib/internal/Magento/Framework/View/TemplateEngineInterface.php b/lib/internal/Magento/Framework/View/TemplateEngineInterface.php index 30c653229c2c7..57c287af02fe3 100644 --- a/lib/internal/Magento/Framework/View/TemplateEngineInterface.php +++ b/lib/internal/Magento/Framework/View/TemplateEngineInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View; /** * Interface for Template Engine + * + * @api */ interface TemplateEngineInterface { @@ -19,7 +23,7 @@ interface TemplateEngineInterface * @param \Magento\Framework\View\Element\BlockInterface $block * @param string $templateFile * @param array $dictionary - * @return string rendered template + * @return string */ public function render( \Magento\Framework\View\Element\BlockInterface $block, diff --git a/lib/internal/Magento/Framework/View/Xsd/Media/TypeDataExtractorInterface.php b/lib/internal/Magento/Framework/View/Xsd/Media/TypeDataExtractorInterface.php index 2472e6ecfe20a..8deb45872e689 100644 --- a/lib/internal/Magento/Framework/View/Xsd/Media/TypeDataExtractorInterface.php +++ b/lib/internal/Magento/Framework/View/Xsd/Media/TypeDataExtractorInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View\Xsd\Media; /** * Interface that encapsulates complexity of expression computation + * + * @api */ interface TypeDataExtractorInterface { diff --git a/lib/internal/Magento/Framework/Webapi/CustomAttribute/PreprocessorInterface.php b/lib/internal/Magento/Framework/Webapi/CustomAttribute/PreprocessorInterface.php index 8de30e92218c0..c1f7afceb7570 100644 --- a/lib/internal/Magento/Framework/Webapi/CustomAttribute/PreprocessorInterface.php +++ b/lib/internal/Magento/Framework/Webapi/CustomAttribute/PreprocessorInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\Webapi\CustomAttribute; /** * Interface for attribute preprocessor + * + * @api */ interface PreprocessorInterface { diff --git a/lib/internal/Magento/Framework/Webapi/CustomAttribute/ServiceTypeListInterface.php b/lib/internal/Magento/Framework/Webapi/CustomAttribute/ServiceTypeListInterface.php index 37cf6849a32f9..e461843626823 100644 --- a/lib/internal/Magento/Framework/Webapi/CustomAttribute/ServiceTypeListInterface.php +++ b/lib/internal/Magento/Framework/Webapi/CustomAttribute/ServiceTypeListInterface.php @@ -3,9 +3,15 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\Webapi\CustomAttribute; +/** + * ServiceTypeListInterface interface + * + * @api + */ interface ServiceTypeListInterface { /** diff --git a/lib/internal/Magento/Framework/Webapi/Rest/Request/DeserializerInterface.php b/lib/internal/Magento/Framework/Webapi/Rest/Request/DeserializerInterface.php index 70a30a68b93e7..9d39a77898de9 100644 --- a/lib/internal/Magento/Framework/Webapi/Rest/Request/DeserializerInterface.php +++ b/lib/internal/Magento/Framework/Webapi/Rest/Request/DeserializerInterface.php @@ -1,15 +1,16 @@ Date: Thu, 11 Feb 2021 15:32:16 +0700 Subject: [PATCH 10/20] Mark Framework interfaces as API part 8 update --- .../Framework/View/Element/ComponentVisibilityInterface.php | 3 ++- .../View/Element/Message/InterpretationStrategyInterface.php | 1 + .../Framework/View/Element/Message/Renderer/PoolInterface.php | 1 + .../View/Element/Message/Renderer/RendererInterface.php | 1 + .../View/Element/UiComponent/BlockWrapperInterface.php | 2 ++ .../View/Element/UiComponent/Config/DomMergerInterface.php | 2 ++ .../View/Element/UiComponent/Config/FileCollectorInterface.php | 2 ++ .../View/Element/UiComponent/Config/UiReaderInterface.php | 2 ++ .../Framework/View/Element/UiComponent/ContainerInterface.php | 3 ++- .../Element/UiComponent/ContentType/ContentTypeInterface.php | 2 ++ .../Framework/View/Element/UiComponent/ContextInterface.php | 2 ++ .../View/Element/UiComponent/Control/ActionPoolInterface.php | 2 ++ .../Element/UiComponent/Control/ButtonProviderInterface.php | 2 ++ .../View/Element/UiComponent/Control/ControlInterface.php | 3 ++- .../UiComponent/DataProvider/FilterApplierInterface.php | 3 ++- .../Framework/View/Element/UiComponent/DataSourceInterface.php | 2 ++ .../Element/UiComponent/Factory/ComponentFactoryInterface.php | 1 + .../Framework/View/Element/UiComponent/JsConfigInterface.php | 2 ++ .../Framework/View/Element/UiComponent/LayoutInterface.php | 2 ++ .../Framework/View/Element/UiComponent/ObserverInterface.php | 2 ++ .../Framework/View/Element/UiComponent/PoolInterface.php | 2 ++ .../Framework/View/Element/UiComponent/SubjectInterface.php | 2 ++ 22 files changed, 40 insertions(+), 4 deletions(-) diff --git a/lib/internal/Magento/Framework/View/Element/ComponentVisibilityInterface.php b/lib/internal/Magento/Framework/View/Element/ComponentVisibilityInterface.php index 29d14553481d7..0718e2bf0d211 100644 --- a/lib/internal/Magento/Framework/View/Element/ComponentVisibilityInterface.php +++ b/lib/internal/Magento/Framework/View/Element/ComponentVisibilityInterface.php @@ -3,11 +3,12 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - namespace Magento\Framework\View\Element; /** * Interface which allows to modify visibility behavior of UI components + * + * @api */ interface ComponentVisibilityInterface { diff --git a/lib/internal/Magento/Framework/View/Element/Message/InterpretationStrategyInterface.php b/lib/internal/Magento/Framework/View/Element/Message/InterpretationStrategyInterface.php index f635f59f3fb23..71a4ecd8a9732 100644 --- a/lib/internal/Magento/Framework/View/Element/Message/InterpretationStrategyInterface.php +++ b/lib/internal/Magento/Framework/View/Element/Message/InterpretationStrategyInterface.php @@ -10,6 +10,7 @@ /** * Interface \Magento\Framework\View\Element\Message\InterpretationStrategyInterface * + * @api */ interface InterpretationStrategyInterface { diff --git a/lib/internal/Magento/Framework/View/Element/Message/Renderer/PoolInterface.php b/lib/internal/Magento/Framework/View/Element/Message/Renderer/PoolInterface.php index c94e7f97ecabf..e405cecb4b874 100644 --- a/lib/internal/Magento/Framework/View/Element/Message/Renderer/PoolInterface.php +++ b/lib/internal/Magento/Framework/View/Element/Message/Renderer/PoolInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Framework\View\Element\Message\Renderer\PoolInterface * + * @api */ interface PoolInterface { diff --git a/lib/internal/Magento/Framework/View/Element/Message/Renderer/RendererInterface.php b/lib/internal/Magento/Framework/View/Element/Message/Renderer/RendererInterface.php index b5b2b51c2eab9..b74449294ebec 100644 --- a/lib/internal/Magento/Framework/View/Element/Message/Renderer/RendererInterface.php +++ b/lib/internal/Magento/Framework/View/Element/Message/Renderer/RendererInterface.php @@ -10,6 +10,7 @@ /** * Interface \Magento\Framework\View\Element\Message\Renderer\RendererInterface * + * @api */ interface RendererInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/BlockWrapperInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/BlockWrapperInterface.php index 0ad4810d2ad4f..20c701344ab0d 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/BlockWrapperInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/BlockWrapperInterface.php @@ -10,6 +10,8 @@ /** * Interface BlockWrapperInterface + * + * @api */ interface BlockWrapperInterface extends UiComponentInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Config/DomMergerInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Config/DomMergerInterface.php index 71d5320f0a9d2..d2cda5b3cf7b4 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Config/DomMergerInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Config/DomMergerInterface.php @@ -7,6 +7,8 @@ /** * Interface DomMergerInterface + * + * @api */ interface DomMergerInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Config/FileCollectorInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Config/FileCollectorInterface.php index c5f70fc100434..8599175a0fa75 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Config/FileCollectorInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Config/FileCollectorInterface.php @@ -7,6 +7,8 @@ /** * Interface FileCollectorInterface + * + * @api */ interface FileCollectorInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Config/UiReaderInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Config/UiReaderInterface.php index b174288dac736..11c94eeafe7ba 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Config/UiReaderInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Config/UiReaderInterface.php @@ -9,6 +9,8 @@ /** * Interface UiReaderInterface + * + * @api */ interface UiReaderInterface extends ReaderInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/ContainerInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/ContainerInterface.php index 5c7bd19db09a5..bb79b340da70d 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/ContainerInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/ContainerInterface.php @@ -9,8 +9,9 @@ /** * Interface ContainerInterface + * + * @api */ interface ContainerInterface extends BlockInterface { - // } diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/ContentType/ContentTypeInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/ContentType/ContentTypeInterface.php index 56aca259bd665..91915c6983c92 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/ContentType/ContentTypeInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/ContentType/ContentTypeInterface.php @@ -9,6 +9,8 @@ /** * Interface ContentTypeInterface + * + * @api */ interface ContentTypeInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php index fca2abeb3ea45..78393e661d609 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/ContextInterface.php @@ -13,6 +13,8 @@ /** * Interface ContextInterface + * + * @api */ interface ContextInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ActionPoolInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ActionPoolInterface.php index 743215fd56a8b..5963b175f4ab9 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ActionPoolInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ActionPoolInterface.php @@ -10,6 +10,8 @@ /** * Interface ActionPoolInterface + * + * @api */ interface ActionPoolInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php index df00c87db034d..eab6dbfae1122 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ButtonProviderInterface.php @@ -7,6 +7,8 @@ /** * Interface ButtonProviderInterface + * + * @api */ interface ButtonProviderInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ControlInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ControlInterface.php index 5fc30e652be86..d5c6b96a957a5 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ControlInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Control/ControlInterface.php @@ -9,8 +9,9 @@ /** * Interface ControlInterface + * + * @api */ interface ControlInterface extends BlockInterface { - // } diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/FilterApplierInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/FilterApplierInterface.php index f52a4d055c746..ac95f94d41e67 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/FilterApplierInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/DataProvider/FilterApplierInterface.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - namespace Magento\Framework\View\Element\UiComponent\DataProvider; use Magento\Framework\Api\Filter; @@ -11,6 +10,8 @@ /** * Interface FilterApplierInterface + * + * @api */ interface FilterApplierInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/DataSourceInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/DataSourceInterface.php index 1640b7287fd19..d5d5ca6159283 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/DataSourceInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/DataSourceInterface.php @@ -10,6 +10,8 @@ /** * Interface DataSourceInterface + * + * @api */ interface DataSourceInterface extends UiComponentInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/Factory/ComponentFactoryInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/Factory/ComponentFactoryInterface.php index a901073ee7d41..f213e70a53542 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/Factory/ComponentFactoryInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/Factory/ComponentFactoryInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Framework\View\Element\UiComponent\Factory\ComponentFactoryInterface * + * @api */ interface ComponentFactoryInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/JsConfigInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/JsConfigInterface.php index 7db83117bf63f..8341ad8c5bcd1 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/JsConfigInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/JsConfigInterface.php @@ -9,6 +9,8 @@ /** * Interface JsConfigInterface + * + * @api */ interface JsConfigInterface extends UiComponentInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/LayoutInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/LayoutInterface.php index bcffda04b6768..de9acf4efd6dc 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/LayoutInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/LayoutInterface.php @@ -9,6 +9,8 @@ /** * Interface LayoutInterface + * + * @api */ interface LayoutInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/ObserverInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/ObserverInterface.php index 18ec1879bc032..2fa5ee3f33674 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/ObserverInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/ObserverInterface.php @@ -9,6 +9,8 @@ /** * Interface ObserverInterface + * + * @api */ interface ObserverInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/PoolInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/PoolInterface.php index 565bf5bf00780..eb83e0488dea5 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/PoolInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/PoolInterface.php @@ -9,6 +9,8 @@ /** * Interface PoolInterface + * + * @api */ interface PoolInterface { diff --git a/lib/internal/Magento/Framework/View/Element/UiComponent/SubjectInterface.php b/lib/internal/Magento/Framework/View/Element/UiComponent/SubjectInterface.php index 821ebbb4d5050..732abf1791935 100644 --- a/lib/internal/Magento/Framework/View/Element/UiComponent/SubjectInterface.php +++ b/lib/internal/Magento/Framework/View/Element/UiComponent/SubjectInterface.php @@ -7,6 +7,8 @@ /** * Interface SubjectInterface + * + * @api */ interface SubjectInterface { From 7e9365b9adce442503b24fea00236ae77475c424 Mon Sep 17 00:00:00 2001 From: tuna Date: Thu, 11 Feb 2021 15:21:51 +0700 Subject: [PATCH 11/20] Mark Framework interfaces as API part 7 update --- .../DateTime/Timezone/LocalizedDateToUtcConverterInterface.php | 2 ++ .../TestFramework/Unit/Autoloader/GeneratorInterface.php | 2 ++ .../Magento/Framework/Translate/Inline/ProviderInterface.php | 2 ++ lib/internal/Magento/Framework/TranslateInterface.php | 2 ++ lib/internal/Magento/Framework/Url/ModifierInterface.php | 2 ++ .../Magento/Framework/Url/RouteParamsPreprocessorInterface.php | 2 ++ .../Magento/Framework/Validator/Constraint/OptionInterface.php | 1 + .../Framework/Validator/HTML/AttributeValidatorInterface.php | 3 ++- .../Magento/Framework/Validator/HTML/TagValidatorInterface.php | 3 ++- .../Framework/Validator/HTML/WYSIWYGValidatorInterface.php | 3 ++- .../Magento/Framework/View/Asset/ContentProcessorInterface.php | 2 ++ lib/internal/Magento/Framework/View/Asset/ContextInterface.php | 3 ++- .../Magento/Framework/View/Asset/LockerProcessInterface.php | 2 ++ .../Magento/Framework/View/Asset/MergeStrategyInterface.php | 2 ++ .../Magento/Framework/View/Asset/MergeableInterface.php | 2 ++ .../View/Asset/PreProcessor/FilenameResolverInterface.php | 2 ++ .../Framework/View/Design/Fallback/Rule/RuleInterface.php | 2 ++ .../View/Design/FileResolution/Fallback/ResolverInterface.php | 3 ++- .../View/Design/Theme/Customization/ConfigInterface.php | 2 ++ .../View/Design/Theme/Customization/FileAssetInterface.php | 2 ++ .../View/Design/Theme/Customization/FileInterface.php | 2 ++ .../Framework/View/Design/Theme/CustomizationInterface.php | 2 ++ .../Framework/View/Design/Theme/File/CollectionInterface.php | 2 ++ .../Magento/Framework/View/Design/Theme/FileInterface.php | 2 ++ .../Framework/View/Design/Theme/Image/PathInterface.php | 2 ++ .../Magento/Framework/View/Design/Theme/ResolverInterface.php | 2 ++ .../Framework/View/Design/Theme/ThemeProviderInterface.php | 2 ++ 27 files changed, 53 insertions(+), 5 deletions(-) diff --git a/lib/internal/Magento/Framework/Stdlib/DateTime/Timezone/LocalizedDateToUtcConverterInterface.php b/lib/internal/Magento/Framework/Stdlib/DateTime/Timezone/LocalizedDateToUtcConverterInterface.php index d10bd5f2fefb2..8aaf3428b1517 100644 --- a/lib/internal/Magento/Framework/Stdlib/DateTime/Timezone/LocalizedDateToUtcConverterInterface.php +++ b/lib/internal/Magento/Framework/Stdlib/DateTime/Timezone/LocalizedDateToUtcConverterInterface.php @@ -9,6 +9,8 @@ /* * Interface for converting localized date to UTC + * + * @api */ interface LocalizedDateToUtcConverterInterface { diff --git a/lib/internal/Magento/Framework/TestFramework/Unit/Autoloader/GeneratorInterface.php b/lib/internal/Magento/Framework/TestFramework/Unit/Autoloader/GeneratorInterface.php index b9d90dcecca11..acb2796f89737 100644 --- a/lib/internal/Magento/Framework/TestFramework/Unit/Autoloader/GeneratorInterface.php +++ b/lib/internal/Magento/Framework/TestFramework/Unit/Autoloader/GeneratorInterface.php @@ -8,6 +8,8 @@ /** * Interface for generation of a class of specific type + * + * @api */ interface GeneratorInterface { diff --git a/lib/internal/Magento/Framework/Translate/Inline/ProviderInterface.php b/lib/internal/Magento/Framework/Translate/Inline/ProviderInterface.php index 7be21c2239478..94520e1dec264 100644 --- a/lib/internal/Magento/Framework/Translate/Inline/ProviderInterface.php +++ b/lib/internal/Magento/Framework/Translate/Inline/ProviderInterface.php @@ -8,6 +8,8 @@ /** * Factory like class to return an instance of the inline translate. + * + * @api */ interface ProviderInterface { diff --git a/lib/internal/Magento/Framework/TranslateInterface.php b/lib/internal/Magento/Framework/TranslateInterface.php index af4e99cc5f950..72f51929c84ad 100644 --- a/lib/internal/Magento/Framework/TranslateInterface.php +++ b/lib/internal/Magento/Framework/TranslateInterface.php @@ -7,6 +7,8 @@ /** * @todo change this interface when i18n-related logic is moved to library + * + * @api */ interface TranslateInterface { diff --git a/lib/internal/Magento/Framework/Url/ModifierInterface.php b/lib/internal/Magento/Framework/Url/ModifierInterface.php index 2f11916f75ac3..c7036298dc2f2 100644 --- a/lib/internal/Magento/Framework/Url/ModifierInterface.php +++ b/lib/internal/Magento/Framework/Url/ModifierInterface.php @@ -7,6 +7,8 @@ /** * URL modifier interface. + * + * @api */ interface ModifierInterface { diff --git a/lib/internal/Magento/Framework/Url/RouteParamsPreprocessorInterface.php b/lib/internal/Magento/Framework/Url/RouteParamsPreprocessorInterface.php index cf5f73b4d6eab..c6614526e12e5 100644 --- a/lib/internal/Magento/Framework/Url/RouteParamsPreprocessorInterface.php +++ b/lib/internal/Magento/Framework/Url/RouteParamsPreprocessorInterface.php @@ -7,6 +7,8 @@ /** * Route parameters preprocessor interface. + * + * @api */ interface RouteParamsPreprocessorInterface { diff --git a/lib/internal/Magento/Framework/Validator/Constraint/OptionInterface.php b/lib/internal/Magento/Framework/Validator/Constraint/OptionInterface.php index b4c0f9252b5df..30470a9017ad1 100644 --- a/lib/internal/Magento/Framework/Validator/Constraint/OptionInterface.php +++ b/lib/internal/Magento/Framework/Validator/Constraint/OptionInterface.php @@ -10,6 +10,7 @@ /** * Interface \Magento\Framework\Validator\Constraint\OptionInterface * + * @api */ interface OptionInterface { diff --git a/lib/internal/Magento/Framework/Validator/HTML/AttributeValidatorInterface.php b/lib/internal/Magento/Framework/Validator/HTML/AttributeValidatorInterface.php index 6426e19a537da..3ac8b9dad2f69 100644 --- a/lib/internal/Magento/Framework/Validator/HTML/AttributeValidatorInterface.php +++ b/lib/internal/Magento/Framework/Validator/HTML/AttributeValidatorInterface.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\Validator\HTML; @@ -12,6 +11,8 @@ /** * Validates HTML attributes content. + * + * @api */ interface AttributeValidatorInterface { diff --git a/lib/internal/Magento/Framework/Validator/HTML/TagValidatorInterface.php b/lib/internal/Magento/Framework/Validator/HTML/TagValidatorInterface.php index d81172edc87c9..3d98209bbce98 100644 --- a/lib/internal/Magento/Framework/Validator/HTML/TagValidatorInterface.php +++ b/lib/internal/Magento/Framework/Validator/HTML/TagValidatorInterface.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\Validator\HTML; @@ -12,6 +11,8 @@ /** * Validates tag for user HTML content. + * + * @api */ interface TagValidatorInterface { diff --git a/lib/internal/Magento/Framework/Validator/HTML/WYSIWYGValidatorInterface.php b/lib/internal/Magento/Framework/Validator/HTML/WYSIWYGValidatorInterface.php index 8045bc6a86c0b..f5769f5ccf143 100644 --- a/lib/internal/Magento/Framework/Validator/HTML/WYSIWYGValidatorInterface.php +++ b/lib/internal/Magento/Framework/Validator/HTML/WYSIWYGValidatorInterface.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\Validator\HTML; @@ -12,6 +11,8 @@ /** * Validates user HTML. + * + * @api */ interface WYSIWYGValidatorInterface { diff --git a/lib/internal/Magento/Framework/View/Asset/ContentProcessorInterface.php b/lib/internal/Magento/Framework/View/Asset/ContentProcessorInterface.php index bfaa5a8f82eea..cfa0cef2a6aee 100644 --- a/lib/internal/Magento/Framework/View/Asset/ContentProcessorInterface.php +++ b/lib/internal/Magento/Framework/View/Asset/ContentProcessorInterface.php @@ -9,6 +9,8 @@ /** * Interface ContentProcessorInterface + * + * @api */ interface ContentProcessorInterface { diff --git a/lib/internal/Magento/Framework/View/Asset/ContextInterface.php b/lib/internal/Magento/Framework/View/Asset/ContextInterface.php index bccb1921f2026..148150739ec80 100644 --- a/lib/internal/Magento/Framework/View/Asset/ContextInterface.php +++ b/lib/internal/Magento/Framework/View/Asset/ContextInterface.php @@ -3,11 +3,12 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - namespace Magento\Framework\View\Asset; /** * An abstraction for getting context path of an asset + * + * @api */ interface ContextInterface { diff --git a/lib/internal/Magento/Framework/View/Asset/LockerProcessInterface.php b/lib/internal/Magento/Framework/View/Asset/LockerProcessInterface.php index 19f5cc4ad16de..6579abc06e7d3 100644 --- a/lib/internal/Magento/Framework/View/Asset/LockerProcessInterface.php +++ b/lib/internal/Magento/Framework/View/Asset/LockerProcessInterface.php @@ -7,6 +7,8 @@ /** * Interface LockerProcessInterface + * + * @api */ interface LockerProcessInterface { diff --git a/lib/internal/Magento/Framework/View/Asset/MergeStrategyInterface.php b/lib/internal/Magento/Framework/View/Asset/MergeStrategyInterface.php index 55b3efc13ac60..e0532f05663cb 100644 --- a/lib/internal/Magento/Framework/View/Asset/MergeStrategyInterface.php +++ b/lib/internal/Magento/Framework/View/Asset/MergeStrategyInterface.php @@ -7,6 +7,8 @@ /** * Interface for merging multiple assets into one + * + * @api */ interface MergeStrategyInterface { diff --git a/lib/internal/Magento/Framework/View/Asset/MergeableInterface.php b/lib/internal/Magento/Framework/View/Asset/MergeableInterface.php index 185bc7f452c10..b4fec8cc35263 100644 --- a/lib/internal/Magento/Framework/View/Asset/MergeableInterface.php +++ b/lib/internal/Magento/Framework/View/Asset/MergeableInterface.php @@ -7,6 +7,8 @@ /** * Interface of an asset that can be merged with other assets + * + * @api */ interface MergeableInterface extends LocalInterface { diff --git a/lib/internal/Magento/Framework/View/Asset/PreProcessor/FilenameResolverInterface.php b/lib/internal/Magento/Framework/View/Asset/PreProcessor/FilenameResolverInterface.php index c91ff74b094f3..845a48a36aacb 100644 --- a/lib/internal/Magento/Framework/View/Asset/PreProcessor/FilenameResolverInterface.php +++ b/lib/internal/Magento/Framework/View/Asset/PreProcessor/FilenameResolverInterface.php @@ -7,6 +7,8 @@ /** * Interface FilenameResolverInterface + * + * @api */ interface FilenameResolverInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Fallback/Rule/RuleInterface.php b/lib/internal/Magento/Framework/View/Design/Fallback/Rule/RuleInterface.php index 4cb6801187010..4abb69ea9d295 100644 --- a/lib/internal/Magento/Framework/View/Design/Fallback/Rule/RuleInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Fallback/Rule/RuleInterface.php @@ -9,6 +9,8 @@ * Rule Interface * * Interface for search path resolution during fallback process + * + * @api */ interface RuleInterface { diff --git a/lib/internal/Magento/Framework/View/Design/FileResolution/Fallback/ResolverInterface.php b/lib/internal/Magento/Framework/View/Design/FileResolution/Fallback/ResolverInterface.php index 0a7ccb3468c37..26aecd4369c94 100644 --- a/lib/internal/Magento/Framework/View/Design/FileResolution/Fallback/ResolverInterface.php +++ b/lib/internal/Magento/Framework/View/Design/FileResolution/Fallback/ResolverInterface.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - namespace Magento\Framework\View\Design\FileResolution\Fallback; use Magento\Framework\View\Design\FileResolution\Fallback; @@ -11,6 +10,8 @@ /** * Interface for resolvers of view files using fallback rules + * + * @api */ interface ResolverInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/Customization/ConfigInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/Customization/ConfigInterface.php index d6e6b6a8508b8..d594ec43bc65a 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/Customization/ConfigInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/Customization/ConfigInterface.php @@ -7,6 +7,8 @@ /** * Theme customization configuration interface + * + * @api */ interface ConfigInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/Customization/FileAssetInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/Customization/FileAssetInterface.php index 9ba6002e6a11d..ecaa5e1382bde 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/Customization/FileAssetInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/Customization/FileAssetInterface.php @@ -7,6 +7,8 @@ /** * Theme asset file interface + * + * @api */ interface FileAssetInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/Customization/FileInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/Customization/FileInterface.php index 89fe485ecf7ed..bb19a88210aba 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/Customization/FileInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/Customization/FileInterface.php @@ -7,6 +7,8 @@ /** * Theme service file interface + * + * @api */ interface FileInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/CustomizationInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/CustomizationInterface.php index 33cca00b08147..16416615b93d8 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/CustomizationInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/CustomizationInterface.php @@ -7,6 +7,8 @@ /** * Theme customization interface + * + * @api */ interface CustomizationInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/File/CollectionInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/File/CollectionInterface.php index d5c4695243aa8..2f0257b3a1369 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/File/CollectionInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/File/CollectionInterface.php @@ -7,6 +7,8 @@ /** * Design Theme File collection interface + * + * @api */ interface CollectionInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/FileInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/FileInterface.php index f197f370b2a4e..bfe520a764e6f 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/FileInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/FileInterface.php @@ -7,6 +7,8 @@ /** * Theme file interface + * + * @api */ interface FileInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/Image/PathInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/Image/PathInterface.php index bd7b11605cbd8..7610bf88fa490 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/Image/PathInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/Image/PathInterface.php @@ -9,6 +9,8 @@ /** * Theme Image Path interface + * + * @api */ interface PathInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/ResolverInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/ResolverInterface.php index 06d3f6f78a25e..46290a1b68a8f 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/ResolverInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/ResolverInterface.php @@ -7,6 +7,8 @@ /** * Theme resolver interface + * + * @api */ interface ResolverInterface { diff --git a/lib/internal/Magento/Framework/View/Design/Theme/ThemeProviderInterface.php b/lib/internal/Magento/Framework/View/Design/Theme/ThemeProviderInterface.php index 2ca0547110fb8..7302fe430f358 100644 --- a/lib/internal/Magento/Framework/View/Design/Theme/ThemeProviderInterface.php +++ b/lib/internal/Magento/Framework/View/Design/Theme/ThemeProviderInterface.php @@ -7,6 +7,8 @@ /** * Interface ThemeProviderInterface + * + * @api */ interface ThemeProviderInterface { From eedf8fcf596f1f5c191bab379c2207a6f8d2eed1 Mon Sep 17 00:00:00 2001 From: TuNa Date: Fri, 26 Feb 2021 16:28:31 +0700 Subject: [PATCH 12/20] Mark Framework Interfaces as API part 3 fix static update update fix non-public references revert change return value interface --- lib/internal/Magento/Framework/Api/CriteriaInterface.php | 4 ++++ .../Framework/Async/CancelableDeferredInterface.php | 3 ++- .../Magento/Framework/Async/DeferredInterface.php | 3 ++- .../Magento/Framework/Autoload/AutoloaderInterface.php | 4 ++++ .../Magento/Framework/Backup/SourceFileInterface.php | 8 ++++---- lib/internal/Magento/Framework/Cache/ConfigInterface.php | 5 +++-- .../Framework/Cache/StaleCacheNotifierInterface.php | 3 +++ .../Framework/Code/Generator/CodeGeneratorInterface.php | 3 +++ .../Magento/Framework/Code/Minifier/AdapterInterface.php | 5 ++--- .../Framework/Code/Reader/ClassReaderInterface.php | 3 ++- .../Magento/Framework/Code/ValidatorInterface.php | 3 +++ .../Framework/Component/ComponentRegistrarInterface.php | 7 +++++++ .../Magento/Framework/Crontab/CrontabManagerInterface.php | 3 +++ .../Magento/Framework/Crontab/TasksProviderInterface.php | 3 +++ .../Framework/Css/PreProcessor/ErrorHandlerInterface.php | 4 ++++ .../Framework/DB/DataConverter/DataConverterInterface.php | 4 ++++ lib/internal/Magento/Framework/DB/LoggerInterface.php | 4 ++++ lib/internal/Magento/Framework/DB/MapperInterface.php | 4 ++++ .../Magento/Framework/DB/Query/BatchIteratorInterface.php | 4 ++++ lib/internal/Magento/Framework/DB/QueryInterface.php | 6 +++++- .../Framework/DB/Select/QueryModifierInterface.php | 4 ++++ .../Magento/Framework/DB/Select/RendererInterface.php | 3 +++ .../Magento/Framework/DB/Sequence/SequenceInterface.php | 4 ++++ .../Magento/Framework/DB/Sql/ExpressionInterface.php | 8 +++++++- .../Data/Collection/Db/FetchStrategyInterface.php | 5 ++--- .../Framework/Data/Collection/EntityFactoryInterface.php | 3 +++ .../Framework/Data/CollectionDataSourceInterface.php | 4 ++++ .../Framework/Data/CollectionModifierInterface.php | 4 ++++ .../Magento/Framework/Data/SearchResultInterface.php | 6 +++++- .../Framework/Data/SearchResultProcessorInterface.php | 4 ++++ .../Magento/Framework/Data/ValueSourceInterface.php | 4 ++++ .../Framework/DataObject/IdentityGeneratorInterface.php | 8 ++++++-- .../Magento/Framework/DataObject/IdentityInterface.php | 4 ++++ .../Framework/DataObject/IdentityValidatorInterface.php | 4 ++++ .../Framework/DataObject/KeyValueObjectInterface.php | 2 ++ 35 files changed, 130 insertions(+), 20 deletions(-) diff --git a/lib/internal/Magento/Framework/Api/CriteriaInterface.php b/lib/internal/Magento/Framework/Api/CriteriaInterface.php index ead0d31a5fbe0..2ab20482ca1bc 100644 --- a/lib/internal/Magento/Framework/Api/CriteriaInterface.php +++ b/lib/internal/Magento/Framework/Api/CriteriaInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\Api; /** * Interface CriteriaInterface + * + * @api */ interface CriteriaInterface { diff --git a/lib/internal/Magento/Framework/Async/CancelableDeferredInterface.php b/lib/internal/Magento/Framework/Async/CancelableDeferredInterface.php index 9b328273595e8..6163ec127b9bd 100644 --- a/lib/internal/Magento/Framework/Async/CancelableDeferredInterface.php +++ b/lib/internal/Magento/Framework/Async/CancelableDeferredInterface.php @@ -3,13 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\Async; /** * Described deferred operation that can be canceled. + * + * @api */ interface CancelableDeferredInterface extends DeferredInterface { diff --git a/lib/internal/Magento/Framework/Async/DeferredInterface.php b/lib/internal/Magento/Framework/Async/DeferredInterface.php index 8c925fd95a3ab..41fa9ef4511f5 100644 --- a/lib/internal/Magento/Framework/Async/DeferredInterface.php +++ b/lib/internal/Magento/Framework/Async/DeferredInterface.php @@ -3,13 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Framework\Async; /** * Describes a value that will be available at later time. + * + * @api */ interface DeferredInterface { diff --git a/lib/internal/Magento/Framework/Autoload/AutoloaderInterface.php b/lib/internal/Magento/Framework/Autoload/AutoloaderInterface.php index 24301063c8929..72753a4a0d98f 100644 --- a/lib/internal/Magento/Framework/Autoload/AutoloaderInterface.php +++ b/lib/internal/Magento/Framework/Autoload/AutoloaderInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\Autoload; /** * Interface for an autoloader class that allows the dynamic modification of PSR-0 and PSR-4 mappings + * + * @api */ interface AutoloaderInterface { diff --git a/lib/internal/Magento/Framework/Backup/SourceFileInterface.php b/lib/internal/Magento/Framework/Backup/SourceFileInterface.php index bcc1d18686741..a36f9179688b4 100644 --- a/lib/internal/Magento/Framework/Backup/SourceFileInterface.php +++ b/lib/internal/Magento/Framework/Backup/SourceFileInterface.php @@ -3,15 +3,15 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + +namespace Magento\Framework\Backup; /** * Interface for work with archives * - * @author Magento Core Team + * @api */ - -namespace Magento\Framework\Backup; - interface SourceFileInterface { diff --git a/lib/internal/Magento/Framework/Cache/ConfigInterface.php b/lib/internal/Magento/Framework/Cache/ConfigInterface.php index 4f35ab3bf4298..8e9d7fc41d237 100644 --- a/lib/internal/Magento/Framework/Cache/ConfigInterface.php +++ b/lib/internal/Magento/Framework/Cache/ConfigInterface.php @@ -1,15 +1,16 @@ Date: Sat, 20 Feb 2021 14:35:00 +0700 Subject: [PATCH 13/20] Mark Framework interfaces as API part 1 update --- .../Framework/Amqp/Topology/BindingInstallerInterface.php | 2 ++ .../Magento/Framework/Api/AttributeTypeResolverInterface.php | 3 ++- lib/internal/Magento/Framework/Api/CriteriaInterface.php | 2 ++ .../Magento/Framework/Api/Search/AggregationInterface.php | 4 +++- .../Framework/Api/Search/AggregationValueInterface.php | 3 ++- lib/internal/Magento/Framework/Api/Search/BucketInterface.php | 4 +++- .../Magento/Framework/Api/Search/DocumentInterface.php | 3 ++- .../Magento/Framework/Api/Search/ReportingInterface.php | 2 ++ .../ConditionProcessor/CustomConditionInterface.php | 1 + .../ConditionProcessor/CustomConditionProviderInterface.php | 2 ++ lib/internal/Magento/Framework/Api/SimpleBuilderInterface.php | 2 ++ .../Framework/App/Action/HttpConnectActionInterface.php | 2 ++ .../Framework/App/Action/HttpDeleteActionInterface.php | 2 ++ .../Magento/Framework/App/Action/HttpGetActionInterface.php | 2 ++ .../Framework/App/Action/HttpOptionsActionInterface.php | 2 ++ .../Magento/Framework/App/Action/HttpPatchActionInterface.php | 2 ++ .../Magento/Framework/App/Action/HttpPostActionInterface.php | 2 ++ .../Framework/App/Action/HttpPropfindActionInterface.php | 2 ++ .../Magento/Framework/App/Action/HttpPutActionInterface.php | 2 ++ .../Magento/Framework/App/Action/HttpTraceActionInterface.php | 2 ++ lib/internal/Magento/Framework/App/AreaInterface.php | 2 ++ .../Magento/Framework/App/Config/CommentInterface.php | 2 ++ .../Magento/Framework/App/Config/CommentParserInterface.php | 2 ++ .../Framework/App/Config/ConfigResource/ConfigInterface.php | 2 ++ .../Magento/Framework/App/Config/ConfigSourceInterface.php | 2 ++ .../Magento/Framework/App/Config/ConfigTypeInterface.php | 2 ++ .../Framework/App/Config/Reader/Source/SourceInterface.php | 1 + .../Magento/Framework/App/Config/Scope/ReaderInterface.php | 1 + .../Framework/App/Config/Spi/PostProcessorInterface.php | 1 + .../Framework/App/Config/Spi/PreProcessorInterface.php | 2 ++ .../Topology/Config/ExchangeConfigItem/BindingInterface.php | 2 ++ 31 files changed, 60 insertions(+), 5 deletions(-) diff --git a/lib/internal/Magento/Framework/Amqp/Topology/BindingInstallerInterface.php b/lib/internal/Magento/Framework/Amqp/Topology/BindingInstallerInterface.php index d18b6b0ad73b9..aa467e8347886 100644 --- a/lib/internal/Magento/Framework/Amqp/Topology/BindingInstallerInterface.php +++ b/lib/internal/Magento/Framework/Amqp/Topology/BindingInstallerInterface.php @@ -10,6 +10,8 @@ /** * Exchange binding installer. + * + * @api */ interface BindingInstallerInterface { diff --git a/lib/internal/Magento/Framework/Api/AttributeTypeResolverInterface.php b/lib/internal/Magento/Framework/Api/AttributeTypeResolverInterface.php index f78cf2798aa24..51d417f5a0275 100644 --- a/lib/internal/Magento/Framework/Api/AttributeTypeResolverInterface.php +++ b/lib/internal/Magento/Framework/Api/AttributeTypeResolverInterface.php @@ -7,8 +7,9 @@ namespace Magento\Framework\Api; /** - * Interface \Magento\Framework\Api\AttributeTypeResolverInterface + * Interface Attribute Type Resolver * + * @api */ interface AttributeTypeResolverInterface { diff --git a/lib/internal/Magento/Framework/Api/CriteriaInterface.php b/lib/internal/Magento/Framework/Api/CriteriaInterface.php index ead0d31a5fbe0..b0385ccb8caea 100644 --- a/lib/internal/Magento/Framework/Api/CriteriaInterface.php +++ b/lib/internal/Magento/Framework/Api/CriteriaInterface.php @@ -7,6 +7,8 @@ /** * Interface CriteriaInterface + * + * @api */ interface CriteriaInterface { diff --git a/lib/internal/Magento/Framework/Api/Search/AggregationInterface.php b/lib/internal/Magento/Framework/Api/Search/AggregationInterface.php index 5f02006b1f1a3..fa00d701b9175 100644 --- a/lib/internal/Magento/Framework/Api/Search/AggregationInterface.php +++ b/lib/internal/Magento/Framework/Api/Search/AggregationInterface.php @@ -6,7 +6,9 @@ namespace Magento\Framework\Api\Search; /** - * Faceted data + * Interface Aggregation fo get faceted data + * + * @api */ interface AggregationInterface { diff --git a/lib/internal/Magento/Framework/Api/Search/AggregationValueInterface.php b/lib/internal/Magento/Framework/Api/Search/AggregationValueInterface.php index 0eb0b39af70ab..fc81c98a69b3f 100644 --- a/lib/internal/Magento/Framework/Api/Search/AggregationValueInterface.php +++ b/lib/internal/Magento/Framework/Api/Search/AggregationValueInterface.php @@ -6,8 +6,9 @@ namespace Magento\Framework\Api\Search; /** - * Interface \Magento\Framework\Api\Search\AggregationValueInterface + * Interface Aggregation Value * + * @api */ interface AggregationValueInterface { diff --git a/lib/internal/Magento/Framework/Api/Search/BucketInterface.php b/lib/internal/Magento/Framework/Api/Search/BucketInterface.php index 034f72258442d..8b339051f262e 100644 --- a/lib/internal/Magento/Framework/Api/Search/BucketInterface.php +++ b/lib/internal/Magento/Framework/Api/Search/BucketInterface.php @@ -6,7 +6,9 @@ namespace Magento\Framework\Api\Search; /** - * Facet Bucket + * Interface for facet Bucket + * + * @api */ interface BucketInterface { diff --git a/lib/internal/Magento/Framework/Api/Search/DocumentInterface.php b/lib/internal/Magento/Framework/Api/Search/DocumentInterface.php index e228de52aae36..66124e305edd6 100644 --- a/lib/internal/Magento/Framework/Api/Search/DocumentInterface.php +++ b/lib/internal/Magento/Framework/Api/Search/DocumentInterface.php @@ -8,8 +8,9 @@ use Magento\Framework\Api\CustomAttributesDataInterface; /** - * Interface \Magento\Framework\Api\Search\DocumentInterface + * Interface Search Document * + * @api */ interface DocumentInterface extends CustomAttributesDataInterface { diff --git a/lib/internal/Magento/Framework/Api/Search/ReportingInterface.php b/lib/internal/Magento/Framework/Api/Search/ReportingInterface.php index 46ee52f4fd697..2662096c17b01 100644 --- a/lib/internal/Magento/Framework/Api/Search/ReportingInterface.php +++ b/lib/internal/Magento/Framework/Api/Search/ReportingInterface.php @@ -7,6 +7,8 @@ /** * Interface ReportingInterface + * + * @api */ interface ReportingInterface { diff --git a/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/ConditionProcessor/CustomConditionInterface.php b/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/ConditionProcessor/CustomConditionInterface.php index 8e03d01286ff6..a83e63524423f 100644 --- a/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/ConditionProcessor/CustomConditionInterface.php +++ b/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/ConditionProcessor/CustomConditionInterface.php @@ -23,6 +23,7 @@ * AND * (CustomCondition_2 OR CustomCondition_3) * + * @api */ interface CustomConditionInterface { diff --git a/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/ConditionProcessor/CustomConditionProviderInterface.php b/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/ConditionProcessor/CustomConditionProviderInterface.php index 504db29c2a184..aca0575cc517c 100644 --- a/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/ConditionProcessor/CustomConditionProviderInterface.php +++ b/lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/ConditionProcessor/CustomConditionProviderInterface.php @@ -15,6 +15,8 @@ * * Used to store processors as mapping attributeName => CustomConditionInterface * You can use di.xml to configure with any custom conditions you need + * + * @api */ interface CustomConditionProviderInterface { diff --git a/lib/internal/Magento/Framework/Api/SimpleBuilderInterface.php b/lib/internal/Magento/Framework/Api/SimpleBuilderInterface.php index d7503f4223cbb..74ecaa8590b12 100644 --- a/lib/internal/Magento/Framework/Api/SimpleBuilderInterface.php +++ b/lib/internal/Magento/Framework/Api/SimpleBuilderInterface.php @@ -8,6 +8,8 @@ /** * Base Builder interface for simple data Objects + * + * @api */ interface SimpleBuilderInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpConnectActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpConnectActionInterface.php index 426fe584bade6..4d3e70a4de18c 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpConnectActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpConnectActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing CONNECT requests. + * + * @api */ interface HttpConnectActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpDeleteActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpDeleteActionInterface.php index 174f21cc57b4f..44d55d7e38be6 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpDeleteActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpDeleteActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing DELETE requests. + * + * @api */ interface HttpDeleteActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php index c3d3d2d6fd5ec..f9a07b927ddd9 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpGetActionInterface.php @@ -10,6 +10,8 @@ /** * Marker for actions processing GET requests. + * + * @api */ interface HttpGetActionInterface extends HttpHeadActionInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpOptionsActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpOptionsActionInterface.php index fa768885a3de4..6fcd49f888c3e 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpOptionsActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpOptionsActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing OPTIONS requests. + * + * @api */ interface HttpOptionsActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpPatchActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpPatchActionInterface.php index bfc1ec94adcfe..fad706611ba01 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpPatchActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpPatchActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing PATCH requests. + * + * @api */ interface HttpPatchActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpPostActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpPostActionInterface.php index a4b87ecfe8452..42edc14bb047a 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpPostActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpPostActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing POST requests. + * + * @api */ interface HttpPostActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpPropfindActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpPropfindActionInterface.php index 7ddd32c4727c4..d58183bac01b1 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpPropfindActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpPropfindActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing PROPFIND requests. + * + * @api */ interface HttpPropfindActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpPutActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpPutActionInterface.php index a83e946d9a945..13bc01483b0a6 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpPutActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpPutActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing PUT requests. + * + * @api */ interface HttpPutActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/Action/HttpTraceActionInterface.php b/lib/internal/Magento/Framework/App/Action/HttpTraceActionInterface.php index b776ab061e66d..fc591c7a07cea 100644 --- a/lib/internal/Magento/Framework/App/Action/HttpTraceActionInterface.php +++ b/lib/internal/Magento/Framework/App/Action/HttpTraceActionInterface.php @@ -12,6 +12,8 @@ /** * Marker for actions processing TRACE requests. + * + * @api */ interface HttpTraceActionInterface extends ActionInterface { diff --git a/lib/internal/Magento/Framework/App/AreaInterface.php b/lib/internal/Magento/Framework/App/AreaInterface.php index b7e36b59a62d8..437f559e1230a 100644 --- a/lib/internal/Magento/Framework/App/AreaInterface.php +++ b/lib/internal/Magento/Framework/App/AreaInterface.php @@ -8,6 +8,8 @@ /** * Interface AreaInterface + * + * @api */ interface AreaInterface { diff --git a/lib/internal/Magento/Framework/App/Config/CommentInterface.php b/lib/internal/Magento/Framework/App/Config/CommentInterface.php index e8a119570ac92..b0eb93a7196f4 100644 --- a/lib/internal/Magento/Framework/App/Config/CommentInterface.php +++ b/lib/internal/Magento/Framework/App/Config/CommentInterface.php @@ -9,6 +9,8 @@ /** * Interface CommentInterface + * + * @api */ interface CommentInterface { diff --git a/lib/internal/Magento/Framework/App/Config/CommentParserInterface.php b/lib/internal/Magento/Framework/App/Config/CommentParserInterface.php index e88ea631d1889..b4f2a3b9e6321 100644 --- a/lib/internal/Magento/Framework/App/Config/CommentParserInterface.php +++ b/lib/internal/Magento/Framework/App/Config/CommentParserInterface.php @@ -9,6 +9,8 @@ /** * Interface for parsing comments in the configuration file. + * + * @api */ interface CommentParserInterface { diff --git a/lib/internal/Magento/Framework/App/Config/ConfigResource/ConfigInterface.php b/lib/internal/Magento/Framework/App/Config/ConfigResource/ConfigInterface.php index 641da1d420a96..f5b29a0633072 100644 --- a/lib/internal/Magento/Framework/App/Config/ConfigResource/ConfigInterface.php +++ b/lib/internal/Magento/Framework/App/Config/ConfigResource/ConfigInterface.php @@ -9,6 +9,8 @@ /** * Resource for storing store configuration values + * + * @api */ interface ConfigInterface { diff --git a/lib/internal/Magento/Framework/App/Config/ConfigSourceInterface.php b/lib/internal/Magento/Framework/App/Config/ConfigSourceInterface.php index ef8a6426a0e3a..597112f2ed857 100644 --- a/lib/internal/Magento/Framework/App/Config/ConfigSourceInterface.php +++ b/lib/internal/Magento/Framework/App/Config/ConfigSourceInterface.php @@ -9,6 +9,8 @@ /** * Interface ConfigSourceInterface + * + * @api */ interface ConfigSourceInterface { diff --git a/lib/internal/Magento/Framework/App/Config/ConfigTypeInterface.php b/lib/internal/Magento/Framework/App/Config/ConfigTypeInterface.php index 4982aeb498910..93e82f2d8e898 100644 --- a/lib/internal/Magento/Framework/App/Config/ConfigTypeInterface.php +++ b/lib/internal/Magento/Framework/App/Config/ConfigTypeInterface.php @@ -9,6 +9,8 @@ /** * Interface ConfigTypeInterface + * + * @api */ interface ConfigTypeInterface { diff --git a/lib/internal/Magento/Framework/App/Config/Reader/Source/SourceInterface.php b/lib/internal/Magento/Framework/App/Config/Reader/Source/SourceInterface.php index dea3fb3dee78e..16361774fd59a 100644 --- a/lib/internal/Magento/Framework/App/Config/Reader/Source/SourceInterface.php +++ b/lib/internal/Magento/Framework/App/Config/Reader/Source/SourceInterface.php @@ -9,6 +9,7 @@ * Provide access to data. Each Source can be responsible for each storage, where config data can be placed * * @package Magento\Framework\App\Config\Reader\Source + * @api */ interface SourceInterface { diff --git a/lib/internal/Magento/Framework/App/Config/Scope/ReaderInterface.php b/lib/internal/Magento/Framework/App/Config/Scope/ReaderInterface.php index fbc34e4a510bf..c0988ec911fd7 100644 --- a/lib/internal/Magento/Framework/App/Config/Scope/ReaderInterface.php +++ b/lib/internal/Magento/Framework/App/Config/Scope/ReaderInterface.php @@ -10,6 +10,7 @@ /** * Interface \Magento\Framework\App\Config\Scope\ReaderInterface * + * @api */ interface ReaderInterface { diff --git a/lib/internal/Magento/Framework/App/Config/Spi/PostProcessorInterface.php b/lib/internal/Magento/Framework/App/Config/Spi/PostProcessorInterface.php index c5aae224d136b..939dc1f31baa6 100644 --- a/lib/internal/Magento/Framework/App/Config/Spi/PostProcessorInterface.php +++ b/lib/internal/Magento/Framework/App/Config/Spi/PostProcessorInterface.php @@ -14,6 +14,7 @@ * @see SourceInterface * @see ConfigTypeInterface * @package Magento\Framework\App\Config\Spi + * @api */ interface PostProcessorInterface { diff --git a/lib/internal/Magento/Framework/App/Config/Spi/PreProcessorInterface.php b/lib/internal/Magento/Framework/App/Config/Spi/PreProcessorInterface.php index 450f582a12f23..9605b67913a98 100644 --- a/lib/internal/Magento/Framework/App/Config/Spi/PreProcessorInterface.php +++ b/lib/internal/Magento/Framework/App/Config/Spi/PreProcessorInterface.php @@ -7,6 +7,8 @@ /** * Allows to use custom callbacks and functions before applying fallback + * + * @api */ interface PreProcessorInterface { diff --git a/lib/internal/Magento/Framework/MessageQueue/Topology/Config/ExchangeConfigItem/BindingInterface.php b/lib/internal/Magento/Framework/MessageQueue/Topology/Config/ExchangeConfigItem/BindingInterface.php index d6a5689f5b43c..e29339e68f420 100644 --- a/lib/internal/Magento/Framework/MessageQueue/Topology/Config/ExchangeConfigItem/BindingInterface.php +++ b/lib/internal/Magento/Framework/MessageQueue/Topology/Config/ExchangeConfigItem/BindingInterface.php @@ -7,6 +7,8 @@ /** * Instances of this interface represent config binging items declared in etc/queue_topology.xsd + * + * @api */ interface BindingInterface { From 681576431826ec66035fba97738b6130ecc9a7e4 Mon Sep 17 00:00:00 2001 From: TuNa Date: Sat, 13 Feb 2021 11:56:06 +0700 Subject: [PATCH 14/20] Mark Various Modules interfaces as API --- .../Magento/Search/Model/SearchEngine/ValidatorInterface.php | 2 ++ app/code/Magento/Search/Setup/InstallConfigInterface.php | 2 ++ .../Magento/Security/Api/Data/UserExpirationInterface.php | 3 ++- .../Shipping/Model/Carrier/Source/GenericInterface.php | 2 ++ .../Model/Config/Importer/Processor/ProcessorInterface.php | 2 ++ .../Magento/Store/Model/StoreResolver/ReaderInterface.php | 1 + .../Magento/Store/Model/StoreSwitcher/ContextInterface.php | 2 ++ .../Store/Model/StoreSwitcher/RedirectDataInterface.php | 2 ++ .../StoreSwitcher/RedirectDataPostprocessorInterface.php | 2 ++ .../StoreSwitcher/RedirectDataPreprocessorInterface.php | 2 ++ .../Model/StoreSwitcher/RedirectDataSerializerInterface.php | 2 ++ app/code/Magento/Store/Model/StoreSwitcherInterface.php | 2 ++ app/code/Magento/Tax/Api/TaxAddressManagerInterface.php | 3 ++- .../Tax/Model/System/Message/NotificationInterface.php | 2 ++ app/code/Magento/Tax/Model/TaxClass/Type/TypeInterface.php | 5 +---- .../Theme/Model/Design/Config/MetadataProviderInterface.php | 1 + .../Theme/Model/Theme/StoreThemesResolverInterface.php | 2 ++ .../Ui/Component/Form/Element/DataType/DataTypeInterface.php | 2 ++ app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php | 2 ++ app/code/Magento/Ui/Component/Wysiwyg/ConfigInterface.php | 2 ++ app/code/Magento/Ui/Config/Argument/ParserInterface.php | 2 ++ app/code/Magento/Ui/Config/ConverterInterface.php | 2 ++ app/code/Magento/Ui/Controller/UiActionInterface.php | 2 ++ .../Ui/DataProvider/AddFieldToCollectionInterface.php | 2 ++ .../Ui/DataProvider/AddFilterToCollectionInterface.php | 2 ++ app/code/Magento/Ui/DataProvider/Mapper/MapperInterface.php | 2 ++ app/code/Magento/Ui/DataProvider/Modifier/PoolInterface.php | 1 + app/code/Magento/Ui/Model/ColorPicker/ModeInterface.php | 4 +++- app/code/Magento/Ui/Model/UrlInput/ConfigInterface.php | 2 ++ 29 files changed, 55 insertions(+), 7 deletions(-) diff --git a/app/code/Magento/Search/Model/SearchEngine/ValidatorInterface.php b/app/code/Magento/Search/Model/SearchEngine/ValidatorInterface.php index aa6a344d87924..cb95986e57a57 100644 --- a/app/code/Magento/Search/Model/SearchEngine/ValidatorInterface.php +++ b/app/code/Magento/Search/Model/SearchEngine/ValidatorInterface.php @@ -9,6 +9,8 @@ /** * Validate search engine configuration + * + * @api */ interface ValidatorInterface { diff --git a/app/code/Magento/Search/Setup/InstallConfigInterface.php b/app/code/Magento/Search/Setup/InstallConfigInterface.php index fd7f56389dc2a..a2ab3b44e22c1 100644 --- a/app/code/Magento/Search/Setup/InstallConfigInterface.php +++ b/app/code/Magento/Search/Setup/InstallConfigInterface.php @@ -9,6 +9,8 @@ /** * Configure search engine from installation input + * + * @api */ interface InstallConfigInterface { diff --git a/app/code/Magento/Security/Api/Data/UserExpirationInterface.php b/app/code/Magento/Security/Api/Data/UserExpirationInterface.php index 4f602c8b58a87..e509826b9098e 100644 --- a/app/code/Magento/Security/Api/Data/UserExpirationInterface.php +++ b/app/code/Magento/Security/Api/Data/UserExpirationInterface.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\Security\Api\Data; @@ -12,6 +11,8 @@ /** * Interface UserExpirationInterface to be used as a DTO for expires_at property on User model. + * + * @api */ interface UserExpirationInterface extends \Magento\Framework\Api\ExtensibleDataInterface { diff --git a/app/code/Magento/Shipping/Model/Carrier/Source/GenericInterface.php b/app/code/Magento/Shipping/Model/Carrier/Source/GenericInterface.php index b4a1815a4f427..783928438bf61 100644 --- a/app/code/Magento/Shipping/Model/Carrier/Source/GenericInterface.php +++ b/app/code/Magento/Shipping/Model/Carrier/Source/GenericInterface.php @@ -9,6 +9,8 @@ /** * Interface GenericInterface + * + * @api */ interface GenericInterface extends OptionSourceInterface { diff --git a/app/code/Magento/Store/Model/Config/Importer/Processor/ProcessorInterface.php b/app/code/Magento/Store/Model/Config/Importer/Processor/ProcessorInterface.php index 306ef4ed17986..991e785661984 100644 --- a/app/code/Magento/Store/Model/Config/Importer/Processor/ProcessorInterface.php +++ b/app/code/Magento/Store/Model/Config/Importer/Processor/ProcessorInterface.php @@ -9,6 +9,8 @@ /** * The processor for store manipulations. + * + * @api */ interface ProcessorInterface { diff --git a/app/code/Magento/Store/Model/StoreResolver/ReaderInterface.php b/app/code/Magento/Store/Model/StoreResolver/ReaderInterface.php index 81715001b224d..6a48a24d4cf09 100644 --- a/app/code/Magento/Store/Model/StoreResolver/ReaderInterface.php +++ b/app/code/Magento/Store/Model/StoreResolver/ReaderInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Store\Model\StoreResolver\ReaderInterface * + * @api */ interface ReaderInterface { diff --git a/app/code/Magento/Store/Model/StoreSwitcher/ContextInterface.php b/app/code/Magento/Store/Model/StoreSwitcher/ContextInterface.php index a18c7cc9ccc27..c5493beff2722 100644 --- a/app/code/Magento/Store/Model/StoreSwitcher/ContextInterface.php +++ b/app/code/Magento/Store/Model/StoreSwitcher/ContextInterface.php @@ -11,6 +11,8 @@ /** * Store switcher context interface + * + * @api */ interface ContextInterface { diff --git a/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataInterface.php b/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataInterface.php index f7fc066634b63..84b522c88edc1 100644 --- a/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataInterface.php +++ b/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataInterface.php @@ -9,6 +9,8 @@ /** * Store switcher redirect data interface + * + * @api */ interface RedirectDataInterface { diff --git a/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataPostprocessorInterface.php b/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataPostprocessorInterface.php index de117915e23da..8ef42a63651cb 100644 --- a/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataPostprocessorInterface.php +++ b/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataPostprocessorInterface.php @@ -9,6 +9,8 @@ /** * Store switcher redirect data post-processor interface + * + * @api */ interface RedirectDataPostprocessorInterface { diff --git a/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataPreprocessorInterface.php b/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataPreprocessorInterface.php index d28a7dd776ab7..3e3307e279af1 100644 --- a/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataPreprocessorInterface.php +++ b/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataPreprocessorInterface.php @@ -9,6 +9,8 @@ /** * Store switcher redirect data pre-processor interface + * + * @api */ interface RedirectDataPreprocessorInterface { diff --git a/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataSerializerInterface.php b/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataSerializerInterface.php index 0f7cde4d94ccd..f257046354fc5 100644 --- a/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataSerializerInterface.php +++ b/app/code/Magento/Store/Model/StoreSwitcher/RedirectDataSerializerInterface.php @@ -9,6 +9,8 @@ /** * Store switcher redirect data serializer interface + * + * @api */ interface RedirectDataSerializerInterface { diff --git a/app/code/Magento/Store/Model/StoreSwitcherInterface.php b/app/code/Magento/Store/Model/StoreSwitcherInterface.php index ee6fb0b4763c6..2ebbba4d6f417 100644 --- a/app/code/Magento/Store/Model/StoreSwitcherInterface.php +++ b/app/code/Magento/Store/Model/StoreSwitcherInterface.php @@ -12,6 +12,8 @@ /** * Handles store switching procedure and detects url for final redirect after store switching. + * + * @api */ interface StoreSwitcherInterface { diff --git a/app/code/Magento/Tax/Api/TaxAddressManagerInterface.php b/app/code/Magento/Tax/Api/TaxAddressManagerInterface.php index 8eaa57e078d53..7b7aa11a05aab 100644 --- a/app/code/Magento/Tax/Api/TaxAddressManagerInterface.php +++ b/app/code/Magento/Tax/Api/TaxAddressManagerInterface.php @@ -3,13 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - namespace Magento\Tax\Api; use Magento\Customer\Model\Address; /** * Interface to save data in customer session. + * + * @api */ interface TaxAddressManagerInterface { diff --git a/app/code/Magento/Tax/Model/System/Message/NotificationInterface.php b/app/code/Magento/Tax/Model/System/Message/NotificationInterface.php index 901bc9865233e..24116c805f497 100644 --- a/app/code/Magento/Tax/Model/System/Message/NotificationInterface.php +++ b/app/code/Magento/Tax/Model/System/Message/NotificationInterface.php @@ -7,6 +7,8 @@ /** * Notification interface for tax-related configuration issues. + * + * @api */ interface NotificationInterface extends \Magento\Framework\Notification\MessageInterface { diff --git a/app/code/Magento/Tax/Model/TaxClass/Type/TypeInterface.php b/app/code/Magento/Tax/Model/TaxClass/Type/TypeInterface.php index 299b8f8638cce..2c1142e8c513e 100644 --- a/app/code/Magento/Tax/Model/TaxClass/Type/TypeInterface.php +++ b/app/code/Magento/Tax/Model/TaxClass/Type/TypeInterface.php @@ -3,15 +3,12 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - -/** - * Interface for tax classes - */ namespace Magento\Tax\Model\TaxClass\Type; /** * Interface \Magento\Tax\Model\TaxClass\Type\TypeInterface * + * @api */ interface TypeInterface { diff --git a/app/code/Magento/Theme/Model/Design/Config/MetadataProviderInterface.php b/app/code/Magento/Theme/Model/Design/Config/MetadataProviderInterface.php index 4f18922b8d612..2168be9cea7ec 100644 --- a/app/code/Magento/Theme/Model/Design/Config/MetadataProviderInterface.php +++ b/app/code/Magento/Theme/Model/Design/Config/MetadataProviderInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Theme\Model\Design\Config\MetadataProviderInterface * + * @api */ interface MetadataProviderInterface { diff --git a/app/code/Magento/Theme/Model/Theme/StoreThemesResolverInterface.php b/app/code/Magento/Theme/Model/Theme/StoreThemesResolverInterface.php index bb2cd73300c02..07f6732709b89 100644 --- a/app/code/Magento/Theme/Model/Theme/StoreThemesResolverInterface.php +++ b/app/code/Magento/Theme/Model/Theme/StoreThemesResolverInterface.php @@ -11,6 +11,8 @@ /** * Store associated themes resolver. + * + * @api */ interface StoreThemesResolverInterface { diff --git a/app/code/Magento/Ui/Component/Form/Element/DataType/DataTypeInterface.php b/app/code/Magento/Ui/Component/Form/Element/DataType/DataTypeInterface.php index ae09def8557ac..89ae5392d574f 100644 --- a/app/code/Magento/Ui/Component/Form/Element/DataType/DataTypeInterface.php +++ b/app/code/Magento/Ui/Component/Form/Element/DataType/DataTypeInterface.php @@ -9,6 +9,8 @@ /** * Interface DataTypeInterface + * + * @api */ interface DataTypeInterface extends UiComponentInterface { diff --git a/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php b/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php index 318e729975211..bf977d33ad7e8 100644 --- a/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php +++ b/app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php @@ -7,6 +7,8 @@ /** * Interface TabInterface + * + * @api */ interface TabInterface { diff --git a/app/code/Magento/Ui/Component/Wysiwyg/ConfigInterface.php b/app/code/Magento/Ui/Component/Wysiwyg/ConfigInterface.php index 4f1bf00689701..4a97baf35941e 100644 --- a/app/code/Magento/Ui/Component/Wysiwyg/ConfigInterface.php +++ b/app/code/Magento/Ui/Component/Wysiwyg/ConfigInterface.php @@ -7,6 +7,8 @@ /** * Interface ConfigInterface + * + * @api */ interface ConfigInterface { diff --git a/app/code/Magento/Ui/Config/Argument/ParserInterface.php b/app/code/Magento/Ui/Config/Argument/ParserInterface.php index cf6303d7e3ee4..74a6bd970313c 100644 --- a/app/code/Magento/Ui/Config/Argument/ParserInterface.php +++ b/app/code/Magento/Ui/Config/Argument/ParserInterface.php @@ -7,6 +7,8 @@ /** * Convert node to array + * + * @api */ interface ParserInterface { diff --git a/app/code/Magento/Ui/Config/ConverterInterface.php b/app/code/Magento/Ui/Config/ConverterInterface.php index 042faf185fc6f..d2ea730a03622 100644 --- a/app/code/Magento/Ui/Config/ConverterInterface.php +++ b/app/code/Magento/Ui/Config/ConverterInterface.php @@ -7,6 +7,8 @@ /** * Converter interface is used to convert UI Component XML configuration into UI Component interfaces arguments + * + * @api */ interface ConverterInterface { diff --git a/app/code/Magento/Ui/Controller/UiActionInterface.php b/app/code/Magento/Ui/Controller/UiActionInterface.php index 46729c3e68e96..077aa2f9f10cd 100644 --- a/app/code/Magento/Ui/Controller/UiActionInterface.php +++ b/app/code/Magento/Ui/Controller/UiActionInterface.php @@ -7,6 +7,8 @@ /** * Interface UiActionInterface + * + * @api */ interface UiActionInterface { diff --git a/app/code/Magento/Ui/DataProvider/AddFieldToCollectionInterface.php b/app/code/Magento/Ui/DataProvider/AddFieldToCollectionInterface.php index 40e563345ed4b..cea52d8b86219 100644 --- a/app/code/Magento/Ui/DataProvider/AddFieldToCollectionInterface.php +++ b/app/code/Magento/Ui/DataProvider/AddFieldToCollectionInterface.php @@ -9,6 +9,8 @@ /** * AddFieldToCollection interface + * + * @api */ interface AddFieldToCollectionInterface { diff --git a/app/code/Magento/Ui/DataProvider/AddFilterToCollectionInterface.php b/app/code/Magento/Ui/DataProvider/AddFilterToCollectionInterface.php index 9fc3ed97c0f0c..1ede60a8bf62d 100644 --- a/app/code/Magento/Ui/DataProvider/AddFilterToCollectionInterface.php +++ b/app/code/Magento/Ui/DataProvider/AddFilterToCollectionInterface.php @@ -9,6 +9,8 @@ /** * AddFilterToCollection interface + * + * @api */ interface AddFilterToCollectionInterface { diff --git a/app/code/Magento/Ui/DataProvider/Mapper/MapperInterface.php b/app/code/Magento/Ui/DataProvider/Mapper/MapperInterface.php index 018e643947906..1d4a9765284be 100644 --- a/app/code/Magento/Ui/DataProvider/Mapper/MapperInterface.php +++ b/app/code/Magento/Ui/DataProvider/Mapper/MapperInterface.php @@ -7,6 +7,8 @@ /** * Interface MapperInterface + * + * @api */ interface MapperInterface { diff --git a/app/code/Magento/Ui/DataProvider/Modifier/PoolInterface.php b/app/code/Magento/Ui/DataProvider/Modifier/PoolInterface.php index 384d966f42159..6f9b4ccf34c69 100644 --- a/app/code/Magento/Ui/DataProvider/Modifier/PoolInterface.php +++ b/app/code/Magento/Ui/DataProvider/Modifier/PoolInterface.php @@ -8,6 +8,7 @@ /** * Interface \Magento\Ui\DataProvider\Modifier\PoolInterface * + * @api */ interface PoolInterface { diff --git a/app/code/Magento/Ui/Model/ColorPicker/ModeInterface.php b/app/code/Magento/Ui/Model/ColorPicker/ModeInterface.php index 5c0504c995b99..617a83606c3f0 100644 --- a/app/code/Magento/Ui/Model/ColorPicker/ModeInterface.php +++ b/app/code/Magento/Ui/Model/ColorPicker/ModeInterface.php @@ -10,6 +10,8 @@ /** * Mode interface for color modes + * + * @api */ interface ModeInterface { @@ -18,5 +20,5 @@ interface ModeInterface * * @return array */ - public function getConfig() : array ; + public function getConfig(): array ; } diff --git a/app/code/Magento/Ui/Model/UrlInput/ConfigInterface.php b/app/code/Magento/Ui/Model/UrlInput/ConfigInterface.php index 8cf7a9dd8b229..77550925250a0 100644 --- a/app/code/Magento/Ui/Model/UrlInput/ConfigInterface.php +++ b/app/code/Magento/Ui/Model/UrlInput/ConfigInterface.php @@ -9,6 +9,8 @@ /** * Config interface for url link types + * + * @api */ interface ConfigInterface { From 47ce030e2e2882379f311f93a242fe926ababfe3 Mon Sep 17 00:00:00 2001 From: Tu Nguyen Date: Wed, 7 Apr 2021 06:12:41 +0700 Subject: [PATCH 15/20] Mark classes and interfaces as API part 5 --- .../Magento/Framework/App/Config/ValueInterface.php | 7 ++++--- .../MessageQueue/ConsumerConfigurationInterface.php | 6 +++++- lib/internal/Magento/Framework/View/DesignInterface.php | 6 +++++- .../Webapi/CustomAttributeTypeLocatorInterface.php | 3 +++ 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/lib/internal/Magento/Framework/App/Config/ValueInterface.php b/lib/internal/Magento/Framework/App/Config/ValueInterface.php index 0aa600b84dcce..a81ff2d325e0c 100644 --- a/lib/internal/Magento/Framework/App/Config/ValueInterface.php +++ b/lib/internal/Magento/Framework/App/Config/ValueInterface.php @@ -5,14 +5,15 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\App\Config; /** * Interface \Magento\Framework\App\Config\ValueInterface * - * This interface cannot be marked as API since doesn't fit developers' needs of extensibility. In 2.4 we are going - * to introduce a new interface which should cover all needs and deprecate the this one with the model - * {@see \Magento\Framework\App\Config\Value} + * @api + * @see \Magento\Framework\App\Config\Value */ interface ValueInterface { diff --git a/lib/internal/Magento/Framework/MessageQueue/ConsumerConfigurationInterface.php b/lib/internal/Magento/Framework/MessageQueue/ConsumerConfigurationInterface.php index 3e54f03e71603..eca5134064288 100644 --- a/lib/internal/Magento/Framework/MessageQueue/ConsumerConfigurationInterface.php +++ b/lib/internal/Magento/Framework/MessageQueue/ConsumerConfigurationInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\MessageQueue; /** - * Configuration for the consumer. + * Configuration for the consumer interface + * + * @api */ interface ConsumerConfigurationInterface { diff --git a/lib/internal/Magento/Framework/View/DesignInterface.php b/lib/internal/Magento/Framework/View/DesignInterface.php index ee501f1f494ad..64e11b09f6c36 100644 --- a/lib/internal/Magento/Framework/View/DesignInterface.php +++ b/lib/internal/Magento/Framework/View/DesignInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\View; /** - * Design Interface + * Interface \Magento\Framework\View\DesignInterface + * + * @api */ interface DesignInterface { diff --git a/lib/internal/Magento/Framework/Webapi/CustomAttributeTypeLocatorInterface.php b/lib/internal/Magento/Framework/Webapi/CustomAttributeTypeLocatorInterface.php index ac183bc3b1871..43ba64dbdef48 100644 --- a/lib/internal/Magento/Framework/Webapi/CustomAttributeTypeLocatorInterface.php +++ b/lib/internal/Magento/Framework/Webapi/CustomAttributeTypeLocatorInterface.php @@ -3,11 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Framework\Webapi; /** * Interface to locate types for custom attributes + * + * @api */ interface CustomAttributeTypeLocatorInterface { From 90f00d8baa8655bca9783b0773d3b555eed3d9e2 Mon Sep 17 00:00:00 2001 From: Tu Nguyen Date: Wed, 7 Apr 2021 06:33:42 +0700 Subject: [PATCH 16/20] Mark classes and interfaces as API part 4 --- app/code/Magento/Cms/Model/Template/FilterProvider.php | 8 +++++--- app/code/Magento/Customer/Controller/Adminhtml/Index.php | 5 ++++- app/code/Magento/Customer/Model/Url.php | 6 +++++- .../Sales/Model/Order/Email/Sender/InvoiceSender.php | 1 + .../Sales/Model/Order/Email/Sender/OrderSender.php | 3 +++ app/code/Magento/Sales/Model/Service/InvoiceService.php | 1 + lib/internal/Magento/Framework/Convert/DataObject.php | 5 +++-- .../Magento/Framework/Data/Form/Element/Factory.php | 3 +++ lib/internal/Magento/Framework/HTTP/Adapter/Curl.php | 3 +++ lib/internal/Magento/Framework/UrlFactory.php | 6 ++++++ 10 files changed, 34 insertions(+), 7 deletions(-) diff --git a/app/code/Magento/Cms/Model/Template/FilterProvider.php b/app/code/Magento/Cms/Model/Template/FilterProvider.php index 02e337003f45c..5d9103a676f9c 100644 --- a/app/code/Magento/Cms/Model/Template/FilterProvider.php +++ b/app/code/Magento/Cms/Model/Template/FilterProvider.php @@ -1,14 +1,16 @@ Date: Wed, 7 Apr 2021 21:03:07 +0700 Subject: [PATCH 17/20] Mark classes and interfaces as API part 6 update --- app/code/Magento/Catalog/Model/Config.php | 2 ++ app/code/Magento/Catalog/Model/Layer/Filter/Item.php | 7 ++++--- app/code/Magento/Checkout/Model/Type/Onepage.php | 5 +++++ app/code/Magento/Customer/Model/CustomerRegistry.php | 3 +++ app/code/Magento/Quote/Setup/QuoteSetup.php | 3 +++ app/code/Magento/Ui/Component/Control/Container.php | 4 ++++ lib/internal/Magento/Framework/Image/AdapterFactory.php | 4 ++++ 7 files changed, 25 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/Catalog/Model/Config.php b/app/code/Magento/Catalog/Model/Config.php index c4ff12bbf0f94..a08c7034f7edf 100644 --- a/app/code/Magento/Catalog/Model/Config.php +++ b/app/code/Magento/Catalog/Model/Config.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Catalog\Model; @@ -11,6 +12,7 @@ /** * Catalog config model. * + * @api * @SuppressWarnings(PHPMD.LongVariable) * @SuppressWarnings(PHPMD.TooManyFields) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) diff --git a/app/code/Magento/Catalog/Model/Layer/Filter/Item.php b/app/code/Magento/Catalog/Model/Layer/Filter/Item.php index b37d248a3f2f8..67e5c6dbece41 100644 --- a/app/code/Magento/Catalog/Model/Layer/Filter/Item.php +++ b/app/code/Magento/Catalog/Model/Layer/Filter/Item.php @@ -3,14 +3,15 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + +namespace Magento\Catalog\Model\Layer\Filter; /** * Filter item model * - * @author Magento Core Team + * @api */ -namespace Magento\Catalog\Model\Layer\Filter; - class Item extends \Magento\Framework\DataObject { /** diff --git a/app/code/Magento/Checkout/Model/Type/Onepage.php b/app/code/Magento/Checkout/Model/Type/Onepage.php index f7e55fdc84cf7..ddd73924be956 100644 --- a/app/code/Magento/Checkout/Model/Type/Onepage.php +++ b/app/code/Magento/Checkout/Model/Type/Onepage.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Checkout\Model\Type; use Magento\Customer\Api\AccountManagementInterface; @@ -15,6 +17,9 @@ use Magento\Sales\Model\Order\Email\Sender\OrderSender; /** + * Checkout type onepage model + * + * @api * @SuppressWarnings(PHPMD.TooManyFields) * @SuppressWarnings(PHPMD.ExcessiveClassComplexity) * @SuppressWarnings(PHPMD.CouplingBetweenObjects) diff --git a/app/code/Magento/Customer/Model/CustomerRegistry.php b/app/code/Magento/Customer/Model/CustomerRegistry.php index f2868132790cf..0f421c1c677ce 100644 --- a/app/code/Magento/Customer/Model/CustomerRegistry.php +++ b/app/code/Magento/Customer/Model/CustomerRegistry.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Customer\Model; @@ -13,6 +14,8 @@ /** * Registry for \Magento\Customer\Model\Customer + * + * @api */ class CustomerRegistry { diff --git a/app/code/Magento/Quote/Setup/QuoteSetup.php b/app/code/Magento/Quote/Setup/QuoteSetup.php index b1f52288b1160..e8153e0045de7 100644 --- a/app/code/Magento/Quote/Setup/QuoteSetup.php +++ b/app/code/Magento/Quote/Setup/QuoteSetup.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Quote\Setup; use Magento\Eav\Model\Entity\Setup\Context; @@ -15,6 +17,7 @@ /** * Quote module setup class * + * @api * @SuppressWarnings(PHPMD.CyclomaticComplexity) * @codeCoverageIgnore */ diff --git a/app/code/Magento/Ui/Component/Control/Container.php b/app/code/Magento/Ui/Component/Control/Container.php index 5f596b4651008..bfc0e83e06c2f 100644 --- a/app/code/Magento/Ui/Component/Control/Container.php +++ b/app/code/Magento/Ui/Component/Control/Container.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Ui\Component\Control; use Magento\Framework\View\Element\AbstractBlock; @@ -10,6 +12,8 @@ /** * Class Container + * + * @api */ class Container extends AbstractBlock { diff --git a/lib/internal/Magento/Framework/Image/AdapterFactory.php b/lib/internal/Magento/Framework/Image/AdapterFactory.php index 4a380bab433db..c1246e85a7848 100644 --- a/lib/internal/Magento/Framework/Image/AdapterFactory.php +++ b/lib/internal/Magento/Framework/Image/AdapterFactory.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\Image; /** * Factory for Adapters that Image Library is using to process images + * + * @api */ class AdapterFactory { From 70d55245a1547c57dc16d2e116113b7b1c8758e8 Mon Sep 17 00:00:00 2001 From: Tu Nguyen Date: Thu, 8 Apr 2021 16:59:39 +0700 Subject: [PATCH 18/20] Update Config.php revert add strict_types --- app/code/Magento/Catalog/Model/Config.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/code/Magento/Catalog/Model/Config.php b/app/code/Magento/Catalog/Model/Config.php index a08c7034f7edf..8b8971377817a 100644 --- a/app/code/Magento/Catalog/Model/Config.php +++ b/app/code/Magento/Catalog/Model/Config.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -declare(strict_types=1); namespace Magento\Catalog\Model; From 0a21b87dbb6268bf8c26d0d75664567089fb03bd Mon Sep 17 00:00:00 2001 From: Oleh Usik Date: Mon, 15 Feb 2021 18:40:36 +0200 Subject: [PATCH 19/20] marked as api --- .../Product/LayeredNavigation/LayerBuilderInterface.php | 2 ++ .../DataProvider/Category/CollectionProcessorInterface.php | 2 ++ .../Model/Resolver/Product/Price/ProviderInterface.php | 2 ++ .../DataProvider/Product/CollectionProcessorInterface.php | 2 ++ .../Model/Resolver/Products/Query/ProductQueryInterface.php | 3 +++ .../Model/Export/ProductFilterInterface.php | 5 +++++ .../Model/Indexer/IndexerTableSwapperInterface.php | 2 ++ .../Model/Adapter/Aggregation/RequestCheckerInterface.php | 4 ++++ .../Advanced/ProductCollectionPrepareStrategyInterface.php | 4 ++++ .../Fulltext/Collection/SearchCriteriaResolverInterface.php | 3 +++ .../Fulltext/Collection/SearchResultApplierInterface.php | 3 +++ .../Fulltext/Collection/TotalRecordsResolverInterface.php | 3 +++ .../Model/Search/ItemCollectionProviderInterface.php | 3 +++ .../CatalogUrlRewrite/Model/Map/DatabaseMapInterface.php | 4 ++++ .../CatalogUrlRewrite/Model/Map/HashMapInterface.php | 6 ++++-- .../Checkout/Api/PaymentProcessingRateLimiterInterface.php | 2 ++ .../Checkout/Controller/Express/RedirectLoginInterface.php | 3 +++ .../Magento/Checkout/CustomerData/ItemPoolInterface.php | 3 +++ .../Model/AgreementsProviderInterface.php | 4 ++++ .../CustomLayout/Data/CustomLayoutSelectedInterface.php | 2 ++ .../Magento/Cms/Model/Page/CustomLayoutManagerInterface.php | 2 ++ .../Cms/Model/Page/CustomLayoutRepositoryInterface.php | 2 ++ .../Magento/Cms/Model/PageRepository/ValidatorInterface.php | 2 ++ app/code/Magento/Cms/Ui/Component/AddFilterInterface.php | 2 ++ .../Attribute/OptionSelectBuilderInterface.php | 4 ++++ 25 files changed, 72 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/CatalogGraphQl/DataProvider/Product/LayeredNavigation/LayerBuilderInterface.php b/app/code/Magento/CatalogGraphQl/DataProvider/Product/LayeredNavigation/LayerBuilderInterface.php index bd55bc6938b39..5ac24a6adc36e 100644 --- a/app/code/Magento/CatalogGraphQl/DataProvider/Product/LayeredNavigation/LayerBuilderInterface.php +++ b/app/code/Magento/CatalogGraphQl/DataProvider/Product/LayeredNavigation/LayerBuilderInterface.php @@ -26,6 +26,8 @@ * ], * ... * ]; + * + * @api */ interface LayerBuilderInterface { diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/Categories/DataProvider/Category/CollectionProcessorInterface.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/Categories/DataProvider/Category/CollectionProcessorInterface.php index 5e79064e9acfa..6906e71cb043f 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/Categories/DataProvider/Category/CollectionProcessorInterface.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/Categories/DataProvider/Category/CollectionProcessorInterface.php @@ -13,6 +13,8 @@ /** * Add additional joins, attributes, and clauses to a category collection. + * + * @api */ interface CollectionProcessorInterface { diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/Product/Price/ProviderInterface.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/Product/Price/ProviderInterface.php index 99459daf045a5..018d2029fd6d6 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/Product/Price/ProviderInterface.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/Product/Price/ProviderInterface.php @@ -12,6 +12,8 @@ /** * Provides product prices + * + * @api */ interface ProviderInterface { diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/Product/CollectionProcessorInterface.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/Product/CollectionProcessorInterface.php index 18e249ff23ac7..6e2ff7c7da660 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/Product/CollectionProcessorInterface.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/Product/CollectionProcessorInterface.php @@ -13,6 +13,8 @@ /** * Add additional joins, attributes, and clauses to a product collection. + * + * @api */ interface CollectionProcessorInterface { diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Query/ProductQueryInterface.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Query/ProductQueryInterface.php index fca6f3d4f7770..1ebb847784a8a 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Query/ProductQueryInterface.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Query/ProductQueryInterface.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\CatalogGraphQl\Model\Resolver\Products\Query; @@ -12,6 +13,8 @@ /** * Search for products by criteria + * + * @api */ interface ProductQueryInterface { diff --git a/app/code/Magento/CatalogImportExport/Model/Export/ProductFilterInterface.php b/app/code/Magento/CatalogImportExport/Model/Export/ProductFilterInterface.php index 30985f3dc8cd7..c8d39fa522966 100644 --- a/app/code/Magento/CatalogImportExport/Model/Export/ProductFilterInterface.php +++ b/app/code/Magento/CatalogImportExport/Model/Export/ProductFilterInterface.php @@ -9,6 +9,11 @@ use Magento\Catalog\Model\ResourceModel\Product\Collection; +/** + * Product filter interface + * + * @api + */ interface ProductFilterInterface { /** diff --git a/app/code/Magento/CatalogRule/Model/Indexer/IndexerTableSwapperInterface.php b/app/code/Magento/CatalogRule/Model/Indexer/IndexerTableSwapperInterface.php index 2f37e680949ae..9171425409d23 100644 --- a/app/code/Magento/CatalogRule/Model/Indexer/IndexerTableSwapperInterface.php +++ b/app/code/Magento/CatalogRule/Model/Indexer/IndexerTableSwapperInterface.php @@ -10,6 +10,8 @@ /** * Manage additional tables used while building new index to preserve * index tables until the process finishes. + * + * @api */ interface IndexerTableSwapperInterface { diff --git a/app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/RequestCheckerInterface.php b/app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/RequestCheckerInterface.php index 7efe708a5755f..723073a3b0002 100644 --- a/app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/RequestCheckerInterface.php +++ b/app/code/Magento/CatalogSearch/Model/Adapter/Aggregation/RequestCheckerInterface.php @@ -3,12 +3,16 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\CatalogSearch\Model\Adapter\Aggregation; use Magento\Framework\Search\RequestInterface; /** * RequestCheckerInterface provides the interface to work with query checkers. + * + * @api */ interface RequestCheckerInterface { diff --git a/app/code/Magento/CatalogSearch/Model/Advanced/ProductCollectionPrepareStrategyInterface.php b/app/code/Magento/CatalogSearch/Model/Advanced/ProductCollectionPrepareStrategyInterface.php index 23719a6713a32..727a410bf23b9 100644 --- a/app/code/Magento/CatalogSearch/Model/Advanced/ProductCollectionPrepareStrategyInterface.php +++ b/app/code/Magento/CatalogSearch/Model/Advanced/ProductCollectionPrepareStrategyInterface.php @@ -3,12 +3,16 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\CatalogSearch\Model\Advanced; use Magento\Catalog\Model\ResourceModel\Product\Collection; /** * Strategy interface for preparing product collection. + * + * @api */ interface ProductCollectionPrepareStrategyInterface { diff --git a/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/SearchCriteriaResolverInterface.php b/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/SearchCriteriaResolverInterface.php index 047fa7f71e400..05422a13741c3 100644 --- a/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/SearchCriteriaResolverInterface.php +++ b/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/SearchCriteriaResolverInterface.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection; @@ -10,6 +11,8 @@ /** * Resolve specific attributes for search criteria. + * + * @api */ interface SearchCriteriaResolverInterface { diff --git a/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplierInterface.php b/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplierInterface.php index 1b3e2a6bbac71..29db40e5bcbc9 100644 --- a/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplierInterface.php +++ b/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/SearchResultApplierInterface.php @@ -3,11 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection; /** * Resolve specific attributes for search criteria. + * + * @api */ interface SearchResultApplierInterface { diff --git a/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/TotalRecordsResolverInterface.php b/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/TotalRecordsResolverInterface.php index 190450f9606bc..eff23f3c00711 100644 --- a/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/TotalRecordsResolverInterface.php +++ b/app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection/TotalRecordsResolverInterface.php @@ -3,11 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection; /** * Resolve total records count. + * + * @api */ interface TotalRecordsResolverInterface { diff --git a/app/code/Magento/CatalogSearch/Model/Search/ItemCollectionProviderInterface.php b/app/code/Magento/CatalogSearch/Model/Search/ItemCollectionProviderInterface.php index db02d5ac5f519..57c81bface24d 100644 --- a/app/code/Magento/CatalogSearch/Model/Search/ItemCollectionProviderInterface.php +++ b/app/code/Magento/CatalogSearch/Model/Search/ItemCollectionProviderInterface.php @@ -4,6 +4,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\CatalogSearch\Model\Search; @@ -11,6 +12,8 @@ /** * Search collection provider. + * + * @api */ interface ItemCollectionProviderInterface { diff --git a/app/code/Magento/CatalogUrlRewrite/Model/Map/DatabaseMapInterface.php b/app/code/Magento/CatalogUrlRewrite/Model/Map/DatabaseMapInterface.php index 7ce55b0f2765f..ab9feaf5567bd 100644 --- a/app/code/Magento/CatalogUrlRewrite/Model/Map/DatabaseMapInterface.php +++ b/app/code/Magento/CatalogUrlRewrite/Model/Map/DatabaseMapInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\CatalogUrlRewrite\Model\Map; /** @@ -11,6 +13,8 @@ * Is used to get data by a unique key from a temporary table in mysql to prevent memory usage * It internally holds the knowledge the creation of the actual data and it initializes itself when we call getData * We should always call destroyTableAdapter when we don't need anymore the temporary tables + * + * @api */ interface DatabaseMapInterface { diff --git a/app/code/Magento/CatalogUrlRewrite/Model/Map/HashMapInterface.php b/app/code/Magento/CatalogUrlRewrite/Model/Map/HashMapInterface.php index 69595c82d8655..ce87c785f81b7 100644 --- a/app/code/Magento/CatalogUrlRewrite/Model/Map/HashMapInterface.php +++ b/app/code/Magento/CatalogUrlRewrite/Model/Map/HashMapInterface.php @@ -3,9 +3,9 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -namespace Magento\CatalogUrlRewrite\Model\Map; +declare(strict_types=1); -use Magento\Framework\DB\Select; +namespace Magento\CatalogUrlRewrite\Model\Map; /** * Interface for a hash data map @@ -15,6 +15,8 @@ * The map, upon initialization, might have a dependency on some other DataMapInterfaces * The map has to free memory after we're done using it * We need to destroy those maps too when calling resetData + * + * @api */ interface HashMapInterface { diff --git a/app/code/Magento/Checkout/Api/PaymentProcessingRateLimiterInterface.php b/app/code/Magento/Checkout/Api/PaymentProcessingRateLimiterInterface.php index d81b79fc8e201..8af18c623d7a4 100644 --- a/app/code/Magento/Checkout/Api/PaymentProcessingRateLimiterInterface.php +++ b/app/code/Magento/Checkout/Api/PaymentProcessingRateLimiterInterface.php @@ -12,6 +12,8 @@ /** * Limits number of times a user can initiate payment processing. + * + * @api */ interface PaymentProcessingRateLimiterInterface { diff --git a/app/code/Magento/Checkout/Controller/Express/RedirectLoginInterface.php b/app/code/Magento/Checkout/Controller/Express/RedirectLoginInterface.php index a5777766c3949..e2ed0efc82b96 100644 --- a/app/code/Magento/Checkout/Controller/Express/RedirectLoginInterface.php +++ b/app/code/Magento/Checkout/Controller/Express/RedirectLoginInterface.php @@ -3,11 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Checkout\Controller\Express; /** * Interface \Magento\Checkout\Controller\Express\RedirectLoginInterface * + * @api */ interface RedirectLoginInterface { diff --git a/app/code/Magento/Checkout/CustomerData/ItemPoolInterface.php b/app/code/Magento/Checkout/CustomerData/ItemPoolInterface.php index 95c62a7436e52..7f29828e992f8 100644 --- a/app/code/Magento/Checkout/CustomerData/ItemPoolInterface.php +++ b/app/code/Magento/Checkout/CustomerData/ItemPoolInterface.php @@ -3,6 +3,7 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); namespace Magento\Checkout\CustomerData; @@ -10,6 +11,8 @@ /** * Item pool interface + * + * @api */ interface ItemPoolInterface { diff --git a/app/code/Magento/CheckoutAgreements/Model/AgreementsProviderInterface.php b/app/code/Magento/CheckoutAgreements/Model/AgreementsProviderInterface.php index eac3e44dc0de8..1175baa0d56ff 100644 --- a/app/code/Magento/CheckoutAgreements/Model/AgreementsProviderInterface.php +++ b/app/code/Magento/CheckoutAgreements/Model/AgreementsProviderInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\CheckoutAgreements\Model; /** * Interface AgreementsProviderInterface + * + * @api */ interface AgreementsProviderInterface { diff --git a/app/code/Magento/Cms/Model/Page/CustomLayout/Data/CustomLayoutSelectedInterface.php b/app/code/Magento/Cms/Model/Page/CustomLayout/Data/CustomLayoutSelectedInterface.php index 68bac57e98d56..8be2af29a9263 100644 --- a/app/code/Magento/Cms/Model/Page/CustomLayout/Data/CustomLayoutSelectedInterface.php +++ b/app/code/Magento/Cms/Model/Page/CustomLayout/Data/CustomLayoutSelectedInterface.php @@ -10,6 +10,8 @@ /** * Custom layout update file to be used for the specific CMS page. + * + * @api */ interface CustomLayoutSelectedInterface { diff --git a/app/code/Magento/Cms/Model/Page/CustomLayoutManagerInterface.php b/app/code/Magento/Cms/Model/Page/CustomLayoutManagerInterface.php index 6f15fcef7f8f4..29da6b3cedb81 100644 --- a/app/code/Magento/Cms/Model/Page/CustomLayoutManagerInterface.php +++ b/app/code/Magento/Cms/Model/Page/CustomLayoutManagerInterface.php @@ -14,6 +14,8 @@ /** * Manage custom layout files for CMS pages. + * + * @api */ interface CustomLayoutManagerInterface { diff --git a/app/code/Magento/Cms/Model/Page/CustomLayoutRepositoryInterface.php b/app/code/Magento/Cms/Model/Page/CustomLayoutRepositoryInterface.php index 80eb39b7ab20f..e390e957e826f 100644 --- a/app/code/Magento/Cms/Model/Page/CustomLayoutRepositoryInterface.php +++ b/app/code/Magento/Cms/Model/Page/CustomLayoutRepositoryInterface.php @@ -14,6 +14,8 @@ /** * Access to "custom layout" page property. + * + * @api */ interface CustomLayoutRepositoryInterface { diff --git a/app/code/Magento/Cms/Model/PageRepository/ValidatorInterface.php b/app/code/Magento/Cms/Model/PageRepository/ValidatorInterface.php index ff5c7648a9fa2..333c82c4f8c14 100644 --- a/app/code/Magento/Cms/Model/PageRepository/ValidatorInterface.php +++ b/app/code/Magento/Cms/Model/PageRepository/ValidatorInterface.php @@ -13,6 +13,8 @@ /** * Validate a page repository + * + * @api */ interface ValidatorInterface { diff --git a/app/code/Magento/Cms/Ui/Component/AddFilterInterface.php b/app/code/Magento/Cms/Ui/Component/AddFilterInterface.php index 406b40fbc1647..d4c3338b4ca71 100644 --- a/app/code/Magento/Cms/Ui/Component/AddFilterInterface.php +++ b/app/code/Magento/Cms/Ui/Component/AddFilterInterface.php @@ -12,6 +12,8 @@ /** * Provides extension point to add additional filters to search criteria. + * + * @api */ interface AddFilterInterface { diff --git a/app/code/Magento/ConfigurableProduct/Model/ResourceModel/Attribute/OptionSelectBuilderInterface.php b/app/code/Magento/ConfigurableProduct/Model/ResourceModel/Attribute/OptionSelectBuilderInterface.php index 400d89b836e5e..c33fbc86fa823 100644 --- a/app/code/Magento/ConfigurableProduct/Model/ResourceModel/Attribute/OptionSelectBuilderInterface.php +++ b/app/code/Magento/ConfigurableProduct/Model/ResourceModel/Attribute/OptionSelectBuilderInterface.php @@ -3,6 +3,8 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\ConfigurableProduct\Model\ResourceModel\Attribute; use Magento\Eav\Model\Entity\Attribute\AbstractAttribute; @@ -11,6 +13,8 @@ /** * Interface to build select for retrieving configurable options. + * + * @api */ interface OptionSelectBuilderInterface { From b0db38c0bf8cad9171de776a3d49ee75e9d257e0 Mon Sep 17 00:00:00 2001 From: Oleh Usik Date: Thu, 25 Feb 2021 15:40:52 +0200 Subject: [PATCH 20/20] minor adjustments --- .../CatalogGraphQl/Model/Resolver/Products/SearchResult.php | 2 ++ app/code/Magento/GraphQl/Model/Query/ContextInterface.php | 2 ++ .../Magento/Framework/Api/Search/AggregationInterface.php | 4 ++++ .../Magento/Framework/GraphQl/Schema/Type/ResolveInfo.php | 2 ++ 4 files changed, 10 insertions(+) diff --git a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/SearchResult.php b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/SearchResult.php index e4a137413b4c5..6b5c8b126832c 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/SearchResult.php +++ b/app/code/Magento/CatalogGraphQl/Model/Resolver/Products/SearchResult.php @@ -11,6 +11,8 @@ /** * Container for a product search holding the item result and the array in the GraphQL-readable product type format. + * + * @api */ class SearchResult { 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/lib/internal/Magento/Framework/Api/Search/AggregationInterface.php b/lib/internal/Magento/Framework/Api/Search/AggregationInterface.php index 5f02006b1f1a3..fa72a2573dfd0 100644 --- a/lib/internal/Magento/Framework/Api/Search/AggregationInterface.php +++ b/lib/internal/Magento/Framework/Api/Search/AggregationInterface.php @@ -3,10 +3,14 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ +declare(strict_types=1); + namespace Magento\Framework\Api\Search; /** * Faceted data + * + * @api */ interface AggregationInterface { diff --git a/lib/internal/Magento/Framework/GraphQl/Schema/Type/ResolveInfo.php b/lib/internal/Magento/Framework/GraphQl/Schema/Type/ResolveInfo.php index fe479c9a0bae6..19f573a3c28ae 100644 --- a/lib/internal/Magento/Framework/GraphQl/Schema/Type/ResolveInfo.php +++ b/lib/internal/Magento/Framework/GraphQl/Schema/Type/ResolveInfo.php @@ -9,6 +9,8 @@ /** * Wrapper for GraphQl ResolveInfo + * + * @api */ class ResolveInfo extends \GraphQL\Type\Definition\ResolveInfo {