PHP Class Nwidart\Modules\Generators\FileGenerator

Inheritance: extends Generator
Exibir arquivo Open project: nwidart/laravel-modules

Protected Properties

Property Type Description
$contents string The contens will be used.
$filesystem Illuminate\Filesystem\Filesystem | null The laravel filesystem or null.
$path string The path wil be used.

Public Methods

Method Description
__construct ( $path, $contents, null $filesystem = null ) The constructor.
generate ( ) Generate the file.
getContents ( ) : mixed Get contents.
getFilesystem ( ) : mixed Get filesystem.
getPath ( ) : mixed Get path.
setContents ( mixed $contents ) Set contents.
setFilesystem ( Illuminate\Filesystem\Filesystem $filesystem ) Set filesystem.
setPath ( mixed $path ) Set path.

Method Details

__construct() public method

The constructor.
public __construct ( $path, $contents, null $filesystem = null )
$path
$contents
$filesystem null

generate() public method

Generate the file.
public generate ( )

getContents() public method

Get contents.
public getContents ( ) : mixed
return mixed

getFilesystem() public method

Get filesystem.
public getFilesystem ( ) : mixed
return mixed

getPath() public method

Get path.
public getPath ( ) : mixed
return mixed

setContents() public method

Set contents.
public setContents ( mixed $contents )
$contents mixed

setFilesystem() public method

Set filesystem.
public setFilesystem ( Illuminate\Filesystem\Filesystem $filesystem )
$filesystem Illuminate\Filesystem\Filesystem

setPath() public method

Set path.
public setPath ( mixed $path )
$path mixed

Property Details

$contents protected_oe property

The contens will be used.
protected string $contents
return string

$filesystem protected_oe property

The laravel filesystem or null.
protected Filesystem,Illuminate\Filesystem|null $filesystem
return Illuminate\Filesystem\Filesystem | null

$path protected_oe property

The path wil be used.
protected string $path
return string