/** * Construct a VMware_VCloud_API_ReferenceType data object. * * @param string $url URL used as href attribute * @param string $tagName Tag name used as the XML element tag * @param string $type Content-type of the vCloud resource entity * @param string $name Name of the entity, used as name attribute * @return VMware_VCloud_API_ReferenceType * @since Version 1.0.0 */ public static function createReferenceTypeObj($url, $tagName = null, $type = null, $name = null) { $ref = new VMware_VCloud_API_ReferenceType(); $ref->set_href($url); if ($type) { $ref->set_type($type); } if ($name) { $ref->set_name($name); } if ($tagName) { $ref->set_tagName($tagName); } return $ref; }