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