1 | <?php |
||
11 | class TdbmFluidColumnJsonOptions |
||
12 | { |
||
13 | /** |
||
14 | * @var TdbmFluidColumnOptions |
||
15 | */ |
||
16 | private $tdbmFluidColumnOptions; |
||
17 | |||
18 | public function __construct(TdbmFluidColumnOptions $tdbmFluidColumnOptions) |
||
22 | |||
23 | public function key(string $name): self |
||
28 | |||
29 | public function datetimeFormat(string $format): self |
||
34 | |||
35 | /** |
||
36 | * @param int|null $decimals The number of decimals |
||
37 | * @param string|null $point The decimal point |
||
38 | * @param string|null $separator The thousands separator |
||
39 | * @param string|null $unit The suffix to append after a number |
||
40 | */ |
||
41 | public function numericFormat(?int $decimals = null, ?string $point = null, ?string $separator = null, ?string $unit = null): self |
||
59 | |||
60 | /** |
||
61 | * Serialize in JSON by getting the property from an object. |
||
62 | */ |
||
63 | public function formatUsingProperty(string $property): self |
||
68 | |||
69 | /** |
||
70 | * Serialize in JSON by calling a method from an object. |
||
71 | */ |
||
72 | public function formatUsingMethod(string $method): self |
||
77 | |||
78 | public function ignore(): self |
||
83 | |||
84 | public function include(): self |
||
89 | |||
90 | public function recursive(): self |
||
95 | |||
96 | public function collection(string $key): self |
||
101 | |||
102 | /** |
||
103 | * @param string $annotation |
||
104 | * @param mixed $content |
||
105 | * @param bool $replaceExisting |
||
106 | * @return TdbmFluidColumnGraphqlOptions |
||
107 | */ |
||
108 | public function addAnnotation(string $annotation, $content = null, bool $replaceExisting = true, bool $explicitNull = false): self |
||
113 | |||
114 | public function endJsonSerialize(): TdbmFluidColumnOptions |
||
118 | |||
119 | public function then(): TdbmFluidTable |
||
123 | |||
124 | public function column(string $name): TdbmFluidColumn |
||
128 | } |
||
129 |