RewriteCollection
class RewriteCollection
Constants
| CLASS_LEVEL |
|
| METHOD_LEVEL |
|
Properties
| protected array | $methods | Which methods can be rewritten. |
|
| protected array | $pattern | Method wildcard patterns. |
|
| protected int | $level | Rewrite level. |
|
| protected array | $shouldNotRewriteMethods |
Methods
__construct(string $class)
No description
add(string|array $methods)
Add methods or method patterns to the rewrite collection.
bool
shouldRewrite(string $method)
Determine if a method should be rewritten.
setLevel(int $level)
Set the rewrite level.
int
getLevel()
Get the rewrite level.
array
getMethods()
Get the explicit method names to rewrite.
string
getClass()
Get the class name this collection belongs to.
array
getShouldNotRewriteMethods()
Get the methods that should never be rewritten.
Details
at line 32
__construct(string $class)
No description
at line 39
RewriteCollection
add(string|array $methods)
Add methods or method patterns to the rewrite collection.
at line 57
bool
shouldRewrite(string $method)
Determine if a method should be rewritten.
at line 82
RewriteCollection
setLevel(int $level)
Set the rewrite level.
at line 91
int
getLevel()
Get the rewrite level.
at line 99
array
getMethods()
Get the explicit method names to rewrite.
at line 107
string
getClass()
Get the class name this collection belongs to.
at line 115
array
getShouldNotRewriteMethods()
Get the methods that should never be rewritten.