Gets the executable lines of a class, by examining the start and end lines of each method.
public static executable ( mixed $class, array $options = [] ) : array | ||
$class | mixed | Class name as a string or object instance. |
$options | array | Set of options: - `'self'` _boolean_: If `true` (default), only returns lines of methods defined in `$class`, excluding methods from inherited classes. - `'methods'` _array_: An arbitrary list of methods to search, as a string (single method name) or array of method names. - `'filter'` _boolean_: If `true`, filters out lines containing only whitespace or braces. Note: for some reason, the Zend engine does not report `switch` and `try` statements as executable lines, as well as parts of multi-line assignment statements, so they are filtered out as well. |
Résultat | array | Returns an array of the executable line numbers of the class. |