From 4e14f205ee7d52699735be7cb4017747300d5059 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sat, 21 Oct 2023 09:45:12 +0900 Subject: [PATCH] Format comments --- src/Definition/EntityID.php | 11 +++-------- src/Definition/EntityIDType.php | 12 ++++++------ src/Definition/Operator/AbstractOperator.php | 3 --- 3 files changed, 9 insertions(+), 17 deletions(-) diff --git a/src/Definition/EntityID.php b/src/Definition/EntityID.php index 27787ac..44a7ae7 100644 --- a/src/Definition/EntityID.php +++ b/src/Definition/EntityID.php @@ -8,24 +8,19 @@ use GraphQL\Error\UserError; /** - * A object used to fetch the entity from DB on demand. + * An object used to fetch the entity from DB on demand. * * @template T of object */ class EntityID { /** - * @param class-string $className + * @param class-string $className the entity class name + * @param null|string $id the entity id */ public function __construct( private readonly EntityManager $entityManager, - /** - * The entity class name. - */ private readonly string $className, - /** - * The entity id. - */ private readonly ?string $id ) { } diff --git a/src/Definition/EntityIDType.php b/src/Definition/EntityIDType.php index a9c7e3c..17c86e7 100644 --- a/src/Definition/EntityIDType.php +++ b/src/Definition/EntityIDType.php @@ -18,13 +18,13 @@ final class EntityIDType extends ScalarType { /** - * @param class-string $className + * @param class-string $className The entity class name */ - public function __construct(private readonly EntityManager $entityManager, /** - * The entity class name. - */ - private readonly string $className, string $typeName) - { + public function __construct( + private readonly EntityManager $entityManager, + private readonly string $className, + string $typeName + ) { $this->name = $typeName; $this->description = 'Automatically generated type to be used as input where an object of type `' . Utils::getTypeName($className) . '` is needed'; diff --git a/src/Definition/Operator/AbstractOperator.php b/src/Definition/Operator/AbstractOperator.php index a48d846..1d90a12 100644 --- a/src/Definition/Operator/AbstractOperator.php +++ b/src/Definition/Operator/AbstractOperator.php @@ -20,9 +20,6 @@ abstract class AbstractOperator extends InputObjectType { final public function __construct( - /** - * Types registry. - */ protected Types $types, LeafType $leafType ) {