PHP Класс Sleimanx2\Plastic\Mappings\Creator

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$postCreate array The registered post create hooks.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

afterCreate() публичный Метод

Register a post migration create hook.
public afterCreate ( Closure $callback ) : void
$callback Closure
Результат void

create() публичный Метод

Create a mapping file.
public create ( $model, $path ) : string
$model
$path
Результат string

firePostCreateHooks() защищенный Метод

Fire the registered post create hooks.
protected firePostCreateHooks ( ) : void
Результат void

getClassName() защищенный Метод

Get the class name of a migration name.
protected getClassName ( $model ) : string
$model
Результат string

getFilesystem() публичный Метод

Return the filesystem instance.
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem
Результат Illuminate\Filesystem\Filesystem

getPath() защищенный Метод

Get the full path name to the mapping.
protected getPath ( string $model, string $path ) : string
$model string
$path string
Результат string

getStub() защищенный Метод

Get the mapping stub template.
protected getStub ( ) : string
Результат string

getStubPath() публичный Метод

Get the path to the stubs.
public getStubPath ( ) : string
Результат string

populateStub() защищенный Метод

Populate the place-holders in the mapping stub.
protected populateStub ( string $model, string $stub ) : string
$model string
$stub string
Результат string

Описание свойств

$files защищенное свойство

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
Результат Illuminate\Filesystem\Filesystem

$postCreate защищенное свойство

The registered post create hooks.
protected array $postCreate
Результат array