Skip to content

Commit

Permalink
Format comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Oct 21, 2023
1 parent 9b0cfdb commit 4e14f20
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
11 changes: 3 additions & 8 deletions src/Definition/EntityID.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> $className
* @param class-string<T> $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
) {
}
Expand Down
12 changes: 6 additions & 6 deletions src/Definition/EntityIDType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
3 changes: 0 additions & 3 deletions src/Definition/Operator/AbstractOperator.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
abstract class AbstractOperator extends InputObjectType
{
final public function __construct(
/**
* Types registry.
*/
protected Types $types,
LeafType $leafType
) {
Expand Down

0 comments on commit 4e14f20

Please sign in to comment.