CodeChange
in package
Table of Contents
Properties
- $code : string
- The code which shall be injected
- $filepath : string
- The path at which the code change shall be applied
- $fullOverride : bool
- If true this change should fully override the file, offsets can be ignored
- $offsetEnd : int
- $offsetStart : int
- The offset where code shall be injected
Methods
- __construct() : mixed
- Constructor
Properties
$code
The code which shall be injected
public
string
$code
$filepath
The path at which the code change shall be applied
public
string
$filepath
$fullOverride
If true this change should fully override the file, offsets can be ignored
public
bool
$fullOverride
= true
$offsetEnd
public
int
$offsetEnd
= 0
$offsetStart
The offset where code shall be injected
public
int
$offsetStart
= 0
Methods
__construct()
Constructor
public
__construct(string $filepath, string $code) : mixed
Parameters
- $filepath : string
- $code : string