# charitable/1.6.55/includes/interfaces/interface-charitable-fields.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.6.55. 58 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.6.55/code/includes/interfaces/interface-charitable-fields.php
- Raw: https://pluginprobe.com/plugins/charitable/1.6.55/raw/includes/interfaces/interface-charitable-fields.php
- Modified: 2022-02-11T02:19:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.6.55/code/includes/interfaces/interface-charitable-fields.php#L10-L20`.

```php
<?php
/**
 * A strict interface for Charitable_Fields models.
 *
 * @package   Charitable/Classes/Charitable_Fields_Interface
 * @version   1.5.0
 * @author    Eric Daams
 * @copyright Copyright (c) 2022, Studio 164a
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU Public License
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! class_exists( 'Charitable_Fields_Interface' ) ) :

    /**
     * Charitable_Fields_Interface
     *
     * @since 1.5.0
     */
    interface Charitable_Fields_Interface {

        /**
         * Get the set value for a particular field.
         *
         * @since  1.5.0
         *
         * @param  string $field The field to get a value for.
         * @return mixed
         */
        public function get( $field );

        /**
         * Check whether a particular field is registered.
         *
         * @since  1.5.0
         *
         * @param  string $field The field to check for.
         * @return boolean
         */
        public function has( $field );

        /**
         * Check whether a particular field has a callback for getting the value.
         *
         * @since  1.5.0
         *
         * @param  string $field The field to check for.
         * @return boolean
         */
        public function has_value_callback( $field );
    }

endif;

```
