1 | <?php |
||
10 | class TdbmFluidColumnGraphqlOptions |
||
11 | { |
||
12 | /** |
||
13 | * @var TdbmFluidColumnOptions |
||
14 | */ |
||
15 | private $tdbmFluidColumnOptions; |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $name; |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $outputType; |
||
24 | |||
25 | public function __construct(TdbmFluidColumnOptions $tdbmFluidColumnOptions) |
||
29 | |||
30 | public function fieldName(string $name): self |
||
36 | |||
37 | public function outputType(string $outputType): self |
||
43 | |||
44 | private function generateFieldAnnotation(): void |
||
55 | |||
56 | public function logged(bool $mustBeLogged = true): self |
||
65 | |||
66 | public function right(string $rightName): self |
||
71 | |||
72 | public function failWith($value): self |
||
77 | |||
78 | /** |
||
79 | * @param string $annotation |
||
80 | * @param mixed $content |
||
81 | * @param bool $replaceExisting |
||
82 | * @return TdbmFluidColumnGraphqlOptions |
||
83 | */ |
||
84 | public function addAnnotation(string $annotation, $content = null, bool $replaceExisting = true, bool $explicitNull = false): self |
||
89 | |||
90 | public function removeAnnotation(string $annotation): self |
||
95 | |||
96 | public function endGraphql(): TdbmFluidColumnOptions |
||
100 | |||
101 | public function column(string $name): TdbmFluidColumn |
||
105 | } |
||
106 |