Download the PHP package chloroplast/marmot-common without Composer
On this page you can find all versions of the php package chloroplast/marmot-common. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chloroplast/marmot-common
More information about chloroplast/marmot-common
Files in chloroplast/marmot-common
Download chloroplast/marmot-common
More information about chloroplast/marmot-common
Files in chloroplast/marmot-common
Vendor chloroplast
Package marmot-common
Short Description marmot framework common model
License MIT
Package marmot-common
Short Description marmot framework common model
License MIT
Please rate this library. Is it a good library?
Informations about the package marmot-common
marmot-common
概述
文件目录
文件概述
ComplexData 抽象复杂数据类
设置复杂数据抽象类,每个复杂数据对象需要继承该类.并且需要实现自己的:
save()
fetch()
如果是存储mongo
复杂数据类,则需要使用mongo
的adapter
.
IObjet marmot对象接口
setId(id)
: 设置对象id
getId()
: 获取对象id
setStatusTime(int $statusTime)
: 设置对象状态更新时间getStatusTime() int
: 获取对象状态更新时间setStatus(int $status)
: 设置对象状态getStatus(): int
: 返回对象状态setCreateTime(int $createTime)
: 设置创建时间getCreateTime() : int
: 获取创建时间setUpdateTime(int $updateTime)
: 设置更新时间getUpdateTime() : int
: 获取更新时间
用于抽象我们所有的类的标示
,所有使用了该性状的类,必须具体化这两个方法.
objectStatus 对象状态性状
包含了2
个protected
的参数:
protected $statusTime
: 状态的修改时间protected $status
: 状态
3
个公共方法:
setStatusTime()
: 设置状态修改时间getStatusTime()
: 获取状态修改时间getStatus()
: 获取状态
用于抽象我们所有的类的状态
.因为每个类的状态表示不一样,所以我们抽象出来一个设置状态
方法,让使用该性状的类根据自己的具体情况来使用它.
objectTime 对象时间性状
包含了2
个protected
的参数:
protected $createTime
: 创建时间protected $updateTime
: 修改时间
4
个公共方法:
setCreateTime(int $createTime)
: 设置创建时间getCreateTime() : int
: 获取创建时间setUpdateTime(int $updateTime)
: 设置更新时间getUpdateTime() : int
: 获取更新时间
object
该文件引用了所有我们对于对象公共的性状
.这样如果一个类只需要单独引用我们该Object
性状即可,不需要分开引用其他性状.
使用
版本概述
- 1.0.0
- 1.1.0
- 1.2.0
- 1.3.0
- 1.4.0
All versions of marmot-common with dependencies
PHP Build Version
Package Version
Requires
chloroplast/marmot-interface Version
0.9.1
The package chloroplast/marmot-common contains the following files
Loading the files please wait ....