Skip to content

Instantly share code, notes, and snippets.

@mgsmus
Last active December 8, 2019 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgsmus/76b142a6fc503de84c02bc62037979a6 to your computer and use it in GitHub Desktop.
Save mgsmus/76b142a6fc503de84c02bc62037979a6 to your computer and use it in GitHub Desktop.
<?php
interface Concatable {
function concat(Iterator $input);
}
class Collection implements Concatable {
// Sadece Iterator değil tüm iterable tipleri kabul edecek
function concat(iterable $input) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment