|
| 1 | +<?php |
| 2 | +namespace QuickBooksOnline\API\Data; |
| 3 | + |
| 4 | +/** |
| 5 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 6 | + * @xmlType |
| 7 | + * @xmlName IPPCustomExtensions |
| 8 | + * @var IPPCustomExtensions |
| 9 | + * @xmlDefinition |
| 10 | + Product: IES |
| 11 | + Description: Custom extensions for user defined categories like dimensions |
| 12 | + |
| 13 | + */ |
| 14 | +class IPPCustomExtensions |
| 15 | + { |
| 16 | + |
| 17 | + /** |
| 18 | + * Initializes this object, optionally with pre-defined property values |
| 19 | + * |
| 20 | + * Initializes this object and it's property members, using the dictionary |
| 21 | + * of key/value pairs passed as an optional argument. |
| 22 | + * |
| 23 | + * @param dictionary $keyValInitializers key/value pairs to be populated into object's properties |
| 24 | + * @param boolean $verbose specifies whether object should echo warnings |
| 25 | + */ |
| 26 | + public function __construct($keyValInitializers=array(), $verbose=FALSE) |
| 27 | + { |
| 28 | + foreach($keyValInitializers as $initPropName => $initPropVal) |
| 29 | + { |
| 30 | + if (property_exists('IPPCustomExtensions',$initPropName) || property_exists('QuickBooksOnline\API\Data\IPPCustomExtensions',$initPropName)) |
| 31 | + { |
| 32 | + $this->{$initPropName} = $initPropVal; |
| 33 | + } |
| 34 | + else |
| 35 | + { |
| 36 | + if ($verbose) |
| 37 | + echo "Property does not exist ($initPropName) in class (".get_class($this).")"; |
| 38 | + } |
| 39 | + } |
| 40 | + } |
| 41 | + |
| 42 | + |
| 43 | + /** |
| 44 | + * @Definition |
| 45 | + Product: IES |
| 46 | + Description: Holds type of the custom extension eg. DIMENSION |
| 47 | + |
| 48 | + * @xmlType element |
| 49 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 50 | + * @xmlMinOccurs 1 |
| 51 | + * @xmlName ExtensionType |
| 52 | + * @var string |
| 53 | + */ |
| 54 | + public $ExtensionType; |
| 55 | + /** |
| 56 | + * @Definition |
| 57 | + Product: IES |
| 58 | + Description: Holds the key value pairs of the extension |
| 59 | + |
| 60 | + * @xmlType element |
| 61 | + * @xmlNamespace http://schema.intuit.com/finance/v3 |
| 62 | + * @xmlMinOccurs 0 |
| 63 | + * @xmlMaxOccurs unbounded |
| 64 | + * @xmlName AssociatedValues |
| 65 | + * @var com\intuit\schema\finance\v3\IPPCustomExtensionAssociatedValues |
| 66 | + */ |
| 67 | + public $AssociatedValues; |
| 68 | + |
| 69 | + |
| 70 | +} // end class IPPCustomExtensions |
0 commit comments