public function map($func) { $ret = array(); foreach ($this as $obj) { $ret[] = $func($obj); } return $ret; }