static function createEmployee($amount, $class, $rank, $leader) { for($i=1; $i<=$amount; $i++ ) { $employees[] = new $class($rank, $leader); } return $employees; }
Standard input is empty
static function createEmployee($amount, $class, $rank, $leader) { $employees = array(); for($i=1; $i<=$amount; $i++ ) { $employees[] = new $class($rank, $leader); } return $employees; }