1: <?php
2:
3: namespace Chromabits\Nucleus\Data\Interfaces;
4: use Chromabits\Nucleus\Control\Maybe;
5:
6: /**
7: * Interface ReadMapInterface
8: *
9: * A read-only Map.
10: *
11: * @author Eduardo Trujillo <ed@chromabits.com>
12: * @package Chromabits\Nucleus\Data\Interfaces
13: */
14: interface ReadMapInterface
15: {
16: /**
17: * Get the value of the provided key.
18: *
19: * @param string $key
20: *
21: * @return Maybe
22: */
23: public function lookup($key);
24:
25: /**
26: * Return whether or not the map contains the specified key.
27: *
28: * @param string $key
29: *
30: * @return bool
31: */
32: public function member($key);
33: }
34: