PHP Class Sleimanx2\Plastic\Mappings\Creator

Afficher le fichier Open project: sleimanx2/plastic Class Usage Examples

Protected Properties

Свойство Type Description
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$postCreate array The registered post create hooks.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Filesystem\Filesystem $filesystem ) MappingCreator constructor.
afterCreate ( Closure $callback ) : void Register a post migration create hook.
create ( $model, $path ) : string Create a mapping file.
getFilesystem ( ) : Illuminate\Filesystem\Filesystem Return the filesystem instance.
getStubPath ( ) : string Get the path to the stubs.

Méthodes protégées

Méthode Description
firePostCreateHooks ( ) : void Fire the registered post create hooks.
getClassName ( $model ) : string Get the class name of a migration name.
getPath ( string $model, string $path ) : string Get the full path name to the mapping.
getStub ( ) : string Get the mapping stub template.
populateStub ( string $model, string $stub ) : string Populate the place-holders in the mapping stub.

Method Details

__construct() public méthode

MappingCreator constructor.
public __construct ( Illuminate\Filesystem\Filesystem $filesystem )
$filesystem Illuminate\Filesystem\Filesystem

afterCreate() public méthode

Register a post migration create hook.
public afterCreate ( Closure $callback ) : void
$callback Closure
Résultat void

create() public méthode

Create a mapping file.
public create ( $model, $path ) : string
$model
$path
Résultat string

firePostCreateHooks() protected méthode

Fire the registered post create hooks.
protected firePostCreateHooks ( ) : void
Résultat void

getClassName() protected méthode

Get the class name of a migration name.
protected getClassName ( $model ) : string
$model
Résultat string

getFilesystem() public méthode

Return the filesystem instance.
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem
Résultat Illuminate\Filesystem\Filesystem

getPath() protected méthode

Get the full path name to the mapping.
protected getPath ( string $model, string $path ) : string
$model string
$path string
Résultat string

getStub() protected méthode

Get the mapping stub template.
protected getStub ( ) : string
Résultat string

getStubPath() public méthode

Get the path to the stubs.
public getStubPath ( ) : string
Résultat string

populateStub() protected méthode

Populate the place-holders in the mapping stub.
protected populateStub ( string $model, string $stub ) : string
$model string
$stub string
Résultat string

Property Details

$files protected_oe property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
Résultat Illuminate\Filesystem\Filesystem

$postCreate protected_oe property

The registered post create hooks.
protected array $postCreate
Résultat array