PHP Класс Nwidart\Modules\Support\Migrations\NameParser

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

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

Свойство Тип Описание
$actions array The available schema actions.
$data array The array data.
$name string The migration name.

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

Метод Описание
__construct ( string $name ) The constructor.
getAction ( ) : string Get schema type or action.
getData ( ) : array Get the array data.
getMatches ( ) : array Get matches data from regex.
getOriginalName ( ) : string Get original migration name.
getPattern ( ) : string Get name pattern.
getTableName ( ) : string Get the table will be used.
is ( $type ) : boolean Determine whether the given type is same with the current schema action or type.
isAdd ( ) : boolean Determine whether the current schema action is a adding action.
isCreate ( ) : boolean Determine whether the current schema action is a creating action.
isDelete ( ) : boolean Determine whether the current schema action is a deleting action.
isDrop ( ) : boolean Determine whether the current schema action is a dropping action.

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

Метод Описание
fetchData ( ) : array Fetch the migration name to an array data.

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

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

The constructor.
public __construct ( string $name )
$name string

fetchData() защищенный метод

Fetch the migration name to an array data.
protected fetchData ( ) : array
Результат array

getAction() публичный метод

Get schema type or action.
public getAction ( ) : string
Результат string

getData() публичный метод

Get the array data.
public getData ( ) : array
Результат array

getMatches() публичный метод

Get matches data from regex.
public getMatches ( ) : array
Результат array

getOriginalName() публичный метод

Get original migration name.
public getOriginalName ( ) : string
Результат string

getPattern() публичный метод

Get name pattern.
public getPattern ( ) : string
Результат string

getTableName() публичный метод

Get the table will be used.
public getTableName ( ) : string
Результат string

is() публичный метод

Determine whether the given type is same with the current schema action or type.
public is ( $type ) : boolean
$type
Результат boolean

isAdd() публичный метод

Determine whether the current schema action is a adding action.
public isAdd ( ) : boolean
Результат boolean

isCreate() публичный метод

Determine whether the current schema action is a creating action.
public isCreate ( ) : boolean
Результат boolean

isDelete() публичный метод

Determine whether the current schema action is a deleting action.
public isDelete ( ) : boolean
Результат boolean

isDrop() публичный метод

Determine whether the current schema action is a dropping action.
public isDrop ( ) : boolean
Результат boolean

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

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

The available schema actions.
protected array $actions
Результат array

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

The array data.
protected array $data
Результат array

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

The migration name.
protected string $name
Результат string