| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace PHPStan\Type\Generic; |
| 4: | |
| 5: | use PHPStan\Turbo\ShadowedByTurboExtension; |
| 6: | use PHPStan\Type\FloatRangeType; |
| 7: | use PHPStan\Type\Type; |
| 8: | |
| 9: | |
| 10: | #[ShadowedByTurboExtension(implementation: __DIR__ . '/../../../turbo-ext/src/TemplateFloatRangeType.cpp')] |
| 11: | final class TemplateFloatRangeType extends FloatRangeType implements TemplateType |
| 12: | { |
| 13: | |
| 14: | |
| 15: | use TemplateTypeTrait; |
| 16: | |
| 17: | |
| 18: | |
| 19: | |
| 20: | public function __construct( |
| 21: | TemplateTypeScope $scope, |
| 22: | TemplateTypeStrategy $templateTypeStrategy, |
| 23: | TemplateTypeVariance $templateTypeVariance, |
| 24: | string $name, |
| 25: | FloatRangeType $bound, |
| 26: | ?Type $default, |
| 27: | ) |
| 28: | { |
| 29: | parent::__construct($bound->getMin(), $bound->getMax()); |
| 30: | $this->scope = $scope; |
| 31: | $this->strategy = $templateTypeStrategy; |
| 32: | $this->variance = $templateTypeVariance; |
| 33: | $this->name = $name; |
| 34: | $this->bound = $bound; |
| 35: | $this->default = $default; |
| 36: | } |
| 37: | |
| 38: | |
| 39: | public function tryUnion(Type $otherType): ?Type |
| 40: | { |
| 41: | return null; |
| 42: | } |
| 43: | |
| 44: | public function tryIntersect(Type $otherType): ?Type |
| 45: | { |
| 46: | return null; |
| 47: | } |
| 48: | |
| 49: | } |
| 50: | |