We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c9a3b commit 352247fCopy full SHA for 352247f
inc/tokens/class-token.php
@@ -3,6 +3,9 @@
3
namespace WP\OAuth2\Tokens;
4
5
abstract class Token {
6
+ protected $key;
7
+ protected $value;
8
+
9
protected function __construct( $key, $value ) {
10
$this->key = $key;
11
$this->value = $value;
@@ -12,6 +15,15 @@ public function get_key() {
12
15
return $this->key;
13
16
}
14
17
18
+ /**
19
+ * Get the token's value.
20
+ *
21
+ * @return mixed $value Token value, specific to the token type.
22
+ */
23
+ public function get_value() {
24
+ return $this->value;
25
+ }
26
27
/**
28
* Check if the token is valid.
29
*
@@ -29,5 +41,4 @@ public function is_valid() {
41
public function get_meta_key() {
30
42
return static::get_meta_prefix() . $this->get_key();
31
43
32
- public abstract function to_meta_value();
33
44
0 commit comments