Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[32017] Marked Directory, Downloadable, Eav and Elasticsearch interfaces as API #32161

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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\Directory\Model\Country\Postcode;

/**
* Configured postcode validation patterns
*
* @api
*/
interface ConfigInterface
{
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\Directory\Model\Country\Postcode;

/**
* Interface \Magento\Directory\Model\Country\Postcode\ValidatorInterface
*
* @api
*/
interface ValidatorInterface
{
Expand Down
4 changes: 4 additions & 0 deletions app/code/Magento/Downloadable/Api/DomainManagerInterface.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\Downloadable\Api;

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

namespace Magento\Downloadable\Pricing\Price;

use Magento\Downloadable\Model\Link;

/**
* Class LinkPrice Model
*
* @api
*/
interface LinkPriceInterface
{
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\Eav\Model\Entity\Attribute;

/**
* Interface \Magento\Eav\Model\Entity\Attribute\AttributeInterface
*
* @api
*/
interface AttributeInterface
{
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\Eav\Model\Entity\Attribute\Backend;

/**
Expand All @@ -11,6 +13,7 @@
* Backend is responsible for saving the values of the attribute
* and performing pre and post actions
*
* @api
*/
interface BackendInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* Can provide entity-specific options for an attribute.
*
* @api
*/
interface SpecificSourceInterface extends SourceInterface
{
Expand Down
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\Eav\Model\Entity\Attribute;

use Magento\Framework\DataObject;
use Magento\Eav\Model\Entity\AbstractEntity;

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

namespace Magento\Eav\Model\Entity;

use Magento\Framework\DataObject;

/**
* Interface AttributeLoaderInterface
*
* @api
*/
interface AttributeLoaderInterface
{
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\Eav\Model\Entity\Setup;

/**
* Interface \Magento\Eav\Model\Entity\Setup\PropertyMapperInterface
*
* @api
*/
interface PropertyMapperInterface
{
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\Eav\Model\ResourceModel\Attribute\DefaultEntityAttributes;

/**
* Interface \Magento\Eav\Model\ResourceModel\Attribute\DefaultEntityAttributes\ProviderInterface
*
* @api
*/
interface ProviderInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Product attribute adapter for elasticsearch context.
*
* @api
*/
class AttributeAdapter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* Field type converter from internal index value to elastic service.
*
* @api
*/
interface ConverterInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Field index type resolver interface.
*
* @api
*/
interface ResolverInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Field name resolver for preparing field key for elasticsearch mapping by attribute.
*
* @api
*/
interface ResolverInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* Field type resolver interface.
*
* @api
*/
interface ResolverInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
/**
* Product fields provider.
* Provide fields mapping configuration for elasticsearch service of internal product attributes.
*
* @api
*/
interface FieldProviderInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* Modifies fields mapping before save
*
* @api
*/
interface FieldsMappingPreprocessorInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* Value transformer of search term for matching with ES field types.
*
* @api
*/
interface ValueTransformerInterface
{
Expand Down
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\Elasticsearch\SearchAdapter;

Expand All @@ -13,6 +14,8 @@
* Its goal is to mark the fact that a class which implements this interface requires
* the QueryContainer object to be passed as constructor argument
* with the name 'queryContainer' to work properly
*
* @api
*/
interface QueryAwareInterface
{
Expand Down