public function equals($signature) : bool
    {
        if ($signature instanceof Signature) {
            $signature = $signature->signature;
        }

        if ($this === $signature || $this->signature == $signature) {
            return true;
        }

        return false;
    }
public function equals($signature) : bool
    {
        if ($signature instanceof Signature) {
            $signature = $signature->signature;
        }

        if ($this === $signature || $this->signature == $signature) {
            return true;
        }

        return false;
    }
public function equals ( $ signature ) : bool { if ( $ signature instanceof Signature ) { $ signature = $ signature -> signature ; } if ( $ this === $ signature || $ this -> signature == $ signature ) { return true ; } return false ; }
Checks if the two signatures are equal.

@param  mixed $signature
The signature to check for equality.

@return bool
Returns true if the two signatures are equal, false otherwise.
Checks if the two signatures are equal .