| Total Complexity | 8 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Format |
||
| 13 | { |
||
| 14 | protected $path_time_stamp; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Format constructor. |
||
| 18 | * @param null $path_time_stamp |
||
|
|
|||
| 19 | */ |
||
| 20 | public function __construct($path_time_stamp=null) |
||
| 21 | { |
||
| 22 | if (!empty($path_time_stamp)) { |
||
| 23 | $this->path_time_stamp = $path_time_stamp; |
||
| 24 | } else { |
||
| 25 | $this->path_time_stamp = date('Y_m_d_His'); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param $type |
||
| 31 | * @param null $name |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getMigrationName($type, $name=null) |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param mixed|array $data |
||
| 51 | * @param int $tabs |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function prettyVarExport($data, $tabs=1) |
||
| 69 | } |
||
| 70 | |||
| 71 | } |