Lines Matching refs:SimpleType
120 class ArrayType extends SimpleType {
150 public function equals(SimpleType $other): bool {
162 class SimpleType { class
168 public static function fromNode(Node $node): SimpleType {
172 return new SimpleType($node->toLowerString(), true);
180 return new SimpleType($node->toString(), false);
188 return new SimpleType($node->toLowerString(), true);
194 public static function fromString(string $typeString): SimpleType
213 return new SimpleType(strtolower($typeString), true);
236 return new SimpleType($typeString, false);
239 public static function null(): SimpleType
241 return new SimpleType("null", true);
244 public static function void(): SimpleType
246 return new SimpleType("void", true);
407 public function equals(SimpleType $other): bool {
413 /** @var SimpleType[] */
424 SimpleType::fromNode($node->type),
425 SimpleType::null(),
430 return new Type([SimpleType::fromNode($node)]);
460 $simpleTypes[] = SimpleType::fromString($simpleTypeName);
470 * @param SimpleType[] $types
500 function(SimpleType $type) {
507 public function tryToSimpleType(): ?SimpleType {
612 /** @var SimpleType[] $classTypes */
615 /** @var SimpleType[] $builtinTypes */
619 * @param SimpleType[] $classTypes
620 * @param SimpleType[] $builtinTypes
632 return implode('|', array_map(function(SimpleType $type) {
641 return implode('|', array_map(function(SimpleType $type) {
1641 /** @var SimpleType|null */
1672 ?SimpleType $enumBackingType,
2483 ? SimpleType::fromNode($class->scalarType) : null,