PHP Class Nwidart\Modules\Generators\FileGenerator

Inheritance: extends Generator
Afficher le fichier Open project: nwidart/laravel-modules

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 méthode

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

generate() public méthode

Generate the file.
public generate ( )

getContents() public méthode

Get contents.
public getContents ( ) : mixed
Résultat mixed

getFilesystem() public méthode

Get filesystem.
public getFilesystem ( ) : mixed
Résultat mixed

getPath() public méthode

Get path.
public getPath ( ) : mixed
Résultat mixed

setContents() public méthode

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

setFilesystem() public méthode

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

setPath() public méthode

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

Property Details

$contents protected_oe property

The contens will be used.
protected string $contents
Résultat string

$filesystem protected_oe property

The laravel filesystem or null.
protected Filesystem,Illuminate\Filesystem|null $filesystem
Résultat Illuminate\Filesystem\Filesystem | null

$path protected_oe property

The path wil be used.
protected string $path
Résultat string