dwo/traits

该包已被废弃且不再维护。没有建议的替代包。

安装: 406

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

开放问题: 0

类型:项目

1.1.1 2021-04-16 08:28 UTC

This package is auto-updated.

Last update: 2023-04-16 12:57:10 UTC


README

一组特性,用于快速轻松地构建实体。

class FooEntity
{
    use IdTrait, CreatedAtTrait, NameTrait, StateTrait;

    public function __construct()
    {
        $this->setCreatedAt(new \DateTimeImmutable());
        $this->setState('init');
    }
}