43 lines
1016 B
PHP
Raw Normal View History

2020-04-28 16:34:17 +08:00
<?php
2020-04-28 22:02:03 +08:00
namespace catcher\generate\template;
2020-04-28 16:34:17 +08:00
trait Content
{
public function header()
{
$year = date('Y', time());
return <<<TMP
<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
TMP;
}
/**
* set namespace
*
* @time 2020年04月27日
* @param $namespace
* @return string
*/
public function nameSpace($namespace)
{
return <<<TMP
namespace {$namespace};
TMP;
}
}