1 | <?php |
||
8 | class MetadataStore implements MetadataStoreInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $config; |
||
14 | |||
15 | public function __construct(array $config) |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function graph($key = null, $default = null) |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function state($state, $key = null, $default = null) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function transition($transition, $key = null, $default = null) |
||
61 | |||
62 | /** |
||
63 | * Get a metadata value from a subject. |
||
64 | * |
||
65 | * @param array $subject |
||
66 | * @param string|null $key |
||
67 | * @param mixed $default |
||
68 | * @return mixed |
||
69 | */ |
||
70 | protected function get(array $subject, $key, $default) |
||
76 | } |
||
77 |