getValueAttributeValue() public method

public getValueAttributeValue ( $withNamespace = false, $withinItsType = true, $asType = null ) : mixed
return mixed
コード例 #1
0
 /**
  * @param Tag $tag
  * @param Tag $child
  * @return TagRestriction
  */
 private function parseRestrictionChild(Tag $tag, Tag $child)
 {
     if ($child->hasAttributeValue() && ($model = $this->getModel($tag)) instanceof Struct) {
         $model->addMeta($child->getName(), $child->getValueAttributeValue(true));
     } else {
         foreach ($child->getAttributes() as $attribute) {
             $this->parseRestrictionChildAttribute($tag, $child, $attribute);
         }
     }
     return $this;
 }
コード例 #2
0
 /**
  * @param Tag $tag
  * @param Tag $child
  */
 private function parseRestrictionChild(Tag $tag, Tag $child)
 {
     if ($child->hasAttributeValue() && ($model = $this->getModel($tag)) instanceof Struct) {
         $model->addMeta($child->getName(), $child->getValueAttributeValue(true));
     }
 }