1 | <?php |
||
19 | class DatetimeTicketsConnection implements ConnectionInterface |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var EEM_Ticket $model |
||
24 | */ |
||
25 | protected $model; |
||
26 | |||
27 | |||
28 | /** |
||
29 | * DatetimeConnection constructor. |
||
30 | * |
||
31 | * @param EEM_Ticket $model |
||
32 | */ |
||
33 | public function __construct(EEM_Ticket $model) |
||
37 | |||
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | * @since $VID:$ |
||
42 | */ |
||
43 | public function config() |
||
55 | |||
56 | |||
57 | /** |
||
58 | * @param $entity |
||
59 | * @param $args |
||
60 | * @param $context |
||
61 | * @param $info |
||
62 | * @return array |
||
63 | * @throws Exception |
||
64 | * @since $VID:$ |
||
65 | */ |
||
66 | public function resolveConnection($entity, $args, $context, $info) |
||
71 | |||
72 | |||
73 | /** |
||
74 | * @param $id |
||
75 | * @param $args |
||
76 | * @param $context |
||
77 | * @param $info |
||
78 | * @return EE_Base_Class |
||
79 | * @since $VID:$ |
||
80 | */ |
||
81 | public function resolveNode($id, $args, $context, $info) |
||
85 | |||
86 | /** |
||
87 | * Given an optional array of args, this returns the args to be used in the connection |
||
88 | * |
||
89 | * @access public |
||
90 | * @param array $args The args to modify the defaults |
||
91 | * |
||
92 | * @return array |
||
93 | */ |
||
94 | // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
||
95 | public static function get_connection_args($args = []) |
||
115 | } |
||
116 |