specification:PHP规范模式的实现

时间:2024-07-09 11:13:13
【文件属性】:

文件名称:specification:PHP规范模式的实现

文件大小:5KB

文件格式:ZIP

更新时间:2024-07-09 11:13:13

PHP

规格 PHP 实现 用法 $ overDue = new OverDueSpecification (); $ noticeSent = new NoticeSentSpecification (); $ inCollection = new InCollectionSpecification (); // example of specification pattern logic chaining $ sendToCollection = $ overDue -> andX ( $ noticeSent ) -> not ( $ inCollection ); foreach ( $ service -> getInvoices () as $ currentInvoice ) { if (!


【文件预览】:
specification-master
----composer.json(868B)
----LICENSE(1KB)
----src()
--------SpecificationInterface.php(300B)
--------CompositeSpecificationInterface.php(599B)
--------Not.php(468B)
--------OrX.php(245B)
--------AndX.php(645B)
--------CompositeSpecification.php(603B)
----README.md(1KB)

网友评论