1 | <?php |
||
22 | class DataTablesOptions implements DataTablesOptionsInterface { |
||
23 | |||
24 | /** |
||
25 | * Options. |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | private $options; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | */ |
||
34 | public function __construct() { |
||
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | */ |
||
41 | public function addOption(string $name, $value): DataTablesOptionsInterface { |
||
47 | |||
48 | /** |
||
49 | * {@inheritDoc} |
||
50 | */ |
||
51 | public function getOption(string $name) { |
||
57 | |||
58 | /** |
||
59 | * {@inheritDoc} |
||
60 | */ |
||
61 | public function getOptions(): array { |
||
64 | |||
65 | /** |
||
66 | * {@inheritDoc} |
||
67 | */ |
||
68 | public function hasOption(string $name): bool { |
||
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | public function removeOption(string $name): DataTablesOptionsInterface { |
||
81 | |||
82 | /** |
||
83 | * {@inheritDoc} |
||
84 | */ |
||
85 | public function setOption(string $name, $value): DataTablesOptionsInterface { |
||
89 | |||
90 | /** |
||
91 | * Set the options. |
||
92 | * |
||
93 | * @param array $options The options. |
||
94 | * @return DataTablesOptionsInterface Returns this options. |
||
95 | */ |
||
96 | protected function setOptions(array $options): DataTablesOptionsInterface { |
||
100 | } |
||
101 |