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

        return $this->toNativeDateTime() == $dateTimeWithTimeZone->toNativeDateTime();
    }
public function sameTimestampAs(ValueObjectInterface $dateTimeWithTimeZone)
    {
        if (false === Util::classEquals($this, $dateTimeWithTimeZone)) {
            return false;
        }

        return $this->toNativeDateTime() == $dateTimeWithTimeZone->toNativeDateTime();
    }
public function sameTimestampAs ( ValueObjectInterface $ dateTimeWithTimeZone ) { if ( false === Util :: classEquals ( $ this , $ dateTimeWithTimeZone ) ) { return false ; } return $ this -> toNativeDateTime ( ) == $ dateTimeWithTimeZone -> toNativeDateTime ( ) ; }
Tells whether two DateTimeWithTimeZone represents the same timestamp

@param ValueObjectInterface $dateTimeWithTimeZone

@return bool
Tells whether two DateTimeWithTimeZone represents the same timestamp