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 88use 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 */
1515class 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 }
Original file line number Diff line number Diff line change 1818final 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
Original file line number Diff line number Diff line change 2020abstract class AbstractOperator extends InputObjectType
2121{
2222 final public function __construct (
23- /**
24- * Types registry.
25- */
2623 protected Types $ types ,
2724 LeafType $ leafType
2825 ) {
You can’t perform that action at this time.
0 commit comments