ParameterObjectInterface.php 583 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. declare(strict_types=1);
  3. namespace Laminas\Stdlib;
  4. /**
  5. * @template TKey of string
  6. * @template TValue
  7. */
  8. interface ParameterObjectInterface
  9. {
  10. /**
  11. * @param TKey $key
  12. * @param TValue|null $value
  13. * @return void
  14. */
  15. public function __set($key, mixed $value);
  16. /**
  17. * @param TKey $key
  18. * @return TValue
  19. */
  20. public function __get($key);
  21. /**
  22. * @param TKey $key
  23. * @return bool
  24. */
  25. public function __isset($key);
  26. /**
  27. * @param TKey $key
  28. * @return void
  29. */
  30. public function __unset($key);
  31. }