1 | <?php |
||
11 | class TdbmFluidColumnJsonOptions |
||
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) |
||
35 | |||
36 | private function getComment(): Comment |
||
42 | |||
43 | public function key(string $name): self |
||
48 | |||
49 | public function datetimeFormat(string $format): self |
||
54 | |||
55 | /** |
||
56 | * @param int|null $decimals The number of decimals |
||
57 | * @param string|null $point The decimal point |
||
58 | * @param string|null $separator The thousands separator |
||
59 | * @param string|null $unit The suffix to append after a number |
||
60 | */ |
||
61 | public function numericFormat(?int $decimals = null, ?string $point = null, ?string $separator = null, ?string $unit = null): self |
||
79 | |||
80 | /** |
||
81 | * Serialize in JSON by getting the property from an object. |
||
82 | */ |
||
83 | public function formatUsingProperty(string $property): self |
||
88 | |||
89 | /** |
||
90 | * Serialize in JSON by calling a method from an object. |
||
91 | */ |
||
92 | public function formatUsingMethod(string $method): self |
||
97 | |||
98 | public function ignore(): self |
||
103 | |||
104 | public function include(): self |
||
109 | |||
110 | public function recursive(): self |
||
115 | |||
116 | public function collection(string $key): self |
||
121 | |||
122 | /** |
||
123 | * @param string $annotation |
||
124 | * @param mixed $content |
||
125 | * @param bool $replaceExisting |
||
126 | * @return TdbmFluidColumnGraphqlOptions |
||
127 | */ |
||
128 | public function addAnnotation(string $annotation, $content = null, bool $replaceExisting = true, bool $explicitNull = false): self |
||
133 | |||
134 | public function removeAnnotation(string $annotation): self |
||
139 | |||
140 | public function endJsonSerialize(): TdbmFluidColumnOptions |
||
144 | |||
145 | public function then(): TdbmFluidTable |
||
149 | |||
150 | public function column(string $name): TdbmFluidColumn |
||
154 | } |
||
155 |