Skip to content

Commit 06c01f6

Browse files
authored
Adding comment about bitwise constants
1 parent 3c15118 commit 06c01f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Models/Model.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use StellarWP\Models\Contracts\Model as ModelInterface;
99

1010
abstract class Model implements ModelInterface, Arrayable, JsonSerializable {
11+
// Define modes as powers of two so we can use them for bitwise operations.
1112
public const BUILD_MODE_STRICT = 0;
1213
public const BUILD_MODE_IGNORE_MISSING = 1;
1314
public const BUILD_MODE_IGNORE_EXTRA = 2;

0 commit comments

Comments
 (0)