Skip to content

Commit

Permalink
OXDEV-8215: Add missing docblocks for DataTypeInterfaces;
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed Aug 7, 2024
1 parent 0fdb4c2 commit 2ca2426
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Module/Controller/ModuleListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use OxidEsales\GraphQL\ConfigurationAccess\Module\DataType\ModuleDataTypeInterface;
use OxidEsales\GraphQL\ConfigurationAccess\Module\Service\ModuleListServiceInterface;
use OxidEsales\GraphQL\ConfigurationAccess\Shared\DataType\ComponentFilters;
use OxidEsales\GraphQL\ConfigurationAccess\Shared\DataType\ComponentFiltersInterface;
use TheCodingMachine\GraphQLite\Annotations\Logged;
use TheCodingMachine\GraphQLite\Annotations\Query;
use TheCodingMachine\GraphQLite\Annotations\Right;
Expand Down
8 changes: 8 additions & 0 deletions src/Module/DataType/ModuleDataTypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,24 @@
namespace OxidEsales\GraphQL\ConfigurationAccess\Module\DataType;

use OxidEsales\GraphQL\ConfigurationAccess\Shared\DataType\ComponentDataTypeInterface;
use TheCodingMachine\GraphQLite\Annotations\Field;
use TheCodingMachine\GraphQLite\Annotations\Type;

#[Type]
interface ModuleDataTypeInterface extends ComponentDataTypeInterface
{
#[Field]
public function getThumbnail(): ?string;

#[Field]
public function getAuthor(): ?string;

#[Field]
public function getUrl(): ?string;

#[Field]
public function getEmail(): ?string;

#[Field]
public function isActive(): bool;
}
9 changes: 9 additions & 0 deletions src/Shared/DataType/ComponentDataTypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,24 @@

namespace OxidEsales\GraphQL\ConfigurationAccess\Shared\DataType;

use TheCodingMachine\GraphQLite\Annotations\Field;
use TheCodingMachine\GraphQLite\Annotations\Type;

#[Type]
interface ComponentDataTypeInterface
{
#[Field]
public function getId(): string;

#[Field]
public function getTitle(): string;

#[Field]
public function getVersion(): string;

#[Field]
public function getDescription(): string;

#[Field]
public function isActive(): bool;
}
2 changes: 2 additions & 0 deletions src/Theme/DataType/ThemeDataTypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
namespace OxidEsales\GraphQL\ConfigurationAccess\Theme\DataType;

use OxidEsales\GraphQL\ConfigurationAccess\Shared\DataType\ComponentDataTypeInterface;
use TheCodingMachine\GraphQLite\Annotations\Type;

#[Type]
interface ThemeDataTypeInterface extends ComponentDataTypeInterface
{
}

0 comments on commit 2ca2426

Please sign in to comment.