Arete \ Collection管道
使用对象集合,而无需进行大量可调用,循环和ifs操作。
阅读我想在PHP中使用类似的东西,因此诞生了。 和 (该集合中的所有功能都在链中可用)。
例子
这是我们将使用的示例组
use Arete \ CollectionPipeline \ CollectionPipeline as CP ;
class MockEntity {
public $ id ;
public $ name ;
public function __construct ( $ id , $ name ) {
$ this -> id = $ id ;
$ this -> name = $ name ;
}
public function getId () {
return $ th
评论0
最新资源