<?php

namespace craft\elements\conditions\assets;

use craft\elements\conditions\ElementCondition;

/**
 * Asset query condition.
 *
 * @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
 * @since 4.0.0
 */
class AssetCondition extends ElementCondition
{
    /**
     * @inheritdoc
     */
    protected function selectableConditionRules(): array
    {
        return array_merge(parent::selectableConditionRules(), [
            DateModifiedConditionRule::class,
            FileSizeConditionRule::class,
            FileTypeConditionRule::class,
            FilenameConditionRule::class,
            HasAltConditionRule::class,
            HeightConditionRule::class,
            SavableConditionRule::class,
            UploaderConditionRule::class,
            ViewableConditionRule::class,
            VolumeConditionRule::class,
            WidthConditionRule::class,
        ]);
    }
}
