| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class InterfaceExtensionDefinition implements ClassAwareDefinitionInterface |
||
| 19 | { |
||
| 20 | use ClassAwareDefinitionTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | protected $priority; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * InterfaceExtensionDefinition constructor. |
||
| 29 | * |
||
| 30 | * @param string $class |
||
| 31 | * @param int $priority |
||
| 32 | */ |
||
| 33 | 1 | public function __construct($class, $priority = 0) |
|
| 34 | { |
||
| 35 | 1 | $this->class = $class; |
|
| 36 | 1 | $this->priority = $priority; |
|
| 37 | 1 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | 8 | public function getPriority(): int |
|
| 43 | { |
||
| 44 | 8 | return $this->priority; |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param int $priority |
||
| 49 | */ |
||
| 50 | public function setPriority(int $priority) |
||
| 53 | } |
||
| 54 | } |