Skip to content

Commit cc1dd34

Browse files
committed
Update docs
1 parent 6bfd006 commit cc1dd34

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
# Introduction
2-
31
The following section will dive into the internals of the library. You typically do not need to dive this
42
deep, but I feel it would be good to document it for all of our benefit.

docs/documentation/digging-deeper/win32-model.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PHPWinTools\WmiScripting\Models\UserAccount
1717
## Properties and Attributes
1818

1919
While 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

2323
There 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

3940
Attributes 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
4446
Available castings

0 commit comments

Comments
 (0)