1 | <?php |
||
32 | class RmaKeys implements RmaKeysInterface |
||
33 | { |
||
34 | |||
35 | /** |
||
36 | * The available states for the 'is_returnable' colum. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $returnable = array( |
||
41 | RmaKeysInterface::NOT_RETURNABLE => 0, |
||
42 | RmaKeysInterface::RETURNABLE => 1, |
||
43 | RmaKeysInterface::USE_CONFIG => 2 |
||
44 | ); |
||
45 | |||
46 | /** |
||
47 | * Query's whether or not the passed key is valid or not. |
||
48 | * |
||
49 | * @param string $key The key to query for |
||
50 | * |
||
51 | * @return bool TRUE if the passed key is valid, else FALSE |
||
52 | */ |
||
53 | public function isValid(string $key) : bool |
||
57 | |||
58 | /** |
||
59 | * Return's the value for the passed key. |
||
60 | * |
||
61 | * @param string $key The key to return the value for |
||
62 | * |
||
63 | * @return int The value |
||
64 | */ |
||
65 | public function get(string $key) : int |
||
69 | |||
70 | /** |
||
71 | * Return all available keys. |
||
72 | * |
||
73 | * @return array The array with the available keys |
||
74 | */ |
||
75 | public function getAll() : array |
||
79 | } |
||
80 |