File tree Expand file tree Collapse file tree 3 files changed +9
-17
lines changed Expand file tree Collapse file tree 3 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 8
8
use GraphQL \Error \UserError ;
9
9
10
10
/**
11
- * A object used to fetch the entity from DB on demand.
11
+ * An object used to fetch the entity from DB on demand.
12
12
*
13
13
* @template T of object
14
14
*/
15
15
class EntityID
16
16
{
17
17
/**
18
- * @param class-string<T> $className
18
+ * @param class-string<T> $className the entity class name
19
+ * @param null|string $id the entity id
19
20
*/
20
21
public function __construct (
21
22
private readonly EntityManager $ entityManager ,
22
- /**
23
- * The entity class name.
24
- */
25
23
private readonly string $ className ,
26
- /**
27
- * The entity id.
28
- */
29
24
private readonly ?string $ id
30
25
) {
31
26
}
Original file line number Diff line number Diff line change 18
18
final class EntityIDType extends ScalarType
19
19
{
20
20
/**
21
- * @param class-string $className
21
+ * @param class-string $className The entity class name
22
22
*/
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
+ ) {
28
28
$ this ->name = $ typeName ;
29
29
$ this ->description = 'Automatically generated type to be used as input where an object of type ` ' . Utils::getTypeName ($ className ) . '` is needed ' ;
30
30
Original file line number Diff line number Diff line change 20
20
abstract class AbstractOperator extends InputObjectType
21
21
{
22
22
final public function __construct (
23
- /**
24
- * Types registry.
25
- */
26
23
protected Types $ types ,
27
24
LeafType $ leafType
28
25
) {
You can’t perform that action at this time.
0 commit comments