메소드 |
설명 |
|
__construct ( string $path, array $replaces = [] ) |
The contructor. |
|
__toString ( ) : string |
Handle magic method __toString. |
|
create ( string $path, array $replaces = [] ) : self |
Create new self instance. |
|
createFromPath ( string $path, array $replaces = [] ) : self |
Create new self instance from full path. |
|
getBasePath ( ) : string | null |
Get base path. |
|
getContents ( ) : mixed | string |
Get stub contents. |
|
getPath ( ) : string |
Get stub path. |
|
getReplaces ( ) : array |
Get replacements. |
|
render ( ) : string |
Get stub contents. |
|
replace ( array $replaces = [] ) |
Set replacements array. |
|
saveTo ( string $path, string $filename ) : boolean |
Save stub to specific path. |
|
setBasePath ( string $path ) |
Set base path. |
|
setPath ( string $path ) : self |
Set stub path. |
|