Add operator class and tests

This PR depends on #5 before it can be merged.

Also, the tests won't pass until the entity PR is merged.
Is knowing this useful? The only time this should be false is if link_ids was empty. I think returning $this would be more useful.