1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
<?php
/**
* @type CallCombo
*
* created to provide
* simple, 'from' and 'to' arrays
*/
namespace Catapult;
/**
*
* CallCombo should be accessible
* by bridge. This is conviniece
* and be used instead of passing each
* call individualy
*/
final class CallCombo extends Types {
public function Make($args /* polymorphic */)
{
$calls = func_get_args();
$call_ids = array();
foreach ($calls as $call) {
if (is_object($call)) {
$call_ids[] = $call->id;
} else {
$call_ids[] = $call;
}
}
return $call_ids;
}
public function __toString() {
return implode(",", $this->$call_ids);
}
}