<?php
class smthClass {
public $param;
function init () {
$this->param = new stdClass();
$this->param->x = 1;
$this->param->y = 2;
}
function smthMethod($a) {
unset($a->x);
}
}
$smthClass = new smthClass();
$smthClass->init();
$smthClass->smthMethod($smthClass->param);
var_dump($smthClass->param);