You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Patterns/Pattern.php
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,17 +35,22 @@
35
35
*/
36
36
interface Pattern extends QueryConvertible
37
37
{
38
+
/**
39
+
* Returns whether a variable has been set for this pattern.
40
+
*/
41
+
publicfunctionhasVariableSet(): bool;
42
+
38
43
/**
39
44
* Explicitly assign a named variable to this pattern.
40
45
*
41
-
* @param string|Variable $variable
46
+
* @param null|string|Variable $variable
42
47
*
43
48
* @return $this
44
49
*/
45
50
publicfunctionwithVariable($variable): self;
46
51
47
52
/**
48
-
* Returns the variable of this pattern. This function generates a variable if none has been set.
53
+
* Returns the variable of this pattern. This function generates a variable if none has been set. It will implicitly set the variable of the pattern as well.
0 commit comments