public function equals($compare)
    {
        if ($compare instanceof self) {
            return (get_class($compare) === get_class($this) && $compare->name() === $this->name);
        }

        return false;
    }
public function equals($compare)
    {
        if ($compare instanceof self) {
            return (get_class($compare) === get_class($this) && $compare->name() === $this->name);
        }

        return false;
    }
public function equals ( $ compare ) { if ( $ compare instanceof self ) { return ( get_class ( $ compare ) === get_class ( $ this ) && $ compare -> name ( ) === $ this -> name ) ; } return false ; }
checks whether a value is equal to the class

@XmlIgnore
@param   mixed  $compare
@return  bool
checks whether a value is equal to the class