Registry.php 822 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace AlexLcDee\RegistryContainer\Tests\Mocks;
  3. use AlexLcDee\RegistryContainer\Interfaces\RegistryContainerInterface;
  4. class Registry implements RegistryContainerInterface
  5. {
  6. private $typesMap;
  7. /**
  8. * MemoryRegistry constructor.
  9. * @param array $typesMap
  10. */
  11. public function __construct(array $typesMap)
  12. {
  13. $this->typesMap = $typesMap;
  14. }
  15. public function getTypesMap()
  16. {
  17. return $this->typesMap;
  18. }
  19. /**
  20. * @param string $key
  21. * @param mixed $value
  22. * @return mixed
  23. */
  24. public function add($key, $value)
  25. {
  26. }
  27. /**
  28. * @param string $key
  29. * @return mixed
  30. */
  31. public function get($key)
  32. {
  33. }
  34. /**
  35. * @param string $key
  36. * @return bool
  37. */
  38. public function has($key)
  39. {
  40. }
  41. }