Lines Matching refs:type
547 …$attribute->type = (false !== strpos($propertyComment, '@var') && preg_match('/@var\s+([^\s]+)…
591 $type = isset(self::$typeMap[$attribute->type])
592 ? self::$typeMap[$attribute->type]
593 : $attribute->type;
596 if ('mixed' === $type) {
603 case (false !== $pos = strpos($type, '<')):
604 $arrayType = substr($type, $pos + 1, -1);
605 $type = 'array';
615 case (false !== $pos = strrpos($type, '[')):
616 $arrayType = substr($type, 0, $pos);
617 $type = 'array';
627 $metadata['attribute_types'][$attribute->name]['type'] = $type;
628 $metadata['attribute_types'][$attribute->name]['value'] = $attribute->type;
790 foreach (self::$annotationMetadata[$name]['attribute_types'] as $property => $type) {
798 if ($type['required']) {
799 …notationException::requiredError($property, $originalName, $this->context, 'a(n) '.$type['value']);
805 if ($type['type'] === 'array') {
812 if (isset($type['array_type'])) {
814 … if (gettype($item) !== $type['array_type'] && !$item instanceof $type['array_type']) {
815 …perty, $originalName, $this->context, 'either a(n) '.$type['array_type'].', or an array of '.$type…
819 …} elseif (gettype($values[$property]) !== $type['type'] && !$values[$property] instanceof $type['t…
820 …on::attributeTypeError($property, $originalName, $this->context, 'a(n) '.$type['value'], $values[$…