29 lines
412 B
PHP
29 lines
412 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: zn
|
|
* Date: 2017/7/6
|
|
* Time: 17:08
|
|
*/
|
|
|
|
namespace common\models;
|
|
|
|
|
|
/**
|
|
* 配置表消耗项
|
|
* Class ConfigExpendItem
|
|
* @package common\models
|
|
*/
|
|
class ConfigExpendItem
|
|
{
|
|
public $itemID;
|
|
public $name;
|
|
public $num;
|
|
|
|
public function toString()
|
|
{
|
|
$str=sprintf('%sx%d', $this->name, $this->num);
|
|
|
|
return str_pad($str,20,'-');
|
|
}
|
|
} |