Pingpp\PingppObject::serializeParameters PHP Method

serializeParameters() public method

public serializeParameters ( ) : array
return array A recursive mapping of attributes to values for this object, including the proper value for deleted attributes.
    public function serializeParameters()
    {
        $params = array();
        if ($this->_unsavedValues) {
            foreach ($this->_unsavedValues->toArray() as $k) {
                $v = $this->{$k};
                if ($v === NULL) {
                    $v = '';
                }
                $params[$k] = $v;
            }
        }
        // Get nested updates.
        foreach (self::$nestedUpdatableAttributes->toArray() as $property) {
            if (isset($this->{$property}) && $this->{$property} instanceof PingppObject) {
                $params[$property] = $this->{$property}->serializeParameters();
            }
        }
        return $params;
    }