arrayClear(call_user_func('get_object_vars', $this)); } /** * @param array $array * @param array $symbols * @return array */ public function arrayClear(array $array, array $symbols = array('', 0, null)) { return array_diff($array, $symbols); } /** * @param $array * @return $this */ public function getArrayToObject($array) { foreach ($array as $key => $value) { $this->$key = $value; } return $this; } }