Returns the path either of the current file or of a class.
Name | Type | Description |
---|---|---|
of | string|null | (Optional) The class name |
Documentation source:
{{ relpath(of: file()) }}
{{ relpath(of: file(of:'MyClass')) }}
Result:
build/export/doc.md
code/MyClass.php