Feature adding support for explicit rules

Here I add the code to start building the explicit rules feature. I need suggestions in the way to implement the method `_testInterval `, inside the method I copied the definition from the official Synfony Docs.