File "pocket-holder.php"

Full Path: /home/ycoalition/public_html/blog/wp-admin/js/widgets/plugins/contact-form-7/includes/pocket-holder.php
File size: 325 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

/**
 * Handy trait provides methods to handle dynamic properties.
 */
trait WPCF7_PocketHolder {

	protected $pocket = array();

	public function pull( $key ) {
		if ( isset( $this->pocket[$key] ) ) {
			return $this->pocket[$key];
		}
	}

	public function push( $key, $value ) {
		$this->pocket[$key] = $value;
	}

}