Example #1
0
 /**
  * Get full reference
  *
  * @return mixed
  */
 public function getReferenceFull()
 {
     $reference_type = new SCA_ReferenceType();
     // get the binding info from the reference comment
     $binding = null;
     if (($bindingType = $this->getBinding()) != null) {
         $binding = $this->_getSingleWordFollowing(self::BINDING);
         $reference_type->setBindingType($bindingType);
     } else {
         throw new SCA_RuntimeException("An @reference was found with no following" . " @binding, or an invalid @binding");
     }
     $reference_type->addBinding($binding);
     $reference_type->setBindingConfig($this->getNameValuePairs());
     // get any extra type info from the reference comment
     $types = $this->getXsdTypes();
     $reference_type->addTypes($types);
     return $reference_type;
 }