added if header

This commit is contained in:
ruru4143 2023-12-11 23:21:20 +01:00
parent af66737939
commit 6a51a303f7

View file

@ -735,7 +735,13 @@ class Base_Object {
return \wp_json_encode( $array, \JSON_HEX_TAG | \JSON_HEX_AMP | \JSON_HEX_QUOT ); return \wp_json_encode( $array, \JSON_HEX_TAG | \JSON_HEX_AMP | \JSON_HEX_QUOT );
} }
public function if( bool $b ) { /**
* skips next setter if( false );
*
* @param bool $b
*
*/
public function if( $b ) {
$this->_skip_next = ! $b; $this->_skip_next = ! $b;
return $this; return $this;
} }