-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
RootAddCommentToCustomPostMutationErrorPayloadUnionTypeResolver.php
executable file
·42 lines (34 loc) · 2.27 KB
/
RootAddCommentToCustomPostMutationErrorPayloadUnionTypeResolver.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
declare(strict_types=1);
namespace PoPCMSSchema\CommentMutations\TypeResolvers\UnionType;
use PoPCMSSchema\CommentMutations\RelationalTypeDataLoaders\UnionType\RootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader;
use PoP\ComponentModel\RelationalTypeDataLoaders\RelationalTypeDataLoaderInterface;
class RootAddCommentToCustomPostMutationErrorPayloadUnionTypeResolver extends AbstractCommentMutationErrorPayloadUnionTypeResolver
{
private ?RootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader $rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader = null;
final public function setRootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader(RootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader $rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader): void
{
$this->rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader = $rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader;
}
final protected function getRootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader(): RootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader
{
if ($this->rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader === null) {
/** @var RootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader */
$rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader = $this->instanceManager->getInstance(RootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader::class);
$this->rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader = $rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader;
}
return $this->rootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader;
}
public function getTypeName(): string
{
return 'RootAddCommentToCustomPostMutationErrorPayloadUnion';
}
public function getTypeDescription(): ?string
{
return $this->__('Union of \'Error Payload\' types when adding a comment to a custom post', 'comment-mutations');
}
public function getRelationalTypeDataLoader(): RelationalTypeDataLoaderInterface
{
return $this->getRootAddCommentToCustomPostMutationErrorPayloadUnionTypeDataLoader();
}
}