예제 #1
0
파일: intersect.php 프로젝트: wemash/hooray
<?php

Chain::add('intersect', function ($data, $other) {
    return array_intersect($data, Hooray::unwrap([$other]));
});
예제 #2
0
파일: hooray.php 프로젝트: wemash/hooray
function hooray()
{
    return new Hooray(Hooray::unwrap(func_get_args()));
}
예제 #3
0
 function testUnwrapsHoorays()
 {
     $this->assertEquals([1], Hooray::unwrap([new Hooray([1])]));
 }