Skip to content

Commit 34e8722

Browse files
author
Gabriel Galvao da Gama
committed
Merge remote-tracking branch 'magento-engcom/imported-magento-magento2-32101' into api-changes-delivery
2 parents eb86898 + 3ec2374 commit 34e8722

32 files changed

+78
-20
lines changed

lib/internal/Magento/Framework/GraphQl/Config/ConfigElementFactoryInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* Responsible for translating data produced by configuration readers to config objects
12+
*
13+
* @api
1214
*/
1315
interface ConfigElementFactoryInterface
1416
{

lib/internal/Magento/Framework/GraphQl/Config/ConfigElementInterface.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@
99

1010
/**
1111
* GraphQL config element.
12+
*
13+
* @api
1214
*/
1315
interface ConfigElementInterface
1416
{
1517
/**
1618
* @return string
1719
*/
18-
public function getName() : string;
20+
public function getName(): string;
1921

2022
/**
2123
* @return string
2224
*/
23-
public function getDescription() : string;
25+
public function getDescription(): string;
2426
}

lib/internal/Magento/Framework/GraphQl/Config/Element/Field.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* Class representing 'field' GraphQL config element.
1212
*
1313
* Fields are used to describe possible values for a type/interface.
14+
*
15+
* @api
1416
*/
1517
class Field implements OutputFieldInterface
1618
{

lib/internal/Magento/Framework/GraphQl/Config/Element/FieldInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Defines contract for fields data as GraphQL objects.
14+
*
15+
* @api
1416
*/
1517
interface FieldInterface extends ConfigElementInterface
1618
{
@@ -19,7 +21,7 @@ interface FieldInterface extends ConfigElementInterface
1921
*
2022
* @return string
2123
*/
22-
public function getTypeName() : string;
24+
public function getTypeName(): string;
2325

2426
/**
2527
* Return true if argument is a list of input items, otherwise false if it is a single object/scalar.

lib/internal/Magento/Framework/GraphQl/Config/Element/OutputFieldInterface.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* Defines contract for output fields data as GraphQL objects.
12+
*
13+
* @api
1214
*/
1315
interface OutputFieldInterface extends FieldInterface
1416
{
@@ -17,12 +19,12 @@ interface OutputFieldInterface extends FieldInterface
1719
*
1820
* @return string
1921
*/
20-
public function getResolver() : string;
22+
public function getResolver(): string;
2123

2224
/**
2325
* Get the list of arguments configured for the field. Return an empty array if no arguments are configured.
2426
*
2527
* @return Argument[]
2628
*/
27-
public function getArguments() : array;
29+
public function getArguments(): array;
2830
}

lib/internal/Magento/Framework/GraphQl/Config/Element/TypeInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Defines contracts for return type data as GraphQL objects.
14+
*
15+
* @api
1416
*/
1517
interface TypeInterface extends ConfigElementInterface
1618
{
@@ -19,5 +21,5 @@ interface TypeInterface extends ConfigElementInterface
1921
*
2022
* @return Field[]
2123
*/
22-
public function getFields() : array;
24+
public function getFields(): array;
2325
}

lib/internal/Magento/Framework/GraphQl/Config/Element/UnionInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Defines the contract for the union configuration data type.
14+
*
15+
* @api
1416
*/
1517
interface UnionInterface extends ConfigElementInterface
1618
{

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
/**
1313
* Access all GraphQL type information declared in the schema's configuration.
14-
*
1514
* Data includes types, interfaces they implement, their arguments, and fields.
15+
*
16+
* @api
1617
*/
1718
interface ConfigInterface
1819
{
@@ -22,7 +23,7 @@ interface ConfigInterface
2223
* @param string $configElementName
2324
* @return ConfigElementInterface
2425
*/
25-
public function getConfigElement(string $configElementName) : ConfigElementInterface;
26+
public function getConfigElement(string $configElementName): ConfigElementInterface;
2627

2728
/**
2829
* Return all type names declared in a GraphQL schema's configuration and their type.
@@ -31,5 +32,5 @@ public function getConfigElement(string $configElementName) : ConfigElementInter
3132
*
3233
* @return array $types
3334
*/
34-
public function getDeclaredTypes() : array;
35+
public function getDeclaredTypes(): array;
3536
}

lib/internal/Magento/Framework/GraphQl/Query/ErrorHandlerInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*
1515
* GraphQL error handler
1616
*
17+
* @api
1718
* @see \Magento\Framework\GraphQl\Query\QueryProcessor
1819
*/
1920
interface ErrorHandlerInterface

lib/internal/Magento/Framework/GraphQl/Query/Resolver/Argument/FieldEntityAttributesInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* Contract for the classes that retrieve attributes for a given entity configured in @see FieldEntityAttributesPool.
12+
*
13+
* @api
1214
*/
1315
interface FieldEntityAttributesInterface
1416
{
@@ -17,5 +19,5 @@ interface FieldEntityAttributesInterface
1719
*
1820
* @return array
1921
*/
20-
public function getEntityAttributes() : array;
22+
public function getEntityAttributes(): array;
2123
}

0 commit comments

Comments
 (0)