/home/techb158/immovalet.com/vendor/doctrine/dbal/src/Types
NameSizeModeActions
ArrayType.php16120644editdlrm
AsciiStringType.php6060644editdlrm
BigIntType.php8570644editdlrm
BinaryType.php13470644editdlrm
BlobType.php13330644editdlrm
BooleanType.php10180644editdlrm
ConversionException.php35500644editdlrm
DateImmutableType.php15550644editdlrm
DateIntervalType.php19830644editdlrm
DateTimeImmutableType.php17150644editdlrm
DateTimeType.php17130644editdlrm
DateTimeTzImmutableType.php15910644editdlrm
DateTimeTzType.php24790644editdlrm
DateType.php15340644editdlrm
DecimalType.php6320644editdlrm
FloatType.php5970644editdlrm
GuidType.php6830644editdlrm
IntegerType.php8520644editdlrm
JsonType.php17900644editdlrm
ObjectType.php15400644editdlrm
PhpDateTimeMappingType.php1830644editdlrm
PhpIntegerMappingType.php1630644editdlrm
SimpleArrayType.php14250644editdlrm
SmallIntType.php8640644editdlrm
StringType.php4830644editdlrm
TextType.php7330644editdlrm
TimeImmutableType.php15550644editdlrm
TimeType.php15380644editdlrm
Type.php81740644editdlrm
TypeRegistry.php28390644editdlrm
Types.php15460644editdlrm
VarDateTimeImmutableType.php14650644editdlrm
VarDateTimeType.php9010644editdlrm
Edit: /home/techb158/immovalet.com/vendor/doctrine/dbal/src/Types/TypeRegistry.php (2839B)
Map of type names and their corresponding flyweight objects. */ private $instances; /** * @param array $instances */ public function __construct(array $instances = []) { $this->instances = $instances; } /** * Finds a type by the given name. * * @throws Exception */ public function get(string $name): Type { if (! isset($this->instances[$name])) { throw Exception::unknownColumnType($name); } return $this->instances[$name]; } /** * Finds a name for the given type. * * @throws Exception */ public function lookupName(Type $type): string { $name = $this->findTypeName($type); if ($name === null) { throw Exception::typeNotRegistered($type); } return $name; } /** * Checks if there is a type of the given name. */ public function has(string $name): bool { return isset($this->instances[$name]); } /** * Registers a custom type to the type map. * * @throws Exception */ public function register(string $name, Type $type): void { if (isset($this->instances[$name])) { throw Exception::typeExists($name); } if ($this->findTypeName($type) !== null) { throw Exception::typeAlreadyRegistered($type); } $this->instances[$name] = $type; } /** * Overrides an already defined type to use a different implementation. * * @throws Exception */ public function override(string $name, Type $type): void { if (! isset($this->instances[$name])) { throw Exception::typeNotFound($name); } if (! in_array($this->findTypeName($type), [$name, null], true)) { throw Exception::typeAlreadyRegistered($type); } $this->instances[$name] = $type; } /** * Gets the map of all registered types and their corresponding type instances. * * @internal * * @return array */ public function getMap(): array { return $this->instances; } private function findTypeName(Type $type): ?string { $name = array_search($type, $this->instances, true); if ($name === false) { return null; } return $name; } }