private function buildParams($params)
    {
        $keys = is_array($params) ? $params : func_get_args();

        $array = [];

        foreach ($keys as $key) {
            if (property_exists($this, $key))
                $array = array_merge($array, [$key => $this->$key]);
        }

        return $array;
    }
private function buildParams($params)
    {
        $keys = is_array($params) ? $params : func_get_args();

        $array = [];

        foreach ($keys as $key) {
            if (property_exists($this, $key))
                $array = array_merge($array, [$key => $this->$key]);
        }

        return $array;
    }
private function buildParams ( $ params ) { $ keys = is_array ( $ params ) ? $ params : func_get_args ( ) ; $ array = [ ] ; foreach ( $ keys as $ key ) { if ( property_exists ( $ this , $ key ) ) $ array = array_merge ( $ array , [ $ key => $ this -> $ key ] ) ; } return $ array ; }
Create an array based on the passed keys.
Those keys are properties of this class.

@param $params
@return array
@internal param $keys
Create an array based on the passed keys . Those keys are properties of this class .