roave/dont
最新稳定版本:1.6.0
Composer 安装命令:
composer require roave/dont
包简介
A small set of traits that can be used to prevent misuse of your objects
README 文档
README
roave/dont is a small PHP package aimed at enforcing good
practices when it comes to designing
defensive code.
Installation
composer require roave/dont
Usage
The package currently provides the following traits:
Dont\DontDeserialiseDont\DontSerialiseDont\DontCloneDont\DontGetDont\DontSetDont\DontCallDont\DontCallStaticDont\DontToStringDont\JustDontDont\DontInstantiate
Usage is straightforward:
use Dont\DontSerialise; class MyClass { use DontSerialise; } serialize(new MyClass); // will throw an exception
统计信息
- 总下载量: 256.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 402
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-11