dwo/traits

This package is abandoned and no longer maintained. No replacement package was suggested.

Installs: 406

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:project

1.1.1 2021-04-16 08:28 UTC

This package is auto-updated.

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


README

A collection of traits to build quick and easy entities.

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

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