| 1 | <?php  | 
            ||
| 15 | class Container  | 
            ||
| 16 | { | 
            ||
| 17 | /**  | 
            ||
| 18 | * @var ContextInterface  | 
            ||
| 19 | */  | 
            ||
| 20 | private $context;  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @var mixed  | 
            ||
| 24 | */  | 
            ||
| 25 | private $value;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * Container constructor.  | 
            ||
| 29 | * @param ContextInterface $context  | 
            ||
| 30 | * @param mixed $value  | 
            ||
| 31 | */  | 
            ||
| 32 | public function __construct(ContextInterface $context, $value = null)  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * @return ContextInterface  | 
            ||
| 40 | */  | 
            ||
| 41 | public function getContext(): ContextInterface  | 
            ||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * @param ContextInterface $context  | 
            ||
| 48 | */  | 
            ||
| 49 | public function setContext(ContextInterface $context): void  | 
            ||
| 53 | |||
| 54 | /**  | 
            ||
| 55 | * @return mixed  | 
            ||
| 56 | */  | 
            ||
| 57 | public function getValue()  | 
            ||
| 61 | |||
| 62 | /**  | 
            ||
| 63 | * @param mixed $value  | 
            ||
| 64 | */  | 
            ||
| 65 | public function setValue($value): void  | 
            ||
| 69 | }  | 
            ||
| 70 |