equal
deleted
inserted
replaced
10 /** |
10 /** |
11 * Core base class representing a search handler for an object type in the REST API. |
11 * Core base class representing a search handler for an object type in the REST API. |
12 * |
12 * |
13 * @since 5.0.0 |
13 * @since 5.0.0 |
14 */ |
14 */ |
|
15 #[AllowDynamicProperties] |
15 abstract class WP_REST_Search_Handler { |
16 abstract class WP_REST_Search_Handler { |
16 |
17 |
17 /** |
18 /** |
18 * Field containing the IDs in the search result. |
19 * Field containing the IDs in the search result. |
19 */ |
20 */ |
34 |
35 |
35 /** |
36 /** |
36 * Object subtypes managed by this search handler. |
37 * Object subtypes managed by this search handler. |
37 * |
38 * |
38 * @since 5.0.0 |
39 * @since 5.0.0 |
39 * @var array |
40 * @var string[] |
40 */ |
41 */ |
41 protected $subtypes = array(); |
42 protected $subtypes = array(); |
42 |
43 |
43 /** |
44 /** |
44 * Gets the object type managed by this search handler. |
45 * Gets the object type managed by this search handler. |
54 /** |
55 /** |
55 * Gets the object subtypes managed by this search handler. |
56 * Gets the object subtypes managed by this search handler. |
56 * |
57 * |
57 * @since 5.0.0 |
58 * @since 5.0.0 |
58 * |
59 * |
59 * @return array Array of object subtype identifiers. |
60 * @return string[] Array of object subtype identifiers. |
60 */ |
61 */ |
61 public function get_subtypes() { |
62 public function get_subtypes() { |
62 return $this->subtypes; |
63 return $this->subtypes; |
63 } |
64 } |
64 |
65 |