Skip to content

Instantly share code, notes, and snippets.

@andriesss
Created September 17, 2013 07:05
Show Gist options
  • Save andriesss/6590912 to your computer and use it in GitHub Desktop.
Save andriesss/6590912 to your computer and use it in GitHub Desktop.
<?php
interface Comparable {
function compare(self $compare);
}
class Foo implements Comparable {
function compare(self $compare) {}
}
class Bar implements Comparable {
function compare(self $compare) {}
}
$foo = new Foo();
$bar = new Bar();
$foo->compare($foo);
$bar->compare($bar);
@Ocramius
Copy link

@andriesss that's about right... Again, I don't think that's a PHP issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment