Rev 1086 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1086 | Rev 1116 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | \defined('INSIDE_OIDPLUS') or die; |
23 | \defined('INSIDE_OIDPLUS') or die; |
24 | // phpcs:enable PSR1.Files.SideEffects |
24 | // phpcs:enable PSR1.Files.SideEffects |
25 | 25 | ||
26 | class OIDplusObjectTypePluginGs1 extends OIDplusObjectTypePlugin { |
26 | class OIDplusObjectTypePluginGs1 extends OIDplusObjectTypePlugin { |
27 | 27 | ||
- | 28 | /** |
|
- | 29 | * @return string |
|
- | 30 | */ |
|
28 | public static function getObjectTypeClassName() { |
31 | public static function getObjectTypeClassName(): string { |
29 | return OIDplusGs1::class; |
32 | return OIDplusGs1::class; |
30 | } |
33 | } |
31 | 34 | ||
- | 35 | /** |
|
- | 36 | * @param string $static_node_id |
|
- | 37 | * @param bool $throw_exception |
|
- | 38 | * @return string |
|
- | 39 | */ |
|
32 | public static function prefilterQuery($static_node_id, $throw_exception) { |
40 | public static function prefilterQuery(string $static_node_id, bool $throw_exception): string { |
33 | if (str_starts_with($static_node_id,'gs1:')) { |
41 | if (str_starts_with($static_node_id,'gs1:')) { |
34 | $static_node_id = str_replace(' ', '', $static_node_id); |
42 | $static_node_id = str_replace(' ', '', $static_node_id); |
35 | } |
43 | } |
36 | return $static_node_id; |
44 | return $static_node_id; |
37 | } |
45 | } |