34 lines
639 B
PHP
34 lines
639 B
PHP
<?php namespace ZN\Console;
|
|
/**
|
|
* ZN PHP Web Framework
|
|
*
|
|
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
|
*
|
|
* @package ZN
|
|
* @license MIT [http://opensource.org/licenses/MIT]
|
|
* @author Ozan UYKUN [ozan@znframework.com]
|
|
*/
|
|
|
|
use Generate;
|
|
|
|
/**
|
|
* @command create-grand-model
|
|
* @description create-grand-model {ModelName}
|
|
*/
|
|
class CreateGrandModel
|
|
{
|
|
/**
|
|
* Magic constructor
|
|
*
|
|
* @param string $command
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($command)
|
|
{
|
|
new Result(Generate::model($command,
|
|
[
|
|
'extends' => 'GrandModel'
|
|
]));
|
|
}
|
|
} |