public function minimize()
    {
        foreach (get_object_vars($this) as $property => $value) {
            if ($value instanceof self) {
                $value->minimize();

            } elseif (is_array($value)) {
                $this->minimizeArray($value);
            }
        }

        return $this;
    }