Skip to content
  • This project
    • Loading...
  • Sign in

Jeff Balicki / stellervista-micro

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • stellervista-micro
  • wp-content
  • plugins
  • contact-form-7
  • includes
  • pocket-holder.php
  • Jeff Balicki's avatar
    plugin · c06ef486 ...
    c06ef486 Browse Files
    Signed-off-by: Jeff <jeff@gotenzing.com>
    Jeff Balicki committed 2023-08-14 12:57:27 -0400
pocket-holder.php 325 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?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;
	}

}