landing-klikaset/wp-content/plugins/contact-form-7/includes/pocket-holder.php

21 lines
325 B
PHP
Raw Normal View History

2024-05-06 11:04:37 +07:00
<?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;
}
}