1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Core; |
4: | |
5: | use Salient\Contract\Container\ServiceAwareInterface; |
6: | use Salient\Contract\Iterator\FluentIteratorInterface; |
7: | |
8: | |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | interface Providable extends |
18: | ProviderAwareInterface, |
19: | ServiceAwareInterface, |
20: | ProviderContextAwareInterface |
21: | { |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | |
28: | |
29: | |
30: | public static function provide( |
31: | array $data, |
32: | ProviderInterface $provider, |
33: | ?ProviderContextInterface $context = null |
34: | ); |
35: | |
36: | |
37: | |
38: | |
39: | |
40: | |
41: | |
42: | |
43: | |
44: | |
45: | public static function provideList( |
46: | iterable $list, |
47: | ProviderInterface $provider, |
48: | $conformity = ListConformity::NONE, |
49: | ?ProviderContextInterface $context = null |
50: | ): FluentIteratorInterface; |
51: | |
52: | |
53: | |
54: | |
55: | public function postLoad(): void; |
56: | } |
57: | |