public function match(
        ModelInterface $model = null,
        PropertyValueBag $input = null,
        PropertyInterface $property = null,
        LegendInterface $legend = null
    ) {
        if ($property === null) {
            return false;
        }

        /** @var $model \MetaModels\DcGeneral\Data\Model */

        $nativeItem = $model->getItem();
        $metaModel  = $nativeItem->getMetaModel();

        if ($metaModel->hasVariants() && !$nativeItem->isVariantBase()) {
            return !in_array($property->getName(), array_keys($metaModel->getInVariantAttributes()));
        }

        return true;
    }
public function match(
        ModelInterface $model = null,
        PropertyValueBag $input = null,
        PropertyInterface $property = null,
        LegendInterface $legend = null
    ) {
        if ($property === null) {
            return false;
        }

        /** @var $model \MetaModels\DcGeneral\Data\Model */

        $nativeItem = $model->getItem();
        $metaModel  = $nativeItem->getMetaModel();

        if ($metaModel->hasVariants() && !$nativeItem->isVariantBase()) {
            return !in_array($property->getName(), array_keys($metaModel->getInVariantAttributes()));
        }

        return true;
    }
{@inheritdoc}