Added sniff that detects if an entity implements the automatically generated interface

Also made the project compatible with PHP 5.4 again
I'm not sure if the standards should be followed here, but it doesn't follow PSR-1 and 2.