I have a function that takes a member of a particular class:
public function addPage(My_Page $page) { // ... }
I\'d like to make another
Instead of passing an array of objects (array(My_Page)), define your own class and require an instance of it in your function:
array(My_Page)
class MyPages { ... } public function addPages(MyPages pages)