PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
StaticTypeMapper
/
ValueObject
/
Type
<?php declare (strict_types=1); namespace Rector\StaticTypeMapper\ValueObject\Type; use PHPStan\TrinaryLogic; use PHPStan\Type\Generic\GenericObjectType; use PHPStan\Type\Type; /** * @api */ final class ShortenedGenericObjectType extends GenericObjectType { /** * @var class-string * @readonly */ private $fullyQualifiedName; /** * @param class-string $fullyQualifiedName */ public function __construct(string $shortName, array $types, string $fullyQualifiedName) { $this->fullyQualifiedName = $fullyQualifiedName; parent::__construct($shortName, $types); } public function isSuperTypeOf(Type $type) : TrinaryLogic { $genericObjectType = new GenericObjectType($this->fullyQualifiedName, $this->getTypes()); return $genericObjectType->isSuperTypeOf($type); } public function getShortName() : string { return $this->getClassName(); } }
[-] ParentStaticType.php
[edit]
[-] AliasedObjectType.php
[edit]
[+]
..
[-] FullyQualifiedGenericObjectType.php
[edit]
[-] ParentObjectWithoutClassType.php
[edit]
[-] SelfObjectType.php
[edit]
[-] ShortenedGenericObjectType.php
[edit]
[-] NonExistingObjectType.php
[edit]
[-] SelfStaticType.php
[edit]
[-] FullyQualifiedObjectType.php
[edit]
[-] ShortenedObjectType.php
[edit]
[-] SimpleStaticType.php
[edit]