@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | { |
39 | 39 | return [ |
40 | 40 | 'fromType' => 'RootQuery', |
41 | - 'toType' => $this->namespace . 'FormSection', |
|
42 | - 'fromFieldName' => lcfirst($this->namespace) . 'FormSections', |
|
41 | + 'toType' => $this->namespace.'FormSection', |
|
42 | + 'fromFieldName' => lcfirst($this->namespace).'FormSections', |
|
43 | 43 | 'connectionTypeName' => "{$this->namespace}RootQueryFormSectionsConnection", |
44 | 44 | 'connectionArgs' => $this->get_connection_args(), |
45 | 45 | 'resolve' => [$this, 'resolveConnection'], |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | { |
72 | 72 | $newArgs = [ |
73 | 73 | 'appliesTo' => [ |
74 | - 'type' => ['list_of' => $this->namespace . 'FormSectionAppliesToEnum'], |
|
74 | + 'type' => ['list_of' => $this->namespace.'FormSectionAppliesToEnum'], |
|
75 | 75 | 'description' => esc_html__( |
76 | 76 | 'Form user types to get the form sections for.', |
77 | 77 | 'event_espresso' |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | ), |
86 | 86 | ], |
87 | 87 | 'status' => [ |
88 | - 'type' => ['list_of' => $this->namespace . 'FormSectionStatusEnum'], |
|
88 | + 'type' => ['list_of' => $this->namespace.'FormSectionStatusEnum'], |
|
89 | 89 | 'description' => esc_html__( |
90 | 90 | 'Filter the form sections by status.', |
91 | 91 | 'event_espresso' |
@@ -18,87 +18,87 @@ |
||
18 | 18 | */ |
19 | 19 | class RootQueryFormSectionsConnection extends AbstractRootQueryConnection |
20 | 20 | { |
21 | - /** |
|
22 | - * FormSectionConnection constructor. |
|
23 | - * |
|
24 | - * @param EEM_Form_Section $model |
|
25 | - */ |
|
26 | - public function __construct(EEM_Form_Section $model) |
|
27 | - { |
|
28 | - parent::__construct($model); |
|
29 | - } |
|
21 | + /** |
|
22 | + * FormSectionConnection constructor. |
|
23 | + * |
|
24 | + * @param EEM_Form_Section $model |
|
25 | + */ |
|
26 | + public function __construct(EEM_Form_Section $model) |
|
27 | + { |
|
28 | + parent::__construct($model); |
|
29 | + } |
|
30 | 30 | |
31 | 31 | |
32 | - /** |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - public function config(): array |
|
36 | - { |
|
37 | - return [ |
|
38 | - 'fromType' => 'RootQuery', |
|
39 | - 'toType' => $this->namespace . 'FormSection', |
|
40 | - 'fromFieldName' => lcfirst($this->namespace) . 'FormSections', |
|
41 | - 'connectionTypeName' => "{$this->namespace}RootQueryFormSectionsConnection", |
|
42 | - 'connectionArgs' => $this->get_connection_args(), |
|
43 | - 'resolve' => [$this, 'resolveConnection'], |
|
44 | - ]; |
|
45 | - } |
|
32 | + /** |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + public function config(): array |
|
36 | + { |
|
37 | + return [ |
|
38 | + 'fromType' => 'RootQuery', |
|
39 | + 'toType' => $this->namespace . 'FormSection', |
|
40 | + 'fromFieldName' => lcfirst($this->namespace) . 'FormSections', |
|
41 | + 'connectionTypeName' => "{$this->namespace}RootQueryFormSectionsConnection", |
|
42 | + 'connectionArgs' => $this->get_connection_args(), |
|
43 | + 'resolve' => [$this, 'resolveConnection'], |
|
44 | + ]; |
|
45 | + } |
|
46 | 46 | |
47 | 47 | |
48 | - /** |
|
49 | - * @param $entity |
|
50 | - * @param $args |
|
51 | - * @param $context |
|
52 | - * @param $info |
|
53 | - * @return FormSectionConnectionResolver |
|
54 | - * @throws Exception |
|
55 | - */ |
|
56 | - public function getConnectionResolver($entity, $args, $context, $info): AbstractConnectionResolver |
|
57 | - { |
|
58 | - return new FormSectionConnectionResolver($entity, $args, $context, $info); |
|
59 | - } |
|
48 | + /** |
|
49 | + * @param $entity |
|
50 | + * @param $args |
|
51 | + * @param $context |
|
52 | + * @param $info |
|
53 | + * @return FormSectionConnectionResolver |
|
54 | + * @throws Exception |
|
55 | + */ |
|
56 | + public function getConnectionResolver($entity, $args, $context, $info): AbstractConnectionResolver |
|
57 | + { |
|
58 | + return new FormSectionConnectionResolver($entity, $args, $context, $info); |
|
59 | + } |
|
60 | 60 | |
61 | - /** |
|
62 | - * Given an optional array of args, this returns the args to be used in the connection |
|
63 | - * |
|
64 | - * @param array $args The args to modify the defaults |
|
65 | - * @return array |
|
66 | - */ |
|
67 | - // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
|
68 | - public function get_connection_args(array $args = []): array |
|
69 | - { |
|
70 | - $newArgs = [ |
|
71 | - 'appliesTo' => [ |
|
72 | - 'type' => ['list_of' => $this->namespace . 'FormSectionAppliesToEnum'], |
|
73 | - 'description' => esc_html__( |
|
74 | - 'Form user types to get the form sections for.', |
|
75 | - 'event_espresso' |
|
76 | - ), |
|
77 | - ], |
|
78 | - 'belongsTo' => [ |
|
79 | - 'type' => ['list_of' => 'ID'], |
|
80 | - 'description' => esc_html__( |
|
81 | - 'Related entity IDs to get the form sections for.', |
|
82 | - 'event_espresso' |
|
83 | - ), |
|
84 | - ], |
|
85 | - 'status' => [ |
|
86 | - 'type' => ['list_of' => $this->namespace . 'FormSectionStatusEnum'], |
|
87 | - 'description' => esc_html__( |
|
88 | - 'Filter the form sections by status.', |
|
89 | - 'event_espresso' |
|
90 | - ), |
|
91 | - ], |
|
92 | - ]; |
|
61 | + /** |
|
62 | + * Given an optional array of args, this returns the args to be used in the connection |
|
63 | + * |
|
64 | + * @param array $args The args to modify the defaults |
|
65 | + * @return array |
|
66 | + */ |
|
67 | + // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps |
|
68 | + public function get_connection_args(array $args = []): array |
|
69 | + { |
|
70 | + $newArgs = [ |
|
71 | + 'appliesTo' => [ |
|
72 | + 'type' => ['list_of' => $this->namespace . 'FormSectionAppliesToEnum'], |
|
73 | + 'description' => esc_html__( |
|
74 | + 'Form user types to get the form sections for.', |
|
75 | + 'event_espresso' |
|
76 | + ), |
|
77 | + ], |
|
78 | + 'belongsTo' => [ |
|
79 | + 'type' => ['list_of' => 'ID'], |
|
80 | + 'description' => esc_html__( |
|
81 | + 'Related entity IDs to get the form sections for.', |
|
82 | + 'event_espresso' |
|
83 | + ), |
|
84 | + ], |
|
85 | + 'status' => [ |
|
86 | + 'type' => ['list_of' => $this->namespace . 'FormSectionStatusEnum'], |
|
87 | + 'description' => esc_html__( |
|
88 | + 'Filter the form sections by status.', |
|
89 | + 'event_espresso' |
|
90 | + ), |
|
91 | + ], |
|
92 | + ]; |
|
93 | 93 | |
94 | - $newArgs = apply_filters( |
|
95 | - 'FHEE__EventEspresso_core_domain_services_graphql_connections__form_section_args', |
|
96 | - $newArgs, |
|
97 | - $args |
|
98 | - ); |
|
99 | - return array_merge( |
|
100 | - $newArgs, |
|
101 | - $args |
|
102 | - ); |
|
103 | - } |
|
94 | + $newArgs = apply_filters( |
|
95 | + 'FHEE__EventEspresso_core_domain_services_graphql_connections__form_section_args', |
|
96 | + $newArgs, |
|
97 | + $args |
|
98 | + ); |
|
99 | + return array_merge( |
|
100 | + $newArgs, |
|
101 | + $args |
|
102 | + ); |
|
103 | + } |
|
104 | 104 | } |
@@ -36,8 +36,8 @@ |
||
36 | 36 | public function config(): array |
37 | 37 | { |
38 | 38 | return [ |
39 | - 'fromType' => $this->namespace . 'Ticket', |
|
40 | - 'toType' => $this->namespace . 'Datetime', |
|
39 | + 'fromType' => $this->namespace.'Ticket', |
|
40 | + 'toType' => $this->namespace.'Datetime', |
|
41 | 41 | 'fromFieldName' => 'datetimes', |
42 | 42 | 'connectionTypeName' => "{$this->namespace}TicketDatetimesConnection", |
43 | 43 | 'connectionArgs' => EventDatetimesConnection::get_connection_args(), |
@@ -18,44 +18,44 @@ |
||
18 | 18 | */ |
19 | 19 | class TicketDatetimesConnection extends ConnectionBase |
20 | 20 | { |
21 | - /** |
|
22 | - * DatetimeConnection constructor. |
|
23 | - * |
|
24 | - * @param EEM_Datetime $model |
|
25 | - */ |
|
26 | - public function __construct(EEM_Datetime $model) |
|
27 | - { |
|
28 | - parent::__construct($model); |
|
29 | - } |
|
21 | + /** |
|
22 | + * DatetimeConnection constructor. |
|
23 | + * |
|
24 | + * @param EEM_Datetime $model |
|
25 | + */ |
|
26 | + public function __construct(EEM_Datetime $model) |
|
27 | + { |
|
28 | + parent::__construct($model); |
|
29 | + } |
|
30 | 30 | |
31 | 31 | |
32 | - /** |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - public function config(): array |
|
36 | - { |
|
37 | - return [ |
|
38 | - 'fromType' => $this->namespace . 'Ticket', |
|
39 | - 'toType' => $this->namespace . 'Datetime', |
|
40 | - 'fromFieldName' => 'datetimes', |
|
41 | - 'connectionTypeName' => "{$this->namespace}TicketDatetimesConnection", |
|
42 | - 'connectionArgs' => EventDatetimesConnection::get_connection_args(), |
|
43 | - 'resolve' => [$this, 'resolveConnection'], |
|
44 | - ]; |
|
45 | - } |
|
32 | + /** |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + public function config(): array |
|
36 | + { |
|
37 | + return [ |
|
38 | + 'fromType' => $this->namespace . 'Ticket', |
|
39 | + 'toType' => $this->namespace . 'Datetime', |
|
40 | + 'fromFieldName' => 'datetimes', |
|
41 | + 'connectionTypeName' => "{$this->namespace}TicketDatetimesConnection", |
|
42 | + 'connectionArgs' => EventDatetimesConnection::get_connection_args(), |
|
43 | + 'resolve' => [$this, 'resolveConnection'], |
|
44 | + ]; |
|
45 | + } |
|
46 | 46 | |
47 | 47 | |
48 | - /** |
|
49 | - * @param $entity |
|
50 | - * @param $args |
|
51 | - * @param $context |
|
52 | - * @param $info |
|
53 | - * @return array|Deferred|mixed |
|
54 | - * @throws Exception |
|
55 | - */ |
|
56 | - public function resolveConnection($entity, $args, $context, $info) |
|
57 | - { |
|
58 | - $resolver = new DatetimeConnectionResolver($entity, $args, $context, $info); |
|
59 | - return $resolver->get_connection(); |
|
60 | - } |
|
48 | + /** |
|
49 | + * @param $entity |
|
50 | + * @param $args |
|
51 | + * @param $context |
|
52 | + * @param $info |
|
53 | + * @return array|Deferred|mixed |
|
54 | + * @throws Exception |
|
55 | + */ |
|
56 | + public function resolveConnection($entity, $args, $context, $info) |
|
57 | + { |
|
58 | + $resolver = new DatetimeConnectionResolver($entity, $args, $context, $info); |
|
59 | + return $resolver->get_connection(); |
|
60 | + } |
|
61 | 61 | } |
@@ -37,8 +37,8 @@ |
||
37 | 37 | public function config(): array |
38 | 38 | { |
39 | 39 | return [ |
40 | - 'fromType' => $this->namespace . 'Event', |
|
41 | - 'toType' => $this->namespace . 'Venue', |
|
40 | + 'fromType' => $this->namespace.'Event', |
|
41 | + 'toType' => $this->namespace.'Venue', |
|
42 | 42 | 'fromFieldName' => 'venues', |
43 | 43 | 'connectionTypeName' => "{$this->namespace}EventVenuesConnection", |
44 | 44 | 'resolve' => [$this, 'resolveConnection'], |
@@ -18,43 +18,43 @@ |
||
18 | 18 | */ |
19 | 19 | class EventVenuesConnection extends ConnectionBase |
20 | 20 | { |
21 | - /** |
|
22 | - * DatetimeConnection constructor. |
|
23 | - * |
|
24 | - * @param EEM_Venue $model |
|
25 | - */ |
|
26 | - public function __construct(EEM_Venue $model) |
|
27 | - { |
|
28 | - parent::__construct($model); |
|
29 | - } |
|
21 | + /** |
|
22 | + * DatetimeConnection constructor. |
|
23 | + * |
|
24 | + * @param EEM_Venue $model |
|
25 | + */ |
|
26 | + public function __construct(EEM_Venue $model) |
|
27 | + { |
|
28 | + parent::__construct($model); |
|
29 | + } |
|
30 | 30 | |
31 | 31 | |
32 | - /** |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - public function config(): array |
|
36 | - { |
|
37 | - return [ |
|
38 | - 'fromType' => $this->namespace . 'Event', |
|
39 | - 'toType' => $this->namespace . 'Venue', |
|
40 | - 'fromFieldName' => 'venues', |
|
41 | - 'connectionTypeName' => "{$this->namespace}EventVenuesConnection", |
|
42 | - 'resolve' => [$this, 'resolveConnection'], |
|
43 | - ]; |
|
44 | - } |
|
32 | + /** |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + public function config(): array |
|
36 | + { |
|
37 | + return [ |
|
38 | + 'fromType' => $this->namespace . 'Event', |
|
39 | + 'toType' => $this->namespace . 'Venue', |
|
40 | + 'fromFieldName' => 'venues', |
|
41 | + 'connectionTypeName' => "{$this->namespace}EventVenuesConnection", |
|
42 | + 'resolve' => [$this, 'resolveConnection'], |
|
43 | + ]; |
|
44 | + } |
|
45 | 45 | |
46 | 46 | |
47 | - /** |
|
48 | - * @param $entity |
|
49 | - * @param $args |
|
50 | - * @param $context |
|
51 | - * @param $info |
|
52 | - * @return array|Deferred|mixed |
|
53 | - * @throws Exception |
|
54 | - */ |
|
55 | - public function resolveConnection($entity, $args, $context, $info) |
|
56 | - { |
|
57 | - $resolver = new VenueConnectionResolver($entity, $args, $context, $info); |
|
58 | - return $resolver->get_connection(); |
|
59 | - } |
|
47 | + /** |
|
48 | + * @param $entity |
|
49 | + * @param $args |
|
50 | + * @param $context |
|
51 | + * @param $info |
|
52 | + * @return array|Deferred|mixed |
|
53 | + * @throws Exception |
|
54 | + */ |
|
55 | + public function resolveConnection($entity, $args, $context, $info) |
|
56 | + { |
|
57 | + $resolver = new VenueConnectionResolver($entity, $args, $context, $info); |
|
58 | + return $resolver->get_connection(); |
|
59 | + } |
|
60 | 60 | } |
@@ -15,27 +15,27 @@ |
||
15 | 15 | */ |
16 | 16 | class PriceTypeLoader extends AbstractLoader |
17 | 17 | { |
18 | - /** |
|
19 | - * @return EEM_Base |
|
20 | - * @throws EE_Error |
|
21 | - * @throws InvalidArgumentException |
|
22 | - * @throws InvalidDataTypeException |
|
23 | - * @throws InvalidInterfaceException |
|
24 | - * @throws ReflectionException |
|
25 | - */ |
|
26 | - protected function getQuery(): EEM_Base |
|
27 | - { |
|
28 | - return EEM_Price_Type::instance(); |
|
29 | - } |
|
18 | + /** |
|
19 | + * @return EEM_Base |
|
20 | + * @throws EE_Error |
|
21 | + * @throws InvalidArgumentException |
|
22 | + * @throws InvalidDataTypeException |
|
23 | + * @throws InvalidInterfaceException |
|
24 | + * @throws ReflectionException |
|
25 | + */ |
|
26 | + protected function getQuery(): EEM_Base |
|
27 | + { |
|
28 | + return EEM_Price_Type::instance(); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * @param array $keys |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - protected function getWhereParams(array $keys): array |
|
36 | - { |
|
37 | - return [ |
|
38 | - 'PRT_ID' => ['IN', $keys], |
|
39 | - ]; |
|
40 | - } |
|
31 | + /** |
|
32 | + * @param array $keys |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + protected function getWhereParams(array $keys): array |
|
36 | + { |
|
37 | + return [ |
|
38 | + 'PRT_ID' => ['IN', $keys], |
|
39 | + ]; |
|
40 | + } |
|
41 | 41 | } |
@@ -15,28 +15,28 @@ |
||
15 | 15 | */ |
16 | 16 | class AttendeeLoader extends AbstractLoader |
17 | 17 | { |
18 | - /** |
|
19 | - * @return EEM_Base|EEM_Attendee |
|
20 | - * @throws EE_Error |
|
21 | - * @throws InvalidArgumentException |
|
22 | - * @throws InvalidDataTypeException |
|
23 | - * @throws InvalidInterfaceException |
|
24 | - * @throws ReflectionException |
|
25 | - */ |
|
26 | - protected function getQuery(): EEM_Base |
|
27 | - { |
|
28 | - return EEM_Attendee::instance(); |
|
29 | - } |
|
18 | + /** |
|
19 | + * @return EEM_Base|EEM_Attendee |
|
20 | + * @throws EE_Error |
|
21 | + * @throws InvalidArgumentException |
|
22 | + * @throws InvalidDataTypeException |
|
23 | + * @throws InvalidInterfaceException |
|
24 | + * @throws ReflectionException |
|
25 | + */ |
|
26 | + protected function getQuery(): EEM_Base |
|
27 | + { |
|
28 | + return EEM_Attendee::instance(); |
|
29 | + } |
|
30 | 30 | |
31 | 31 | |
32 | - /** |
|
33 | - * @param array $keys |
|
34 | - * @return array |
|
35 | - */ |
|
36 | - protected function getWhereParams(array $keys): array |
|
37 | - { |
|
38 | - return [ |
|
39 | - 'ATT_ID' => ['IN', $keys], |
|
40 | - ]; |
|
41 | - } |
|
32 | + /** |
|
33 | + * @param array $keys |
|
34 | + * @return array |
|
35 | + */ |
|
36 | + protected function getWhereParams(array $keys): array |
|
37 | + { |
|
38 | + return [ |
|
39 | + 'ATT_ID' => ['IN', $keys], |
|
40 | + ]; |
|
41 | + } |
|
42 | 42 | } |
@@ -15,27 +15,27 @@ |
||
15 | 15 | */ |
16 | 16 | class FormSectionLoader extends AbstractLoader |
17 | 17 | { |
18 | - /** |
|
19 | - * @return EEM_Base |
|
20 | - * @throws EE_Error |
|
21 | - * @throws InvalidArgumentException |
|
22 | - * @throws InvalidDataTypeException |
|
23 | - * @throws InvalidInterfaceException |
|
24 | - * @throws ReflectionException |
|
25 | - */ |
|
26 | - protected function getQuery(): EEM_Base |
|
27 | - { |
|
28 | - return EEM_Form_Section::instance(); |
|
29 | - } |
|
18 | + /** |
|
19 | + * @return EEM_Base |
|
20 | + * @throws EE_Error |
|
21 | + * @throws InvalidArgumentException |
|
22 | + * @throws InvalidDataTypeException |
|
23 | + * @throws InvalidInterfaceException |
|
24 | + * @throws ReflectionException |
|
25 | + */ |
|
26 | + protected function getQuery(): EEM_Base |
|
27 | + { |
|
28 | + return EEM_Form_Section::instance(); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * @param array $keys |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - protected function getWhereParams(array $keys): array |
|
36 | - { |
|
37 | - return [ |
|
38 | - 'FSC_UUID' => ['IN', $keys], |
|
39 | - ]; |
|
40 | - } |
|
31 | + /** |
|
32 | + * @param array $keys |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + protected function getWhereParams(array $keys): array |
|
36 | + { |
|
37 | + return [ |
|
38 | + 'FSC_UUID' => ['IN', $keys], |
|
39 | + ]; |
|
40 | + } |
|
41 | 41 | } |
@@ -15,28 +15,28 @@ |
||
15 | 15 | */ |
16 | 16 | class TicketLoader extends AbstractLoader |
17 | 17 | { |
18 | - /** |
|
19 | - * @return EEM_Base |
|
20 | - * @throws EE_Error |
|
21 | - * @throws InvalidArgumentException |
|
22 | - * @throws InvalidDataTypeException |
|
23 | - * @throws InvalidInterfaceException |
|
24 | - * @throws ReflectionException |
|
25 | - */ |
|
26 | - protected function getQuery(): EEM_Base |
|
27 | - { |
|
28 | - return EEM_Ticket::instance(); |
|
29 | - } |
|
18 | + /** |
|
19 | + * @return EEM_Base |
|
20 | + * @throws EE_Error |
|
21 | + * @throws InvalidArgumentException |
|
22 | + * @throws InvalidDataTypeException |
|
23 | + * @throws InvalidInterfaceException |
|
24 | + * @throws ReflectionException |
|
25 | + */ |
|
26 | + protected function getQuery(): EEM_Base |
|
27 | + { |
|
28 | + return EEM_Ticket::instance(); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * @param array $keys |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - protected function getWhereParams(array $keys): array |
|
36 | - { |
|
37 | - return [ |
|
38 | - 'TKT_ID' => ['IN', $keys], |
|
39 | - 'TKT_deleted' => ['IN', [true, false]] |
|
40 | - ]; |
|
41 | - } |
|
31 | + /** |
|
32 | + * @param array $keys |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + protected function getWhereParams(array $keys): array |
|
36 | + { |
|
37 | + return [ |
|
38 | + 'TKT_ID' => ['IN', $keys], |
|
39 | + 'TKT_deleted' => ['IN', [true, false]] |
|
40 | + ]; |
|
41 | + } |
|
42 | 42 | } |
@@ -15,27 +15,27 @@ |
||
15 | 15 | */ |
16 | 16 | class PriceLoader extends AbstractLoader |
17 | 17 | { |
18 | - /** |
|
19 | - * @return EEM_Base |
|
20 | - * @throws EE_Error |
|
21 | - * @throws InvalidArgumentException |
|
22 | - * @throws InvalidDataTypeException |
|
23 | - * @throws InvalidInterfaceException |
|
24 | - * @throws ReflectionException |
|
25 | - */ |
|
26 | - protected function getQuery(): EEM_Base |
|
27 | - { |
|
28 | - return EEM_Price::instance(); |
|
29 | - } |
|
18 | + /** |
|
19 | + * @return EEM_Base |
|
20 | + * @throws EE_Error |
|
21 | + * @throws InvalidArgumentException |
|
22 | + * @throws InvalidDataTypeException |
|
23 | + * @throws InvalidInterfaceException |
|
24 | + * @throws ReflectionException |
|
25 | + */ |
|
26 | + protected function getQuery(): EEM_Base |
|
27 | + { |
|
28 | + return EEM_Price::instance(); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * @param array $keys |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - protected function getWhereParams(array $keys): array |
|
36 | - { |
|
37 | - return [ |
|
38 | - 'PRC_ID' => ['IN', $keys], |
|
39 | - ]; |
|
40 | - } |
|
31 | + /** |
|
32 | + * @param array $keys |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + protected function getWhereParams(array $keys): array |
|
36 | + { |
|
37 | + return [ |
|
38 | + 'PRC_ID' => ['IN', $keys], |
|
39 | + ]; |
|
40 | + } |
|
41 | 41 | } |
@@ -15,27 +15,27 @@ |
||
15 | 15 | */ |
16 | 16 | class VenueLoader extends AbstractLoader |
17 | 17 | { |
18 | - /** |
|
19 | - * @return EEM_Base |
|
20 | - * @throws EE_Error |
|
21 | - * @throws InvalidArgumentException |
|
22 | - * @throws InvalidDataTypeException |
|
23 | - * @throws InvalidInterfaceException |
|
24 | - * @throws ReflectionException |
|
25 | - */ |
|
26 | - protected function getQuery(): EEM_Base |
|
27 | - { |
|
28 | - return EEM_Venue::instance(); |
|
29 | - } |
|
18 | + /** |
|
19 | + * @return EEM_Base |
|
20 | + * @throws EE_Error |
|
21 | + * @throws InvalidArgumentException |
|
22 | + * @throws InvalidDataTypeException |
|
23 | + * @throws InvalidInterfaceException |
|
24 | + * @throws ReflectionException |
|
25 | + */ |
|
26 | + protected function getQuery(): EEM_Base |
|
27 | + { |
|
28 | + return EEM_Venue::instance(); |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * @param array $keys |
|
33 | - * @return array |
|
34 | - */ |
|
35 | - protected function getWhereParams(array $keys): array |
|
36 | - { |
|
37 | - return [ |
|
38 | - 'VNU_ID' => ['IN', $keys], |
|
39 | - ]; |
|
40 | - } |
|
31 | + /** |
|
32 | + * @param array $keys |
|
33 | + * @return array |
|
34 | + */ |
|
35 | + protected function getWhereParams(array $keys): array |
|
36 | + { |
|
37 | + return [ |
|
38 | + 'VNU_ID' => ['IN', $keys], |
|
39 | + ]; |
|
40 | + } |
|
41 | 41 | } |