Skip to content

Commit eedf8fc

Browse files
committed
Mark Framework Interfaces as API part 3
fix static update update fix non-public references revert change return value interface
1 parent be82efb commit eedf8fc

35 files changed

+130
-20
lines changed

lib/internal/Magento/Framework/Api/CriteriaInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\Api;
79

810
/**
911
* Interface CriteriaInterface
12+
*
13+
* @api
1014
*/
1115
interface CriteriaInterface
1216
{

lib/internal/Magento/Framework/Async/CancelableDeferredInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Framework\Async;
109

1110
/**
1211
* Described deferred operation that can be canceled.
12+
*
13+
* @api
1314
*/
1415
interface CancelableDeferredInterface extends DeferredInterface
1516
{

lib/internal/Magento/Framework/Async/DeferredInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
declare(strict_types=1);
87

98
namespace Magento\Framework\Async;
109

1110
/**
1211
* Describes a value that will be available at later time.
12+
*
13+
* @api
1314
*/
1415
interface DeferredInterface
1516
{

lib/internal/Magento/Framework/Autoload/AutoloaderInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\Autoload;
79

810
/**
911
* Interface for an autoloader class that allows the dynamic modification of PSR-0 and PSR-4 mappings
12+
*
13+
* @api
1014
*/
1115
interface AutoloaderInterface
1216
{

lib/internal/Magento/Framework/Backup/SourceFileInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Framework\Backup;
69

710
/**
811
* Interface for work with archives
912
*
10-
* @author Magento Core Team <core@magentocommerce.com>
13+
* @api
1114
*/
12-
13-
namespace Magento\Framework\Backup;
14-
1515
interface SourceFileInterface
1616
{
1717

lib/internal/Magento/Framework/Cache/ConfigInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22
/**
3-
* Cache configuration model. Provides cache configuration data to the application
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
6+
declare(strict_types=1);
7+
88
namespace Magento\Framework\Cache;
99

1010
/**
1111
* Interface \Magento\Framework\Cache\ConfigInterface
1212
*
13+
* @api
1314
*/
1415
interface ConfigInterface
1516
{

lib/internal/Magento/Framework/Cache/StaleCacheNotifierInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Framework\Cache;
89

910
/**
1011
* Notifier for stale cache retrieval detection
12+
*
13+
* @api
1114
*/
1215
interface StaleCacheNotifierInterface
1316
{

lib/internal/Magento/Framework/Code/Generator/CodeGeneratorInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Framework\Code\Generator;
79

810
/**
911
* Interface \Magento\Framework\Code\Generator\CodeGeneratorInterface
1012
*
13+
* @api
1114
*/
1215
interface CodeGeneratorInterface extends \Laminas\Code\Generator\GeneratorInterface
1316
{

lib/internal/Magento/Framework/Code/Minifier/AdapterInterface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

7-
/**
8-
* Interface for minification adapters
9-
*/
108
namespace Magento\Framework\Code\Minifier;
119

1210
/**
1311
* Interface \Magento\Framework\Code\Minifier\AdapterInterface
1412
*
13+
* @api
1514
*/
1615
interface AdapterInterface
1716
{

lib/internal/Magento/Framework/Code/Reader/ClassReaderInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
6+
declare(strict_types=1);
77

88
namespace Magento\Framework\Code\Reader;
99

1010
/**
1111
* Interface \Magento\Framework\Code\Reader\ClassReaderInterface
1212
*
13+
* @api
1314
*/
1415
interface ClassReaderInterface
1516
{

0 commit comments

Comments
 (0)