1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Core\Provider; |
4: | |
5: | /** |
6: | * @api |
7: | * |
8: | * @template TContext of ProviderContextInterface |
9: | */ |
10: | interface ProviderContextAwareInterface |
11: | { |
12: | /** |
13: | * Set the object's provider context |
14: | * |
15: | * @param TContext $context |
16: | * @return $this |
17: | */ |
18: | public function setContext(ProviderContextInterface $context); |
19: | |
20: | /** |
21: | * Get the object's current provider context |
22: | * |
23: | * @return TContext|null |
24: | */ |
25: | public function getContext(): ?ProviderContextInterface; |
26: | } |
27: |