Lines Matching refs:docType
88 private function createType(DocType $type, bool $nullable, string $docType = null): ?Type argument
90 $docType = $docType ?? (string) $type;
107 if (!$docType || 'mixed' === $docType) {
111 if ('[]' === substr($docType, -2)) {
112 if ('mixed[]' === $docType) {
117 $collectionValueType = $this->createType($type, false, substr($docType, 0, -2));
123 $docType = $this->normalizeType($docType);
124 list($phpType, $class) = $this->getPhpTypeAndClass($docType);
126 if ('array' === $docType) {
133 private function normalizeType(string $docType): string argument
135 switch ($docType) {
153 return $docType;
157 private function getPhpTypeAndClass(string $docType): array argument
159 if (\in_array($docType, Type::$builtinTypes)) {
160 return [$docType, null];
163 return ['object', substr($docType, 1)];