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;
    }
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;
    }
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 ; }
Recursively remove all properties that don't belong in the minimal representation of this object
@return $this
Recursively remove all properties that don t belong in the minimal representation of this object