Lines Matching refs:attributes

67         $exclusionPolicy = strtoupper((string) $elem->attributes()->{'exclusion-policy'}) ?: 'NONE';
68 $exclude = $elem->attributes()->exclude;
70 …$classAccessType = (string) ($elem->attributes()->{'access-type'} ?: PropertyMetadata::ACCESS_TYPE…
75 if (null !== $accessorOrder = $elem->attributes()->{'accessor-order'}) {
76 …Order((string) $accessorOrder, preg_split('/\s*,\s*/', (string) $elem->attributes()->{'custom-acce…
79 if (null !== $xmlRootName = $elem->attributes()->{'xml-root-name'}) {
83 if (null !== $xmlRootNamespace = $elem->attributes()->{'xml-root-namespace'}) {
86 if (null !== $xmlRootPrefix = $elem->attributes()->{'xml-root-prefix'}) {
90 $readOnlyClass = 'true' === strtolower((string) $elem->attributes()->{'read-only'});
92 $discriminatorFieldName = (string) $elem->attributes()->{'discriminator-field-name'};
95 if (!isset($entry->attributes()->value)) {
99 $discriminatorMap[(string) $entry->attributes()->value] = (string) $entry;
102 if ('true' === (string) $elem->attributes()->{'discriminator-disabled'}) {
113 if (!isset($xmlNamespace->attributes()->uri)) {
117 if (isset($xmlNamespace->attributes()->prefix)) {
118 $prefix = (string) $xmlNamespace->attributes()->prefix;
123 $metadata->registerNamespace((string) $xmlNamespace->attributes()->uri, $prefix);
127 if (isset($xmlDiscriminator->attributes()->attribute)) {
128 …tadata->xmlDiscriminatorAttribute = 'true' === (string) $xmlDiscriminator->attributes()->attribute;
130 if (isset($xmlDiscriminator->attributes()->cdata)) {
131 … $metadata->xmlDiscriminatorCData = 'true' === (string) $xmlDiscriminator->attributes()->cdata;
133 if (isset($xmlDiscriminator->attributes()->namespace)) {
134 … $metadata->xmlDiscriminatorNamespace = (string) $xmlDiscriminator->attributes()->namespace;
139 if (isset($method->attributes()->expression)) {
142 (string) $method->attributes()->name,
143 $this->parseExpression((string) $method->attributes()->expression)
146 if (!isset($method->attributes()->method)) {
149 …rtualPropertyMetadata = new VirtualPropertyMetadata($name, (string) $method->attributes()->method);
175 if (null !== $exclude = $pElem->attributes()->exclude) {
183 if (null !== $expose = $pElem->attributes()->expose) {
187 if (null !== $excludeIf = $pElem->attributes()->{'exclude-if'}) {
191 if (null !== $skip = $pElem->attributes()->{'skip-when-empty'}) {
195 if (null !== $excludeIf = $pElem->attributes()->{'expose-if'}) {
200 if (null !== $version = $pElem->attributes()->{'since-version'}) {
204 if (null !== $version = $pElem->attributes()->{'until-version'}) {
208 if (null !== $serializedName = $pElem->attributes()->{'serialized-name'}) {
212 if (null !== $type = $pElem->attributes()->type) {
218 if (null !== $groups = $pElem->attributes()->groups) {
228 if (isset($colConfig->attributes()->inline)) {
229 … $pMetadata->xmlCollectionInline = 'true' === (string) $colConfig->attributes()->inline;
232 if (isset($colConfig->attributes()->{'entry-name'})) {
233 … $pMetadata->xmlEntryName = (string) $colConfig->attributes()->{'entry-name'};
236 if (isset($colConfig->attributes()->{'skip-when-empty'})) {
237 …Metadata->xmlCollectionSkipWhenEmpty = 'true' === (string) $colConfig->attributes()->{'skip-when-e…
242 if (isset($colConfig->attributes()->namespace)) {
243 … $pMetadata->xmlEntryNamespace = (string) $colConfig->attributes()->namespace;
251 if (isset($colConfig->attributes()->inline)) {
252 … $pMetadata->xmlCollectionInline = 'true' === (string) $colConfig->attributes()->inline;
255 if (isset($colConfig->attributes()->{'entry-name'})) {
256 … $pMetadata->xmlEntryName = (string) $colConfig->attributes()->{'entry-name'};
259 if (isset($colConfig->attributes()->namespace)) {
260 … $pMetadata->xmlEntryNamespace = (string) $colConfig->attributes()->namespace;
263 if (isset($colConfig->attributes()->{'key-attribute-name'})) {
264 … $pMetadata->xmlKeyAttribute = (string) $colConfig->attributes()->{'key-attribute-name'};
270 if (isset($colConfig->attributes()->cdata)) {
271 … $pMetadata->xmlElementCData = 'true' === (string) $colConfig->attributes()->cdata;
274 if (isset($colConfig->attributes()->namespace)) {
275 $pMetadata->xmlNamespace = (string) $colConfig->attributes()->namespace;
279 if (isset($pElem->attributes()->{'xml-attribute'})) {
280 … $pMetadata->xmlAttribute = 'true' === (string) $pElem->attributes()->{'xml-attribute'};
283 if (isset($pElem->attributes()->{'xml-attribute-map'})) {
284 … $pMetadata->xmlAttributeMap = 'true' === (string) $pElem->attributes()->{'xml-attribute-map'};
287 if (isset($pElem->attributes()->{'xml-value'})) {
288 … $pMetadata->xmlValue = 'true' === (string) $pElem->attributes()->{'xml-value'};
291 if (isset($pElem->attributes()->{'xml-key-value-pairs'})) {
292 … $pMetadata->xmlKeyValuePairs = 'true' === (string) $pElem->attributes()->{'xml-key-value-pairs'};
295 if (isset($pElem->attributes()->{'max-depth'})) {
296 $pMetadata->maxDepth = (int) $pElem->attributes()->{'max-depth'};
300 if (null !== $readOnly = $pElem->attributes()->{'read-only'}) {
306 $getter = $pElem->attributes()->{'accessor-getter'};
307 $setter = $pElem->attributes()->{'accessor-setter'};
309 (string) ($pElem->attributes()->{'access-type'} ?: $classAccessType),
314 if (null !== $inline = $pElem->attributes()->inline) {
328 if (!empty($pElem) && null !== $name = $pElem->attributes()->name) {
341 if (!isset($method->attributes()->type)) {
344 if (!isset($method->attributes()->name)) {
348 switch ((string) $method->attributes()->type) {
350 … $metadata->addPreSerializeMethod(new MethodMetadata($name, (string) $method->attributes()->name));
354 …$metadata->addPostSerializeMethod(new MethodMetadata($name, (string) $method->attributes()->name));
358 …etadata->addPostDeserializeMethod(new MethodMetadata($name, (string) $method->attributes()->name));
362 if (!isset($method->attributes()->format)) {
365 if (!isset($method->attributes()->direction)) {
372 … InvalidMetadataException(sprintf('The type "%s" is not supported.', $method->attributes()->name));