ParameterRegistration.php 663 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OC\AppFramework\Bootstrap;
  8. /**
  9. * @psalm-immutable
  10. */
  11. final class ParameterRegistration extends ARegistration {
  12. /** @var string */
  13. private $name;
  14. /** @var mixed */
  15. private $value;
  16. public function __construct(string $appId,
  17. string $name,
  18. $value) {
  19. parent::__construct($appId);
  20. $this->name = $name;
  21. $this->value = $value;
  22. }
  23. public function getName(): string {
  24. return $this->name;
  25. }
  26. /**
  27. * @return mixed
  28. */
  29. public function getValue() {
  30. return $this->value;
  31. }
  32. }