File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
docs/documentation/digging-deeper Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- # Introduction
2-
31The following section will dive into the internals of the library. You typically do not need to dive this
42deep, but I feel it would be good to document it for all of our benefit.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ PHPWinTools\WmiScripting\Models\UserAccount
1717## Properties and Attributes
1818
1919While each model has all of its possible properties defined, the intended method to get the value of these properties
20- is via [ ` getAttribute ` ] ( #getattribute ) . This allows for mutating or casting the value open retrieval via an
20+ is [ ` getAttribute ` ] ( #getattribute ) . This allows for mutating or casting the value upon retrieval via an
2121[ attribute method] ( #attribute-methods ) , as well as, defining calculated attributes.
2222
2323There are also a couple of properties that should be considered when extending from an existing model.
@@ -31,14 +31,16 @@ without providing a value for `$connection`.
3131### $wmi_class_name
3232#### ` protected $wmi_class_name `
3333
34- This is an optional property, but only if the model you are calling extends an existing ` Win32Model ` .
34+ This is an optional property, but only if the model you are calling extends an existing ` Win32Model ` . If you do not
35+ define this property and a class name cannot determine the WMI class name an exception will be thrown.
3536
3637### $attribute_casting
3738#### ` protected $attribute_casting = [] `
3839
3940Attributes will attempted to be casted to the given type if defined within this array. All definitions of
4041` $attribute_casting ` are merged from the models ancestors by default. This allows you to define ` $attribute_casting ` in
41- both a parent and a child without risk of having the values overridden.
42+ both a parent and a child without risk of having the values overridden. In the case where both the child and parent
43+ class both define the same attribute to be casteds the child casting will be used.
4244
4345``` php
4446Available castings
You can’t perform that action at this time.
0 commit comments