felixarntz/theme-boilerplate

View on GitHub
inc/library/customizer/class-customize-partial.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Super_Awesome_Theme_Customize_Partial class
 *
 * @package Super_Awesome_Theme
 * @license GPL-2.0-or-later
 * @link    https://super-awesome-author.org/themes/super-awesome-theme/
 */

/**
 * Class representing a Customizer partial.
 *
 * Since core already has acceptable classes for these, this class only contains
 * constants for easy property access.
 *
 * @since 1.0.0
 */
final class Super_Awesome_Theme_Customize_Partial {

    /**
     * ID property name.
     *
     * @since 1.0.0
     */
    const PROP_ID = 'id';

    /**
     * Capability property name.
     *
     * @since 1.0.0
     */
    const PROP_CAPABILITY = 'capability';

    /**
     * Type property name.
     *
     * @since 1.0.0
     */
    const PROP_TYPE = 'type';

    /**
     * Settings property name.
     *
     * @since 1.0.0
     */
    const PROP_SETTINGS = 'settings';

    /**
     * Selector property name.
     *
     * @since 1.0.0
     */
    const PROP_SELECTOR = 'selector';

    /**
     * Render callback property name.
     *
     * @since 1.0.0
     */
    const PROP_RENDER_CALLBACK = 'render_callback';

    /**
     * Container inclusive property name.
     *
     * @since 1.0.0
     */
    const PROP_CONTAINER_INCLUSIVE = 'container_inclusive';

    /**
     * Fallback refresh property name.
     *
     * @since 1.0.0
     */
    const PROP_FALLBACK_REFRESH = 'fallback_refresh';
}