vendor/ezsystems/ezplatform-user/src/lib/UserSetting/ValueDefinitionRegistryEntry.php line 14

Open in your IDE?
  1. <?php
  2. /**
  3.  * @copyright Copyright (C) eZ Systems AS. All rights reserved.
  4.  * @license For full copyright and license information view LICENSE file distributed with this source code.
  5.  */
  6. declare(strict_types=1);
  7. namespace EzSystems\EzPlatformUser\UserSetting;
  8. /**
  9.  * @internal
  10.  */
  11. final class ValueDefinitionRegistryEntry
  12. {
  13.     /** @var \EzSystems\EzPlatformUser\UserSetting\ValueDefinitionInterface */
  14.     private $definition;
  15.     /** @var int */
  16.     private $priority;
  17.     /**
  18.      * @param \EzSystems\EzPlatformUser\UserSetting\ValueDefinitionInterface $definition
  19.      * @param int $priority
  20.      */
  21.     public function __construct(ValueDefinitionInterface $definitionint $priority 0)
  22.     {
  23.         $this->definition $definition;
  24.         $this->priority $priority;
  25.     }
  26.     /**
  27.      * @return \EzSystems\EzPlatformUser\UserSetting\ValueDefinitionInterface
  28.      */
  29.     public function getDefinition(): ValueDefinitionInterface
  30.     {
  31.         return $this->definition;
  32.     }
  33.     /**
  34.      * @return int
  35.      */
  36.     public function getPriority(): int
  37.     {
  38.         return $this->priority;
  39.     }
  40. }