1 | <?php |
||
16 | abstract class InputBase implements InputInterface |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * @var string $name |
||
21 | */ |
||
22 | protected $name = ''; |
||
23 | |||
24 | /** |
||
25 | * @var string $description |
||
26 | */ |
||
27 | protected $description = ''; |
||
28 | |||
29 | /** |
||
30 | * @var \EventEspresso\core\services\graphql\fields\GraphQLFieldInterface[] $fields |
||
31 | */ |
||
32 | protected $fields = []; |
||
33 | |||
34 | /** |
||
35 | * InputBase constructor. |
||
36 | */ |
||
37 | public function __construct() |
||
41 | |||
42 | |||
43 | /** |
||
44 | * @return \EventEspresso\core\services\graphql\fields\GraphQLFieldInterface[] |
||
45 | * @since $VID:$ |
||
46 | */ |
||
47 | abstract protected function getFields(); |
||
48 | |||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function name() |
||
57 | |||
58 | |||
59 | /** |
||
60 | * @param string $name |
||
61 | */ |
||
62 | protected function setName($name) |
||
66 | |||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function description() |
||
75 | |||
76 | |||
77 | /** |
||
78 | * @param string $description |
||
79 | */ |
||
80 | protected function setDescription($description) |
||
84 | |||
85 | |||
86 | /** |
||
87 | * @return \EventEspresso\core\services\graphql\fields\GraphQLFieldInterface[] |
||
88 | * @since $VID:$ |
||
89 | */ |
||
90 | public function fields() |
||
94 | |||
95 | |||
96 | /** |
||
97 | * @param \EventEspresso\core\services\graphql\fields\GraphQLFieldInterface[] $fields |
||
98 | */ |
||
99 | protected function setFields(array $fields) |
||
107 | } |
||
108 |