| 1 | <?php |
||
| 9 | class EntityGeneratorCommand |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The entity namespace |
||
| 13 | * @string |
||
| 14 | */ |
||
| 15 | public $namespace; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The entity name |
||
| 19 | * @string |
||
| 20 | */ |
||
| 21 | public $name; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The entity description |
||
| 25 | * @string |
||
| 26 | */ |
||
| 27 | public $description; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The entity slug form the table name |
||
| 31 | * @string |
||
| 32 | */ |
||
| 33 | public $slug; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The entity database prefix |
||
| 37 | * @string |
||
| 38 | */ |
||
| 39 | public $prefix; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Is the entity locked? means it cant be erase |
||
| 43 | * @boolean |
||
| 44 | */ |
||
| 45 | public $locked; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Should the command create the DB table? |
||
| 49 | * @boolean |
||
| 50 | */ |
||
| 51 | public $create_table; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * is there a table name defined? |
||
| 55 | * @boolean |
||
| 56 | */ |
||
| 57 | public $table_name; |
||
| 58 | |||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $namespace |
||
| 62 | * @param string $name |
||
| 63 | * @param string $description |
||
| 64 | * @param string $slug |
||
| 65 | * @param string $prefix |
||
| 66 | * @param bool $locked |
||
| 67 | * @param string $table_name |
||
| 68 | */ |
||
| 69 | public function __construct($namespace = "", $name = "", $description = "", $slug = "", $prefix = "", $locked = true, $create_table = true, $table_name = null) |
||
| 80 | } |
||
| 81 |