public function __get($name)Inherited
$name |
wild |
public function __set($name, $value)Inherited
$name | ||
$value |
wild |
public function current()Inherited
wild |
public function key()Inherited
wild |
public function next()Inherited
wild |
public function rewind()Inherited
wild |
public function valid()Inherited
wild |
private function throwOnAttemptedIteration()Inherited
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
string | Value of the constant. |
public function __construct($root)
Constructor.
string | $root | The root directory. |
this | //Implicit.// |
public function getProperty($path, $key)
Get the specified EditorConfig property for the specified path.
string | $path | |
string | $key |
wild |
public function getProperties($path)
Get the EditorConfig properties for the specified path.
Returns a map containing all of the EditorConfig properties which apply to the specified path. The following rules are applied when processing EditorConfig files:
- If a glob does not contain /, it can match a path in any subdirectory.
- If the first character of a glob is /, it will only match files in the same directory as the .editorconfig file.
- Properties and values are case-insensitive.
- Unknown properties will be silently ignored.
- Values are not validated against the specification (this may change in the future).
- Invalid glob patterns will be silently ignored.
string | $path |
map<string, wild> |
private function getEditorConfigs($path)
Returns the EditorConfig files which affect the specified path.
Find and parse all .editorconfig files between the specified path and the root directory. The results are returned in the same order that they should be matched.
return list<pair<string, map>>
$path |
wild |