Skip to content
3 changes: 3 additions & 0 deletions app/code/Magento/Customer/Controller/RegistryConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Customer\Controller;

/**
* Declarations of core registry keys used by the Customer module
*
* @api
*/
class RegistryConstants
{
Expand Down
7 changes: 7 additions & 0 deletions app/code/Magento/Customer/Model/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Customer\Model;

/**
* Class Context
*
* @api
*/
class Context
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Sales\Model\ResourceModel\Order\Collection;

/**
* Class Factory
*
* @api
*/
class Factory
{
/**
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Shipping/Model/Carrier/CarrierInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Shipping\Model\Carrier;

/**
* Interface \Magento\Shipping\Model\Carrier\CarrierInterface
*
* @api
*/
interface CarrierInterface
{
Expand Down
4 changes: 4 additions & 0 deletions app/code/Magento/Ui/Component/Layout/Tabs/TabInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Ui\Component\Layout\Tabs;

/**
* Interface TabInterface
*
* @api
*/
interface TabInterface
{
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/Widget/Block/BlockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

/**
* Widget Block Interface
*
* @author Magento Core Team <[email protected]>
* @api
*/
namespace Magento\Widget\Block;

Expand Down
4 changes: 4 additions & 0 deletions lib/internal/Magento/Framework/Api/AbstractSimpleObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Api;

/**
* Base Class for simple data Objects
* @SuppressWarnings(PHPMD.NumberOfChildren)
*
* @api
*/
abstract class AbstractSimpleObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* Marker for actions processing GET requests.
*
* @api
*/
interface HttpGetActionInterface extends HttpHeadActionInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* Marker for actions processing POST requests.
*
* @api
*/
interface HttpPostActionInterface extends ActionInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* Action that's aware of CSRF protection.
*
* @api
*/
interface CsrfAwareActionInterface extends ActionInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\App\Filesystem;

use Magento\Framework\Code\Generator\Io;

/**
* A Magento application specific list of directories
*
* @api
*/
class DirectoryList extends \Magento\Framework\Filesystem\DirectoryList
{
Expand Down
4 changes: 4 additions & 0 deletions lib/internal/Magento/Framework/App/Http/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\App\Http;

use Magento\Framework\App\ObjectManager;
use Magento\Framework\Serialize\Serializer\Json;

/**
* Context data for requests
*
* @api
*/
class Context
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

/**
* Received request is invalid.
*
* @api
*/
class InvalidRequestException extends RuntimeException
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Class FileFactory serves to declare file content in response for download.
*
* @api
*/
class FileFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\App\Response;

/**
* Interface \Magento\Framework\App\Response\RedirectInterface
*
* @api
*/
interface RedirectInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Controller\Result;

/**
* Factory class for @see \Magento\Framework\Controller\Result\Json
*
* @api
*/
class JsonFactory
{
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Controller/Result/Raw.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Controller\Result;

Expand All @@ -12,6 +13,8 @@
/**
* A result that contains raw response - may be good for passing through files,
* returning result of downloads or some other binary contents
*
* @api
*/
class Raw extends AbstractResult
{
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Data/FormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Data;

/**
* Form factory class
*
* @api
*/
class FormFactory
{
Expand Down
7 changes: 7 additions & 0 deletions lib/internal/Magento/Framework/DataObject/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\DataObject;

/**
* Class Factory
*
* @api
*/
class Factory
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\DataObject;

/**
* Interface for
* 1. models which require cache refresh when it is created/updated/deleted
* 2. blocks which render this information to front-end
*
* @api
*/
interface IdentityInterface
{
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Event/ManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Event;

/**
* Interface \Magento\Framework\Event\ManagerInterface
*
* @api
*/
interface ManagerInterface
{
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Filesystem/DirectoryList.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Filesystem;

Expand All @@ -21,6 +22,8 @@
* This object is intended to be immutable (a "value object").
* The defaults are pre-defined and can be modified only by inheritors of this class.
* Through the constructor, it is possible to inject custom paths or URL paths, but impossible to inject new types.
*
* @api
*/
class DirectoryList
{
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/Magento/Framework/Logger/Handler/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\Logger\Handler;

Expand All @@ -13,6 +14,8 @@

/**
* Base stream handler
*
* @api
*/
class Base extends StreamHandler
{
Expand Down
4 changes: 4 additions & 0 deletions lib/internal/Magento/Framework/View/Element/Html/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\View\Element\Html;

/**
* HTML select element block
*
* @api
*/
class Select extends \Magento\Framework\View\Element\AbstractBlock
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\View\Element\UiComponent;

use Magento\Framework\View\Element\UiComponentInterface;
Expand All @@ -13,6 +15,8 @@

/**
* Interface ContextInterface
*
* @api
*/
interface ContextInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\View\Element\UiComponent\Control;

/**
* Interface ButtonProviderInterface
*
* @api
*/
interface ButtonProviderInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Framework\View\Element\UiComponent\DataProvider;

use Magento\Framework\Api\FilterBuilder;
Expand All @@ -14,6 +16,8 @@

/**
* Class DataProvider
*
* @api
*/
class DataProvider implements DataProviderInterface
{
Expand Down
Loading