public static function create($a, $options = array()) { $collection = new self(); $collection->merge_options($options); if (is_array($a)) { foreach ($a as $executor) { $collection->add(\launchers\executors\Executor::create($executor)); } } return $collection; }