Add equals method to Violation.

Ok so in this cas why not:
```php
 return (serialize($this) === serialize($violation));
```