src/Period.php
public function negated() : Period
    {
        if ($this->isZero()) {
            return $this;
        }

        return new Period(
            - $this->years,
            - $this->months,
            - $this->days
        );
    }
public function negated() : Period
    {
        if ($this->isZero()) {
            return $this;
        }

        return new Period(
            - $this->years,
            - $this->months,
            - $this->days
        );
    }
public function negated ( ) : Period { if ( $ this -> isZero ( ) ) { return $ this ; } return new Period ( - $ this -> years , - $ this -> months , - $ this -> days ) ; }
Returns a new instance with each amount in this Period negated.

@return Period
Returns a new instance with each amount in this Period negated .