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