protected static function to_instances($data) { return array_map(array(get_called_class(), 'to_instance'), $data); }