Lines Matching refs:attribute
527 foreach ($annotation->value as $attribute) {
528 $this->collectAttributeTypeMetadata($metadata, $attribute);
543 $attribute = new Attribute();
545 $attribute->required = (false !== strpos($propertyComment, '@Required'));
546 $attribute->name = $property->name;
547 …$attribute->type = (false !== strpos($propertyComment, '@var') && preg_match('/@var\s+([^\s]+)…
551 $this->collectAttributeTypeMetadata($metadata, $attribute);
584 * @param Attribute $attribute
588 private function collectAttributeTypeMetadata(&$metadata, Attribute $attribute) argument
591 $type = isset(self::$typeMap[$attribute->type])
592 ? self::$typeMap[$attribute->type]
593 : $attribute->type;
611 $metadata['attribute_types'][$attribute->name]['array_type'] = $arrayType;
623 $metadata['attribute_types'][$attribute->name]['array_type'] = $arrayType;
627 $metadata['attribute_types'][$attribute->name]['type'] = $type;
628 $metadata['attribute_types'][$attribute->name]['value'] = $attribute->type;
629 $metadata['attribute_types'][$attribute->name]['required'] = $attribute->required;