public function sameValueAs(ValueObjectInterface $dateTimeWithTimeZone)
    {
        if (false === Util::classEquals($this, $dateTimeWithTimeZone)) {
            return false;
        }

        return $this->getDateTime()->sameValueAs($dateTimeWithTimeZone->getDateTime()) &&
            $this->getTimeZone()->sameValueAs($dateTimeWithTimeZone->getTimeZone());
    }
public function sameValueAs(ValueObjectInterface $dateTimeWithTimeZone)
    {
        if (false === Util::classEquals($this, $dateTimeWithTimeZone)) {
            return false;
        }

        return $this->getDateTime()->sameValueAs($dateTimeWithTimeZone->getDateTime()) &&
            $this->getTimeZone()->sameValueAs($dateTimeWithTimeZone->getTimeZone());
    }
public function sameValueAs ( ValueObjectInterface $ dateTimeWithTimeZone ) { if ( false === Util :: classEquals ( $ this , $ dateTimeWithTimeZone ) ) { return false ; } return $ this -> getDateTime ( ) -> sameValueAs ( $ dateTimeWithTimeZone -> getDateTime ( ) ) && $ this -> getTimeZone ( ) -> sameValueAs ( $ dateTimeWithTimeZone -> getTimeZone ( ) ) ; }
Tells whether two DateTimeWithTimeZone are equal by comparing their values

@param ValueObjectInterface $dateTimeWithTimeZone

@return bool
Tells whether two DateTimeWithTimeZone are equal by comparing their values