1 | <?php |
||
11 | class TdbmFluidColumnGraphqlOptions |
||
12 | { |
||
13 | /** |
||
14 | * @var TdbmFluidColumnOptions |
||
15 | */ |
||
16 | private $tdbmFluidColumnOptions; |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $name; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $outputType; |
||
25 | /** |
||
26 | * @var FluidColumn |
||
27 | */ |
||
28 | private $fluidColumn; |
||
29 | |||
30 | public function __construct(TdbmFluidColumnOptions $tdbmFluidColumnOptions, FluidColumn $fluidColumn) |
||
38 | |||
39 | private function getComment(): Comment |
||
45 | |||
46 | public function fieldName(string $name): self |
||
52 | |||
53 | public function outputType(string $outputType): self |
||
59 | |||
60 | private function generateFieldAnnotation(): void |
||
84 | |||
85 | public function logged(bool $mustBeLogged = true): self |
||
94 | |||
95 | public function right(string $rightName): self |
||
100 | |||
101 | public function failWith($value): self |
||
106 | |||
107 | /** |
||
108 | * @param string $annotation |
||
109 | * @param mixed $content |
||
110 | * @param bool $replaceExisting |
||
111 | * @return TdbmFluidColumnGraphqlOptions |
||
112 | */ |
||
113 | public function addAnnotation(string $annotation, $content = null, bool $replaceExisting = true, bool $explicitNull = false): self |
||
118 | |||
119 | public function removeAnnotation(string $annotation): self |
||
124 | |||
125 | public function endGraphql(): TdbmFluidColumnOptions |
||
129 | |||
130 | public function column(string $name): TdbmFluidColumn |
||
134 | } |
||
135 |