Feature/magento constraint

Bug fix: [no]
Feature addition: [yes]
Backwards compatibility break: [no]
Unit test passes: [yes]
Checkstyle issues: [no]