Simple Template implementation.
◆ addMessage()
Samy\DataVersion\Template::addMessage |
( |
string |
$Text, |
|
|
string |
$Type = "info" |
|
) |
| |
|
protected |
Return an instance with provided message.
- Parameters
-
[in] | string | $Text | The message text |
[in] | string | $Type | The message type |
- Returns
- static
◆ getClassName()
Samy\DataVersion\Template::getClassName |
( |
string |
$Names | ) |
|
|
protected |
Retrieve PSR-1 Class name.
- Parameters
-
- Returns
- string
◆ getMessages()
Samy\DataVersion\Template::getMessages |
( |
| ) |
|
Retrieve messages.
- Returns
- array<array<string,string>>
◆ migration()
Samy\DataVersion\Template::migration |
( |
string |
$Description | ) |
|
Generate a blank migration class template.
- Parameters
-
[in] | string | $Description | The template description |
- Returns
- static
◆ seed()
Samy\DataVersion\Template::seed |
( |
string |
$Description | ) |
|
Generate a blank seed class template.
- Parameters
-
[in] | string | $Description | The template description |
- Returns
- static
◆ withDirectory()
Samy\DataVersion\Template::withDirectory |
( |
string |
$Directory | ) |
|
Return an instance with provided directory.
- Parameters
-
[in] | string | $Directory | The directory |
- Returns
- static
◆ writeTemplate()
Samy\DataVersion\Template::writeTemplate |
( |
string |
$Filename, |
|
|
string |
$TemplateName, |
|
|
array |
$TemplateData = array() |
|
) |
| |
|
protected |
Write templalte.
- Parameters
-
[in] | string | $Filename | The filename |
[in] | string | $TemplateName | The template name |
[in] | arrat | $TemplateData | The template data |
- Returns
- bool
◆ $directory
Samy\DataVersion\Template::$directory = "" |
|
protected |
◆ $messages
Samy\DataVersion\Template::$messages = array() |
|
protected |
The documentation for this class was generated from the following file: