mirror of
https://gh.wpcy.net/https://github.com/pawankhated/one-click-wordpress-installer.git
synced 2026-04-22 00:39:17 +08:00
20 lines
325 B
PHP
20 lines
325 B
PHP
<?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;
|
|
}
|
|
|
|
}
|