Skip to content

Commit 4e14f20

Browse files
committed
Format comments
1 parent 9b0cfdb commit 4e14f20

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

src/Definition/EntityID.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,19 @@
88
use GraphQL\Error\UserError;
99

1010
/**
11-
* A object used to fetch the entity from DB on demand.
11+
* An object used to fetch the entity from DB on demand.
1212
*
1313
* @template T of object
1414
*/
1515
class EntityID
1616
{
1717
/**
18-
* @param class-string<T> $className
18+
* @param class-string<T> $className the entity class name
19+
* @param null|string $id the entity id
1920
*/
2021
public function __construct(
2122
private readonly EntityManager $entityManager,
22-
/**
23-
* The entity class name.
24-
*/
2523
private readonly string $className,
26-
/**
27-
* The entity id.
28-
*/
2924
private readonly ?string $id
3025
) {
3126
}

src/Definition/EntityIDType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
final class EntityIDType extends ScalarType
1919
{
2020
/**
21-
* @param class-string $className
21+
* @param class-string $className The entity class name
2222
*/
23-
public function __construct(private readonly EntityManager $entityManager, /**
24-
* The entity class name.
25-
*/
26-
private readonly string $className, string $typeName)
27-
{
23+
public function __construct(
24+
private readonly EntityManager $entityManager,
25+
private readonly string $className,
26+
string $typeName
27+
) {
2828
$this->name = $typeName;
2929
$this->description = 'Automatically generated type to be used as input where an object of type `' . Utils::getTypeName($className) . '` is needed';
3030

src/Definition/Operator/AbstractOperator.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
abstract class AbstractOperator extends InputObjectType
2121
{
2222
final public function __construct(
23-
/**
24-
* Types registry.
25-
*/
2623
protected Types $types,
2724
LeafType $leafType
2825
) {

0 commit comments

Comments
 (0)