PHP Class Nwidart\Modules\Support\Migrations\NameParser

Afficher le fichier Open project: nwidart/laravel-modules Class Usage Examples

Protected Properties

Свойство Type Description
$actions array The available schema actions.
$data array The array data.
$name string The migration name.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
fetchData ( ) : array Fetch the migration name to an array data.

Method Details

__construct() public méthode

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

fetchData() protected méthode

Fetch the migration name to an array data.
protected fetchData ( ) : array
Résultat array

getAction() public méthode

Get schema type or action.
public getAction ( ) : string
Résultat string

getData() public méthode

Get the array data.
public getData ( ) : array
Résultat array

getMatches() public méthode

Get matches data from regex.
public getMatches ( ) : array
Résultat array

getOriginalName() public méthode

Get original migration name.
public getOriginalName ( ) : string
Résultat string

getPattern() public méthode

Get name pattern.
public getPattern ( ) : string
Résultat string

getTableName() public méthode

Get the table will be used.
public getTableName ( ) : string
Résultat string

is() public méthode

Determine whether the given type is same with the current schema action or type.
public is ( $type ) : boolean
$type
Résultat boolean

isAdd() public méthode

Determine whether the current schema action is a adding action.
public isAdd ( ) : boolean
Résultat boolean

isCreate() public méthode

Determine whether the current schema action is a creating action.
public isCreate ( ) : boolean
Résultat boolean

isDelete() public méthode

Determine whether the current schema action is a deleting action.
public isDelete ( ) : boolean
Résultat boolean

isDrop() public méthode

Determine whether the current schema action is a dropping action.
public isDrop ( ) : boolean
Résultat boolean

Property Details

$actions protected_oe property

The available schema actions.
protected array $actions
Résultat array

$data protected_oe property

The array data.
protected array $data
Résultat array

$name protected_oe property

The migration name.
protected string $name
Résultat string